[PATCH] powerpc/pmac/smp: avoid unused-variable warnings

Nathan Chancellor natechancellor at gmail.com
Sat Sep 21 03:17:09 AEST 2019


On Fri, Sep 20, 2019 at 06:39:51PM +0300, Ilie Halip wrote:
> When building with ppc64_defconfig, the compiler reports
> that these 2 variables are not used:
>     warning: unused variable 'core99_l2_cache' [-Wunused-variable]
>     warning: unused variable 'core99_l3_cache' [-Wunused-variable]
> 
> They are only used when CONFIG_PPC64 is not defined. Move
> them into a section which does the same macro check.
> 
> Reported-by: Nathan Chancellor <natechancellor at gmail.com>
> Signed-off-by: Ilie Halip <ilie.halip at gmail.com>

Reviewed-by: Nathan Chancellor <natechancellor at gmail.com>


More information about the Linuxppc-dev mailing list