[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120928183012.385810367@linuxfoundation.org>
Date: Fri, 28 Sep 2012 11:50:50 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Cc: Greg KH <gregkh@...uxfoundation.org>, alan@...rguk.ukuu.org.uk,
Fengguang Wu <fengguang.wu@...el.com>,
Alex Iannicelli <alex.iannicelli@...lex.com>,
James Smart <james.smart@...lex.com>,
Jonathan Nieder <jrnieder@...il.com>,
Mike Pagano <mpagano@...too.org>,
James Bottomley <JBottomley@...allels.com>
Subject: [ 121/262] SCSI: lpfc: fix problems with -Werror
From: Greg KH <gregkh@...uxfoundation.org>
3.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: James Bottomley <jbottomley@...allels.com>
commit 4bdd03e61b7a5c4c6bc2b25d46fcd491788fdfb3 upstream.
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@...el.com>
Cc: Alex Iannicelli <alex.iannicelli@...lex.com>
Cc: James Smart <james.smart@...lex.com>
Cc: Jonathan Nieder <jrnieder@...il.com>
Cc: Mike Pagano <mpagano@...too.org>
Signed-off-by: James Bottomley <JBottomley@...allels.com>
---
drivers/scsi/lpfc/Makefile | 2 ++
1 file changed, 2 insertions(+)
--- 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists