Re: kernel/sched/fair.c:1524:20: warning: ???test_idle_cores??? declared ???static??? but never defined

From: Mel Gorman
Date: Tue Mar 03 2020 - 05:39:48 EST


On Tue, Mar 03, 2020 at 02:42:38PM +0530, Naresh Kamboju wrote:
> Linux next-20200303 arm64 build warnings
> Please refer below links for more information.
>
> make -sk KBUILD_BUILD_USER=TuxBuild -C/linux -j16 ARCH=arm64
> CROSS_COMPILE=aarch64-linux-gnu- HOSTCC=gcc CC="sccache
> aarch64-linux-gnu-gcc" O=build Image
>
> ../kernel/sched/fair.c:1524:20: warning: ???test_idle_cores??? declared
> ???static??? but never defined [-Wunused-function]
> 1524 | static inline bool test_idle_cores(int cpu, bool def);
> | ^~~~~~~~~~~~~~~
>

There is a fix posted that addresses this but it has not reached
tip/sched/core. I'll resend the accumulated fixes today and cc you.

--
Mel Gorman
SUSE Labs