linux/arch/powerpc/platforms/52xx
Rob Herring d65305bfa6 powerpc: 52xx: Make immr_id DT match tables static
In some builds, the mpc52xx_pm_prepare()/lite5200_pm_prepare() functions
generate stack size warnings. The addition of 'struct resource' in commit
2500763dd3 ("powerpc: Use of_address_to_resource()") grew the stack size
and is blamed for the warnings. However, the real issue is there's no
reason the 'struct of_device_id immr_ids' DT match tables need to be on
the stack as they are constant. Declare them as static to move them off
the stack.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306130405.uTv5yOZD-lkp@intel.com/
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230614171724.2403982-1-robh@kernel.org
2023-06-21 15:13:56 +10:00
..
efika.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
Kconfig powerpc: Drop MPC5200 LocalPlus bus FIFO driver 2023-05-15 23:25:56 +10:00
lite5200.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
lite5200_pm.c powerpc: 52xx: Make immr_id DT match tables static 2023-06-21 15:13:56 +10:00
lite5200_sleep.S powerpc/32: Fix objtool unannotated intra-function call warnings 2022-11-18 19:00:06 +11:00
Makefile powerpc: Drop MPC5200 LocalPlus bus FIFO driver 2023-05-15 23:25:56 +10:00
media5200.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
mpc52xx_common.c powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
mpc52xx_gpt.c powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
mpc52xx_pci.c PCI: Introduce pci_dev_for_each_resource() 2023-04-04 10:43:52 -05:00
mpc52xx_pic.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc52xx_pm.c powerpc: 52xx: Make immr_id DT match tables static 2023-06-21 15:13:56 +10:00
mpc52xx_sleep.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc5200_simple.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00