Summary: | sys-kernel/hardened-sources-3.4.2: drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable ‘rc’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | [OLD] Core system | Assignee: | The Gentoo Linux Hardened Kernel Team (OBSOLETE) <hardened-kernel+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gokturk, hardened, kernel, rwobben, sudoman |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | proposed fix |
Description
Dennis Schridde
2012-07-11 13:31:15 UTC
./linux-3.4.2-hardened/drivers/scsi/lpfc/Makefile:ccflags-y += -Werror This is causing the problem. However I can't reproduce this with gcc 4.6.2 on amd64. Adding '-Wno-unused' before '-Werror' should solve it. This is not hardened specific. @gokturk. Do you want to make a patch. I'll test and if it works, it should go into genpatches and better still upstream. Created attachment 318762 [details, diff]
proposed fix
Strange, although I'm cc'd to the bug, I don't see it in my inbox. Anyway this patch is against 3.4 tarball. I appended it to ${UNIPATCH_LIST} of hardened-sources-3.4.2 ebuild and it seems to apply just fine. With 'CONFIG_SCSI_LPFC=y' it compiled successfully.
(In reply to comment #3) > Created attachment 318762 [details, diff] [details, diff] > proposed fix > > Strange, although I'm cc'd to the bug, I don't see it in my inbox. Anyway > this patch is against 3.4 tarball. I appended it to ${UNIPATCH_LIST} of > hardened-sources-3.4.2 ebuild and it seems to apply just fine. With > 'CONFIG_SCSI_LPFC=y' it compiled successfully. Okay this fix was included in hardened-sources-3.4.6. Please test and reopen if this is still an issue. *** Bug 430238 has been marked as a duplicate of this bug. *** *** Bug 434454 has been marked as a duplicate of this bug. *** |