linux-stable/arch/mips/lantiq
Randy Dunlap 1ca9b98451 MIPS: vpe-mt: drop physical_memsize
[ Upstream commit 91dc288f4e ]

When neither LANTIQ nor MIPS_MALTA is set, 'physical_memsize' is not
declared. This causes the build to fail with:

mips-linux-ld: arch/mips/kernel/vpe-mt.o: in function `vpe_run':
arch/mips/kernel/vpe-mt.c:(.text.vpe_run+0x280): undefined reference to `physical_memsize'

LANTIQ is not using 'physical_memsize' and MIPS_MALTA's use of it is
self-contained in mti-malta/malta-dtshim.c.
Use of physical_memsize in vpe-mt.c appears to be unused, so eliminate
this loader mode completely and require VPE programs to be compiled with
DFLT_STACK_SIZE and DFLT_HEAP_SIZE defined.

Fixes: 9050d50e22 ("MIPS: lantiq: Set physical_memsize")
Fixes: 1a2a6d7e88 ("MIPS: APRP: Split VPE loader into separate files.")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202302030625.2g3E98sY-lkp@intel.com/
Cc: Dengcheng Zhu <dzhu@wavecomp.com>
Cc: John Crispin <john@phrozen.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Cc: "Steven J. Hill" <Steven.Hill@imgtec.com>
Cc: Qais Yousef <Qais.Yousef@imgtec.com>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 16:26:40 +01:00
..
falcon MIPS: lantiq: check the return value of kzalloc() 2022-05-25 08:41:18 +02:00
xway MIPS: lantiq: check the return value of kzalloc() 2022-05-25 08:41:18 +02:00
Kconfig MIPS: lantiq: ase: Enable MFD_SYSCON 2018-03-28 18:24:28 +02:00
Makefile MIPS: Change my email address 2016-05-13 14:02:18 +02:00
Platform
clk.c MIPS: lantiq: export clk_get_io() for lantiq_wdt.ko 2022-09-28 10:56:51 +02:00
clk.h MIPS: Change my email address 2016-05-13 14:02:18 +02:00
early_printk.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
irq.c MIPS: lantiq: Explicitly compare LTQ_EBU_PCC_ISTAT against 0 2021-03-03 18:22:41 +01:00
prom.c MIPS: vpe-mt: drop physical_memsize 2023-03-11 16:26:40 +01:00
prom.h MIPS: Change my email address 2016-05-13 14:02:18 +02:00