Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432604 - sys-kernel/genkernel-3.4.24_p2 with kernel 3.4.9 - In function ‘lpfc_bg_setup_bpl’: drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable ‘rc’
Summary: sys-kernel/genkernel-3.4.24_p2 with kernel 3.4.9 - In function ‘lpfc_bg_setup...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 432630 433032 438542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-24 15:36 UTC by Vladimir Romanov (RETIRED)
Modified: 2012-10-24 16:38 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Genkernel log (genkernel.log,344.22 KB, text/plain)
2012-08-24 15:36 UTC, Vladimir Romanov (RETIRED)
Details
Genkernel log in english (genkernel.log,342.65 KB, text/plain)
2012-08-25 14:38 UTC, Vladimir Romanov (RETIRED)
Details
Genkernel log showing the same error (genkernel.log,337.50 KB, text/plain)
2012-08-27 15:51 UTC, Shawn Kovalchick
Details
lpfs-nodebug-fix.patch (lpfc-nodebug-fix.patch,1.17 KB, patch)
2012-08-29 14:26 UTC, Ben Kohler
Details | Diff
same issue (genkernel.log,334.30 KB, text/plain)
2012-08-30 13:05 UTC, Erik Dobak
Details
all scsi low level drivers disabled. (config.gz,22.71 KB, text/plain)
2012-09-10 19:37 UTC, Erik Dobak
Details
with scsi low level drivers (config.gz,23.53 KB, text/plain)
2012-09-10 19:54 UTC, Erik Dobak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Romanov (RETIRED) gentoo-dev 2012-08-24 15:36:03 UTC
Created attachment 322116 [details]
Genkernel log

Genkernel begins to compile kernel, goes to warning (unused variable rc), and says that in kernel all warnings considered as bugs.

Genkernel log attached
Comment 1 Sebastian Pipping gentoo-dev 2012-08-24 18:27:42 UTC
Vladimir, please translate the bug title to English.  Preferably, provide an English-only log, too.  Thanks.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-25 13:05:41 UTC
*** Bug 432630 has been marked as a duplicate of this bug. ***
Comment 3 Vladimir Romanov (RETIRED) gentoo-dev 2012-08-25 14:38:18 UTC
Created attachment 322194 [details]
Genkernel log in english
Comment 4 Shawn Kovalchick 2012-08-27 15:51:47 UTC
Created attachment 322376 [details]
Genkernel log showing the same error
Comment 5 Ben Kohler gentoo-dev 2012-08-28 02:07:16 UTC
Fixed upstream here: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=0829a19a6142af09eb4f9509cd1d3666270e87bd

Backport for 3.4.9 maybe?  This is not a good situation where stable genkernel + gentoo-sources fails for new users.
Comment 6 Vladimir Romanov (RETIRED) gentoo-dev 2012-08-28 04:58:51 UTC
Yes, it compiles perfectly with patch
Comment 7 Sebastian Pipping gentoo-dev 2012-08-28 22:40:18 UTC
Re-assigning to Kernel team, the issue may not be specific to genkernel.  Please assign back if it is.  Thanks!
Comment 8 Ben Kohler gentoo-dev 2012-08-29 03:19:50 UTC
Right, this is a kernel bug-- but it happens to affect a huge percentage of amd64 genkernel users (those who do "genkernel all" or another target including modules, but don't manually go into menuconfig to work around this), and almost no one else.  It's a bug on a very obscure driver which genkernel happens to build.  The driver in question is for "Emulex LightPulse Fibre Channel Support" (CONFIG_SCSI_LPFC).

The current workaround for genkernel users (besides the patch) is to use --menuconfig, and manually enable CONFIG_DEBUG_FS (in "Kernel Hacking") then CONFIG_SCSI_LPFC_DEBUG_FS (in "SCSI low-level drivers").
Comment 9 Mike Pagano gentoo-dev 2012-08-29 13:56:24 UTC
That patch applies cleanly to 3.4.9 for someone?
Comment 10 Ben Kohler gentoo-dev 2012-08-29 14:26:39 UTC
Created attachment 322511 [details, diff]
lpfs-nodebug-fix.patch

The upstream patch does not apply as-is to 3.4.9, but this one does.
Comment 11 Mike Pagano gentoo-dev 2012-08-29 15:19:18 UTC
*** Bug 433032 has been marked as a duplicate of this bug. ***
Comment 12 Mike Pagano gentoo-dev 2012-08-29 19:06:29 UTC
This is applied and released in gentoo-sources-3.4.10
Comment 13 Erik Dobak 2012-08-30 13:05:19 UTC
Created attachment 322585 [details]
same issue
Comment 14 Erik Dobak 2012-08-30 13:22:37 UTC
lpfc=LightPulseFibreChannel ? why do i need this???
Comment 15 Kristian Duus Østergaard 2012-08-30 13:38:35 UTC
(In reply to comment #14)
> lpfc=LightPulseFibreChannel ? why do i need this???

You probably don't but genkernel chooses a lot of drivers to build as module. To solve it do make menuconfig - disable all the LPFC stuff and you will be able to build the kernel.
Comment 16 Erik Dobak 2012-08-30 13:41:00 UTC
lpfc=LightPulseFibreChannel ? why do i need this???(In reply to comment #8)
> Right, this is a kernel bug-- but it happens to affect a huge percentage of
> amd64 genkernel users (those who do "genkernel all" or another target
> including modules, but don't manually go into menuconfig to work around
> this), and almost no one else.  It's a bug on a very obscure driver which
> genkernel happens to build.  The driver in question is for "Emulex
> LightPulse Fibre Channel Support" (CONFIG_SCSI_LPFC).
> 
> The current workaround for genkernel users (besides the patch) is to use
> --menuconfig, and manually enable CONFIG_DEBUG_FS (in "Kernel Hacking") then
> CONFIG_SCSI_LPFC_DEBUG_FS (in "SCSI low-level drivers").

started genkernel --menuconfig all. enabled CONFIG_SCSI_LPFC and LightPulse Fibre Channel Support aka CONFIG_SCSI_LPFC from Emulex.

success i have a a new 3.4.9-gentoo kernel.
Comment 17 Erik Dobak 2012-08-30 13:42:48 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > lpfc=LightPulseFibreChannel ? why do i need this???
> 
> You probably don't but genkernel chooses a lot of drivers to build as
> module. To solve it do make menuconfig - disable all the LPFC stuff and you
> will be able to build the kernel.

i would disable more SCSI stuff i need only 'probe all luns'
Comment 18 Ben Kohler gentoo-dev 2012-08-30 16:03:07 UTC
Oops, in my last comment I meant to mention there were TWO workarounds, but I only managed to explain the more complicated one.  Of course you can also simply *disable* CONFIG_SCSI_LPFC.

The more complicated workaround is really only good to verify that the patch is indeed doing the right thing.
Comment 19 Mike Pagano gentoo-dev 2012-09-10 16:51:58 UTC
Can someone attach their .config, please? (config.gz)
Comment 20 Erik Dobak 2012-09-10 19:37:58 UTC
Created attachment 323446 [details]
all scsi low level drivers disabled.
Comment 21 Erik Dobak 2012-09-10 19:54:02 UTC
Created attachment 323448 [details]
with scsi low level drivers

but configured like it is described here: https://bugs.gentoo.org/show_bug.cgi?id=432604#c8
Comment 22 Sergey Popov gentoo-dev 2012-10-24 16:37:56 UTC
*** Bug 438542 has been marked as a duplicate of this bug. ***