cxl: fix build for GCC 4.6.x
authorBrian Norris <computersforpeace@gmail.com>
Fri, 8 Jan 2016 18:30:09 +0000 (10:30 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 Jan 2016 09:30:52 +0000 (20:30 +1100)
commitaa09545589ceeff884421d8eb38d04963190afbe
treeed5ae717a4f30343d45e77c77934885610a5aac3
parente708c24cd01ce80b1609d8baccee40ccc3608a01
cxl: fix build for GCC 4.6.x

GCC 4.6.3 does not support -Wno-unused-const-variable. Instead, use the
kbuild infrastructure that checks if this options exists.

Fixes: 2cd55c68c0a4 ("cxl: Fix build failure due to -Wunused-variable behaviour change")
Suggested-by: Michal Marek <mmarek@suse.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/Makefile