summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/Makefile')
-rw-r--r--drivers/scsi/lpfc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/Makefile b/drivers/scsi/lpfc/Makefile
index fe5d396aca7..e2516ba8ebf 100644
--- a/drivers/scsi/lpfc/Makefile
+++ b/drivers/scsi/lpfc/Makefile
@@ -22,7 +22,9 @@
ccflags-$(GCOV) := -fprofile-arcs -ftest-coverage
ccflags-$(GCOV) += -O0
+ifdef WARNINGS_BECOME_ERRORS
ccflags-y += -Werror
+endif
obj-$(CONFIG_SCSI_LPFC) := lpfc.o