]> git.dujemihanovic.xyz Git - u-boot.git/commit
treewide: Convert macro and uses of __section(foo) to __section("foo")
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:23:52 +0000 (13:23 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commit236f2ec43266cb4dabd320381498df6c9d80c82d
tree3e49eddacb53d4ed87a3417d1b861b2be18402e2
parent9ce799aaba104a1f0d36bf84caec4c807fa31baa
treewide: Convert macro and uses of __section(foo) to __section("foo")

This commit does the same thing as Linux commit 33def8498fdd.

Use a more generic form for __section that requires quotes to avoid
complications with clang and gcc differences.

Remove the quote operator # from compiler_attributes.h __section macro.

Convert all unquoted __section(foo) uses to quoted __section("foo").
Also convert __attribute__((section("foo"))) uses to __section("foo")
even if the __attribute__ has multiple list entry forms.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
52 files changed:
arch/arm/cpu/arm926ejs/spear/spl.c
arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
arch/arm/cpu/armv8/spl_data.c
arch/arm/include/asm/secure.h
arch/arm/include/asm/setup.h
arch/arm/lib/sections.c
arch/arm/lib/spl.c
arch/arm/mach-at91/spl.c
arch/arm/mach-k3/am642_init.c
arch/arm/mach-k3/am6_init.c
arch/arm/mach-k3/j721e_init.c
arch/arm/mach-mvebu/mbus.c
arch/arm/mach-mvebu/timer.c
arch/arm/mach-nexell/clock.c
arch/arm/mach-nexell/timer.c
arch/arm/mach-socfpga/spl_a10.c
arch/arm/mach-sunxi/board.c
arch/arm/mach-tegra/board.c
arch/arm/mach-tegra/cboot.c
arch/mips/mach-jz47xx/jz4780/jz4780.c
arch/nds32/include/asm/setup.h
arch/powerpc/include/asm/cache.h
arch/riscv/cpu/cpu.c
arch/sandbox/include/asm/getopt.h
arch/sandbox/lib/sections.c
arch/x86/cpu/coreboot/timestamp.c
arch/x86/lib/coreboot/cb_sysinfo.c
arch/x86/lib/sections.c
arch/xtensa/cpu/cpu.c
board/bosch/shc/board.c
board/broadcom/bcmstb/bcmstb.c
board/samsung/arndale/arndale_spl.c
board/samsung/smdk5250/smdk5250_spl.c
board/samsung/smdk5420/smdk5420_spl.c
board/siemens/draco/board.c
board/xilinx/common/fru_ops.c
drivers/bios_emulator/biosemu.c
drivers/clk/kendryte/clk.c
drivers/firmware/psci.c
drivers/pinctrl/nxp/pinctrl-imx5.c
drivers/pinctrl/nxp/pinctrl-imx7.c
drivers/pinctrl/nxp/pinctrl-imx8m.c
drivers/power/pmic/pmic_tps62362.c
drivers/power/pmic/pmic_tps65217.c
drivers/power/pmic/pmic_tps65218.c
drivers/power/pmic/pmic_tps65910.c
drivers/serial/serial_pl01x.c
include/efi_loader.h
include/linker_lists.h
include/linux/compiler.h
include/linux/compiler_attributes.h
lib/trace.c