Bug 476457 - compiler complains about no return statement in code from linux-2.6-silence-fbcon-logo.patch
compiler complains about no return statement in code from linux-2.6-silence-f...
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-12-14 18:51 EST by Michael Young
Modified: 2009-02-26 17:17 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-02-26 17:17:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Young 2008-12-14 18:51:57 EST
When trying to build an altered rawhide kernel in F10 I get the error
cc1: warnings being treated as errors
drivers/video/console/fbcon.c: In function 'quiet_logo':
drivers/video/console/fbcon.c:3603: error: no return statement in function returning non-void
make[3]: *** [drivers/video/console/fbcon.o] Error 1
The problem code is from linux-2.6-silence-fbcon-logo.patch, and the lines +static int __init quiet_logo(char *str)
+       logo_shown = FBCON_LOGO_DONTSHOW;
+early_param("quiet", quiet_logo);
and the compiler is clearly worried that this is a int function but you aren't returning anything.
Comment 1 Kyle McMartin 2009-02-26 17:17:32 EST
fixt. thanks. :)

Note You need to log in before you can comment on or make changes to this bug.