[PATCH 0/2] treewide: rework linker symbol declarations and references

Shiji Yang yangshiji66 at outlook.com
Thu Aug 3 03:47:15 CEST 2023


1. Convert all linker symbol declarations to char[] type.
2. Unify the linker symbol reference format.

CI check:
https://github.com/u-boot/u-boot/pull/401


Shiji Yang (2):
  treewide: rework linker symbol declarations in sections header
  treewide: unify the linker symbol reference format

 arch/arc/include/asm/sections.h               |  5 ++-
 arch/arc/lib/relocate.c                       | 37 ++++++++-----------
 arch/arm/cpu/arm926ejs/mxs/mxs.c              |  2 +-
 arch/arm/cpu/arm926ejs/mxs/spl_boot.c         |  2 +-
 arch/arm/include/asm/spl.h                    |  3 --
 arch/arm/mach-stm32mp/boot_params.c           |  4 +-
 arch/microblaze/include/asm/processor.h       |  5 ---
 arch/mips/lib/reloc.c                         |  2 +-
 arch/mips/mach-jz47xx/jz4780/jz4780.c         |  2 +-
 arch/mips/mach-mtmips/mt7621/spl/launch.c     |  2 +-
 arch/mips/mach-mtmips/mt7621/spl/spl.c        |  2 +-
 arch/riscv/cpu/jh7110/spl.c                   |  4 +-
 arch/x86/include/asm/sections.h               |  2 +
 arch/x86/lib/relocate.c                       | 14 +++----
 arch/x86/lib/spl.c                            |  6 +--
 arch/xtensa/lib/relocate.c                    |  4 +-
 board/advantech/imx8qm_dmsse20_a1/spl.c       |  1 +
 board/advantech/imx8qm_rom7720_a1/spl.c       |  1 +
 board/aristainetos/aristainetos.c             |  2 +-
 board/beacon/imx8mm/spl.c                     |  1 +
 board/beacon/imx8mn/spl.c                     |  1 +
 board/bosch/acc/acc.c                         |  1 +
 board/bsh/imx8mn_smm_s2/spl.c                 |  1 +
 board/cloos/imx8mm_phg/spl.c                  |  1 +
 board/compulab/cl-som-imx7/spl.c              |  1 +
 board/compulab/imx8mm-cl-iot-gate/spl.c       |  1 +
 board/congatec/cgtqmx8/spl.c                  |  1 +
 board/dhelectronics/dh_imx6/dh_imx6_spl.c     |  1 +
 board/dhelectronics/dh_imx8mp/spl.c           |  1 +
 board/engicam/imx8mm/spl.c                    |  1 +
 board/freescale/imx8mm_evk/spl.c              |  1 +
 board/freescale/imx8mn_evk/spl.c              |  1 +
 board/freescale/imx8mq_evk/spl.c              |  1 +
 board/freescale/imx8qm_mek/spl.c              |  1 +
 board/freescale/imx8qxp_mek/spl.c             |  1 +
 board/freescale/imx8ulp_evk/spl.c             |  1 +
 board/freescale/imx93_evk/spl.c               |  1 +
 board/freescale/ls1021aiot/ls1021aiot.c       |  1 +
 board/freescale/ls1021aqds/ls1021aqds.c       |  1 +
 board/freescale/ls1021atsn/ls1021atsn.c       |  1 +
 board/freescale/ls1021atwr/ls1021atwr.c       |  1 +
 board/freescale/mx6sabreauto/mx6sabreauto.c   |  1 +
 board/freescale/mx6sabresd/mx6sabresd.c       |  1 +
 board/freescale/mx6slevk/mx6slevk.c           |  1 +
 .../mx6ul_14x14_evk/mx6ul_14x14_evk.c         |  1 +
 board/gateworks/venice/spl.c                  |  1 +
 board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c     |  1 +
 board/kontron/pitx_imx8m/spl.c                |  1 +
 board/kontron/sl-mx6ul/spl.c                  |  1 +
 board/kontron/sl-mx8mm/spl.c                  |  1 +
 board/liebherr/display5/spl.c                 |  1 +
 board/mntre/imx8mq_reform2/spl.c              |  1 +
 board/phytec/pcm058/pcm058.c                  |  1 +
 board/phytec/phycore_imx8mm/spl.c             |  1 +
 board/ronetix/imx7-cm/spl.c                   |  1 +
 board/ronetix/imx8mq-cm/spl.c                 |  1 +
 board/siemens/capricorn/spl.c                 |  1 +
 board/sifive/unleashed/unleashed.c            |  2 +-
 board/sifive/unmatched/unmatched.c            |  2 +-
 board/softing/vining_2000/vining_2000.c       |  1 +
 board/solidrun/mx6cuboxi/mx6cuboxi.c          |  1 +
 .../visionfive2/starfive_visionfive2.c        |  2 +-
 board/technexion/pico-imx6ul/spl.c            |  1 +
 board/technexion/pico-imx7d/spl.c             |  1 +
 board/technexion/pico-imx8mq/spl.c            |  1 +
 board/toradex/apalis_imx6/apalis_imx6.c       |  1 +
 board/toradex/colibri_imx6/colibri_imx6.c     |  1 +
 board/toradex/verdin-imx8mm/spl.c             |  1 +
 board/udoo/neo/neo.c                          |  1 +
 board/variscite/dart_6ul/spl.c                |  1 +
 board/variscite/imx8mn_var_som/spl.c          |  1 +
 board/xilinx/common/board.c                   |  6 +--
 common/board_f.c                              | 16 ++++----
 common/board_r.c                              |  4 +-
 drivers/ddr/imx/phy/helper.c                  |  4 +-
 include/asm-generic/sections.h                | 34 +++--------------
 lib/fdtdec.c                                  |  6 +--
 lib/trace.c                                   |  2 +-
 78 files changed, 123 insertions(+), 104 deletions(-)

-- 
2.39.2



More information about the U-Boot mailing list