diff options
author | James Bottomley <jbottomley@parallels.com> | 2012-06-21 03:50:02 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 03:58:54 -0400 |
commit | 4bdd03e61b7a5c4c6bc2b25d46fcd491788fdfb3 (patch) | |
tree | 6170f9e75509b4970e7449866f98bfd93c8ac0cd /drivers/scsi/lpfc/Makefile | |
parent | cca85013ef54f66eb4616e6f3860549a96c8338b (diff) |
[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>
Diffstat (limited to 'drivers/scsi/lpfc/Makefile')
-rw-r--r-- | drivers/scsi/lpfc/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/Makefile b/drivers/scsi/lpfc/Makefile index fe5d396aca73..e2516ba8ebfa 100644 --- a/drivers/scsi/lpfc/Makefile +++ b/drivers/scsi/lpfc/Makefile | |||
@@ -22,7 +22,9 @@ | |||
22 | ccflags-$(GCOV) := -fprofile-arcs -ftest-coverage | 22 | ccflags-$(GCOV) := -fprofile-arcs -ftest-coverage |
23 | ccflags-$(GCOV) += -O0 | 23 | ccflags-$(GCOV) += -O0 |
24 | 24 | ||
25 | ifdef WARNINGS_BECOME_ERRORS | ||
25 | ccflags-y += -Werror | 26 | ccflags-y += -Werror |
27 | endif | ||
26 | 28 | ||
27 | obj-$(CONFIG_SCSI_LPFC) := lpfc.o | 29 | obj-$(CONFIG_SCSI_LPFC) := lpfc.o |
28 | 30 | ||