Re: [PATCH v3 -next] powerpc/powermac: Fix symbol not declared warnings

2022-11-30 Thread Michael Ellerman
On Thu, 3 Nov 2022 15:01:22 +0800, Chen Lifu wrote: > 1. ppc_override_l2cr and ppc_override_l2cr_value are only used in > l2cr_init() function, remove them and used *l2cr directly. > 2. has_l2cache is not used outside of the file, so mark it static and > do not initialise statics to 0. >

Re: [PATCH v3 -next] powerpc/powermac: Fix symbol not declared warnings

2022-11-03 Thread Christophe Leroy
Le 03/11/2022 à 08:01, Chen Lifu a écrit : > 1. ppc_override_l2cr and ppc_override_l2cr_value are only used in > l2cr_init() function, remove them and used *l2cr directly. > 2. has_l2cache is not used outside of the file, so mark it static and > do not initialise statics to 0. > >

[PATCH v3 -next] powerpc/powermac: Fix symbol not declared warnings

2022-11-03 Thread Chen Lifu
1. ppc_override_l2cr and ppc_override_l2cr_value are only used in l2cr_init() function, remove them and used *l2cr directly. 2. has_l2cache is not used outside of the file, so mark it static and do not initialise statics to 0. Fixes the following warning: