Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa095455 authored by Brian Norris's avatar Brian Norris Committed by Michael Ellerman
Browse files

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: 2cd55c68 ("cxl: Fix build failure due to -Wunused-variable behaviour change")
Suggested-by: default avatarMichal Marek <mmarek@suse.com>
Suggested-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e708c24c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
ccflags-y := -Werror -Wno-unused-const-variable
ccflags-y := -Werror $(call cc-disable-warning, unused-const-variable)

cxl-y				+= main.o file.o irq.o fault.o native.o
cxl-y				+= context.o sysfs.o debugfs.o pci.o trace.o