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

Commit ce1fb041 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

drivers/scsi/cxgbi: fix build with EXTRA_CFLAGS



EXTRA_CFLAGS are intended to be used on the command line, not by Kbuild.
In case of cxgbi drivers, use of EXTRA_CFLAGS results in a compilation
failure:

  drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:24:21: fatal error: t4_regs.h: No such file or directory

when building like:

$ make drivers/scsi/cxgbi/ EXTRA_CFLAGS=-Wwhatever

Use ccflags-y instead of EXTRA_CFLAGS.

Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0e77acef
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
EXTRA_CFLAGS += -I$(srctree)/drivers/net/ethernet/chelsio/cxgb3
ccflags-y += -I$(srctree)/drivers/net/ethernet/chelsio/cxgb3


obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
+1 −1
Original line number Original line Diff line number Diff line
EXTRA_CFLAGS += -I$(srctree)/drivers/net/ethernet/chelsio/cxgb4
ccflags-y += -I$(srctree)/drivers/net/ethernet/chelsio/cxgb4


obj-$(CONFIG_SCSI_CXGB4_ISCSI) += cxgb4i.o
obj-$(CONFIG_SCSI_CXGB4_ISCSI) += cxgb4i.o