Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] lpfc: fix problems with -Werror

Commit d38bd3aef ("Add -Werror compilation flag") is causing build breakage
with random gcc incarnations. These look like gcc problems, but we shouldn't
break the build because of a bad gcc. Fix this by adding a make flag

WARNINGS_BECOME_ERRORS=1

which is the same as aic7xxx uses so ordinarily the build doesn't use -Werror

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Alex Iannicelli <alex.iannicelli@emulex.com>
Cc: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

James Bottomley and committed by
James Bottomley
4bdd03e6 cca85013

+2
+2
drivers/scsi/lpfc/Makefile
··· 22 22 ccflags-$(GCOV) := -fprofile-arcs -ftest-coverage 23 23 ccflags-$(GCOV) += -O0 24 24 25 + ifdef WARNINGS_BECOME_ERRORS 25 26 ccflags-y += -Werror 27 + endif 26 28 27 29 obj-$(CONFIG_SCSI_LPFC) := lpfc.o 28 30