From a899c9ea343983397c43f0f7e1c33f774a67e220 Mon Sep 17 00:00:00 2001 From: Jianping Liu Date: Fri, 13 Dec 2024 20:03:53 +0800 Subject: [PATCH] drivers,ps3stor: fix compile error when using allyesconfig config There is a compile error when run: make allyesconfig && make -j32 The compile error log is as below: ld: error: unplaced orphan section `.GCC.command.line' from `vmlinux.o'. or aarch64-linux-gnu-ld: error: unplaced orphan section `.GCC.command.line' from `drivers/scsi/linkdata/ps3stor/ps3_cmd_channel.o' ...... .GCC.command.line section is created by -frecord-gcc-switches compile option. The info about -frecord-gcc-switches option: This switch causes the command line that was used to invoke the compiler to be recorded into the object file that is being created. This switch is only implemented on some targets and the exact format of the recording is target and binary file format dependent, but it usually takes the form of a section containing ASCII text. -frecord-gcc-switches option is useless in release version, delete it. Signed-off-by: Jianping Liu Reviewed-by: Yongliang Gao --- drivers/scsi/linkdata/ps3stor/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/linkdata/ps3stor/Makefile b/drivers/scsi/linkdata/ps3stor/Makefile index fee5b1719c5d..ac69840e408d 100644 --- a/drivers/scsi/linkdata/ps3stor/Makefile +++ b/drivers/scsi/linkdata/ps3stor/Makefile @@ -49,7 +49,7 @@ ps3stor-objs := \ ./linux/ps3_dump.o \ ./linux/ps3_pcie_err_handle.o -ccflags-y += -Werror -frecord-gcc-switches +ccflags-y += -Werror ccflags-y += $(call cc-option, -Wmaybe-uninitialized) ccflags-y += \ -I$(srctree)/drivers/scsi/linkdata/ps3stor \