From 4f03591dd6d2373ae9334caa9663f61f5f26be11 Mon Sep 17 00:00:00 2001 From: wenlunpeng Date: Sat, 23 Nov 2024 14:59:26 +0800 Subject: [PATCH] deepin: arm: scsi: fix build error of linkdata ps3stor driver This patch reverts a deletion of Linkdata RAIDHBA card driver in c9f4fb3882f2 ('deepin: arm: config: Update deepin_arm64_desktop_defconfig for HISI') The error logs are: 'modpost: "__aarch64_cas4_sync" [drivers/scsi/linkdata/ps3stor.ko] undefined!', which means we need to specify '-mno-outline-atomics' when building this module. Signed-off-by: wenlunpeng --- arch/arm64/configs/deepin_arm64_desktop_defconfig | 1 + drivers/scsi/linkdata/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/configs/deepin_arm64_desktop_defconfig b/arch/arm64/configs/deepin_arm64_desktop_defconfig index b90927be6d00..f0e869a89ec8 100644 --- a/arch/arm64/configs/deepin_arm64_desktop_defconfig +++ b/arch/arm64/configs/deepin_arm64_desktop_defconfig @@ -1085,6 +1085,7 @@ CONFIG_SCSI_PM8001=m CONFIG_SCSI_BFA_FC=m CONFIG_SCSI_VIRTIO=m CONFIG_SCSI_CHELSIO_FCOE=m +CONFIG_SCSI_LINKDATA_PS3STOR=m CONFIG_SCSI_DH=y CONFIG_SCSI_DH_RDAC=m CONFIG_SCSI_DH_HP_SW=m diff --git a/drivers/scsi/linkdata/Makefile b/drivers/scsi/linkdata/Makefile index f57701260a46..4cda65a86dfb 100644 --- a/drivers/scsi/linkdata/Makefile +++ b/drivers/scsi/linkdata/Makefile @@ -2,6 +2,7 @@ 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