[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230220141236.GA9547@alpha.franken.de>
Date: Mon, 20 Feb 2023 15:12:36 +0100
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: linux-kernel@...r.kernel.org, kernel test robot <lkp@...el.com>,
Dengcheng Zhu <dzhu@...ecomp.com>,
John Crispin <john@...ozen.org>,
Philippe Mathieu-Daudé <philmd@...aro.org>,
"Steven J. Hill" <Steven.Hill@...tec.com>,
Qais Yousef <Qais.Yousef@...tec.com>,
Yang Yingliang <yangyingliang@...wei.com>,
Hauke Mehrtens <hauke@...ke-m.de>,
James Hogan <jhogan@...nel.org>, linux-mips@...r.kernel.org
Subject: Re: [PATCH v2] MIPS: vpe-mt: drop physical_memsize
On Sun, Feb 19, 2023 at 03:15:25PM -0800, Randy Dunlap wrote:
> 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: 9050d50e2244 ("MIPS: lantiq: Set physical_memsize")
> Fixes: 1a2a6d7e8816 ("MIPS: APRP: Split VPE loader into separate files.")
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> Reported-by: kernel test robot <lkp@...el.com>
> Link: https://lore.kernel.org/all/202302030625.2g3E98sY-lkp@intel.com/
> Cc: Dengcheng Zhu <dzhu@...ecomp.com>
> Cc: John Crispin <john@...ozen.org>
> Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
> Cc: Philippe Mathieu-Daudé <philmd@...aro.org>
> Cc: "Steven J. Hill" <Steven.Hill@...tec.com>
> Cc: Qais Yousef <Qais.Yousef@...tec.com>
> Cc: Yang Yingliang <yangyingliang@...wei.com>
> Cc: Hauke Mehrtens <hauke@...ke-m.de>
> Cc: James Hogan <jhogan@...nel.org>
> Cc: linux-mips@...r.kernel.org
> ---
> v2 changes: instead of providing a default physical_memsize of 0, which
> is not correct for MIPS_MALTA, just eliminate its use in vpe-mt.c.
>
> arch/mips/include/asm/vpe.h | 1 -
> arch/mips/kernel/vpe-mt.c | 7 +++----
> arch/mips/lantiq/prom.c | 6 ------
> 3 files changed, 3 insertions(+), 11 deletions(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
Powered by blists - more mailing lists