From bde1cc2892b55f7b9c03e2671f961a16dafef6e6 Mon Sep 17 00:00:00 2001 From: WangYuli Date: Sun, 24 Nov 2024 13:28:55 +0800 Subject: [PATCH] scsi/linkdata: Fix flag ignored error with clang-19 Some platforms such as 'x86_64' does not support '-mno-outline-atomics' option, so add a compiler check before it. Fix follow error with clang-19: clang: error: 'x86_64' does not support '-mno-outline-atomics'; flag ignored [-Werror,-Woption-ignored] By the way, EXTRA_{A,C,CPP,LD}FLAGS are deprecated and should be replaced by the new flags added via commit f77bf01425b1 ("kbuild: introduce ccflags-y, asflags-y and ldflags-y"). Fixes: 65722885cae6 ("deepin: arm: scsi: fix build error of linkdata ps3stor driver") Signed-off-by: WangYuli --- drivers/scsi/linkdata/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/linkdata/Makefile b/drivers/scsi/linkdata/Makefile index 67ef3a8448ae..7c96930c465d 100644 --- a/drivers/scsi/linkdata/Makefile +++ b/drivers/scsi/linkdata/Makefile @@ -2,7 +2,6 @@ EXTRA_CFLAGS += -DPS3_CFG_RELEASE EXTRA_CFLAGS += -DPS3_HARDWARE_ASIC EXTRA_CFLAGS += -DPS3_MODEL_V200 -EXTRA_CFLAGS += -mno-outline-atomics obj-$(CONFIG_SCSI_LINKDATA_PS3STOR) += ps3stor.o @@ -21,6 +20,7 @@ ccflags-y += -I$(srctree) \ -I$(srctree)/drivers/scsi/linkdata/linux \ -I$(srctree)/drivers/scsi/linkdata/include \ -I$(srctree)/drivers/scsi/linkdata/include/htp_v200 +ccflags-y += $(call cc-option, -mno-outline-atomics) clean: @rm -rf *.o *.d *.ko Module.* modules.* *.mod.* .*.d .*.cmd .tmp_versions *.o.ur-safe