path: root/arch/powerpc/include/asm/book3s/64/pgtable.h
diff options
authorBrian Norris <>2016-01-08 10:30:10 -0800
committerMichael Ellerman <>2016-01-11 20:30:53 +1100
commit57f7c3932516b9f7908d9b0a24396112d0f4ca55 (patch)
tree8e526dedb91d77694452e7da89ed0d580d379518 /arch/powerpc/include/asm/book3s/64/pgtable.h
parentaa09545589ceeff884421d8eb38d04963190afbe (diff)
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: d3d73f4b38a8 ("cxl: Compile with -Werror") Signed-off-by: Brian Norris <> Signed-off-by: Michael Ellerman <>
Diffstat (limited to 'arch/powerpc/include/asm/book3s/64/pgtable.h')
0 files changed, 0 insertions, 0 deletions