linux/drivers/misc/cxl
Brian Norris 57f7c39325 cxl: use -Werror only with CONFIG_PPC_WERROR
Some developers really like to have -Werror enabled for their code, as
it helps to ensure warning free code. Others don't want -Werror, as it
(for example) can cause problems when newer (or older) compilers have
different sets of warnings, or new warnings can appear just when turning
up the warning level (e.g., make W=1 or W=2). Thus, it seems prudent to
have the use of -Werror be configurable.

It so happens that cxl is only built on PowerPC, and PowerPC already
has a nice set of Kconfig options for this, under CONFIG_PPC_WERROR. So
let's use that, and the world is a happy place again! (Note that
PPC_WERROR defaults to =y, so the common case compile should still be
enforcing -Werror.)

Fixes: d3d73f4b38 ("cxl: Compile with -Werror")
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-01-11 20:30:53 +11:00
..
api.c cxl: Fix DSI misses when the context owning task exits 2016-01-05 16:28:25 +11:00
base.c cxl: Move include file cxl.h -> cxl-base.h 2015-06-03 13:27:19 +10:00
context.c cxl: Fix DSI misses when the context owning task exits 2016-01-05 16:28:25 +11:00
cxl.h cxl: Fix DSI misses when the context owning task exits 2016-01-05 16:28:25 +11:00
debugfs.c cxl: sparse: Silence iomem warning in debugfs file creation 2015-08-12 14:49:29 +10:00
fault.c cxl: Fix DSI misses when the context owning task exits 2016-01-05 16:28:25 +11:00
file.c cxl: Fix DSI misses when the context owning task exits 2016-01-05 16:28:25 +11:00
irq.c cxl: fix leak of ctx->irq_bitmap when releasing context via kernel API 2015-10-01 11:49:32 +10:00
Kconfig cxl: Add CONFIG_CXL_EEH symbol 2015-08-17 13:56:29 +10:00
main.c cxl: Destroy cxl_adapter_idr on module_exit 2015-07-16 14:14:55 +10:00
Makefile cxl: use -Werror only with CONFIG_PPC_WERROR 2016-01-11 20:30:53 +11:00
native.c cxl: Fix number of allocated pages in SPA 2015-10-07 16:44:46 +11:00
pci.c cxl: Workaround malformed pcie packets on some cards 2015-10-06 20:59:46 +11:00
sysfs.c cxl: Fix lockdep warning while creating afu_err_buff attribute 2015-09-23 20:57:13 +10:00
trace.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
trace.h cxl: use more common format specifier 2015-07-13 10:10:54 +10:00
vphb.c cxl: use correct operator when writing pcie config space values 2015-11-24 14:21:27 +11:00