Re: linux-next: build warnings after merge of the clockevents tree
From: Andrew Murray
Date: Mon Jun 17 2019 - 05:03:46 EST
On Mon, Jun 17, 2019 at 02:52:45PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the clockevents tree, today's linux-next build (arm
> multi_v7_defconfig) produced these warnings:
>
> In file included from arch/arm/kernel/vdso.c:30:
> arch/arm/include/asm/arch_timer.h: In function 'arch_timer_set_evtstrm_feature':
> arch/arm/include/asm/arch_timer.h:131:1: warning: no return statement in function returning non-void [-Wreturn-type]
> }
> ^
> In file included from drivers/clocksource/arm_arch_timer.c:31:
> arch/arm/include/asm/arch_timer.h: In function 'arch_timer_set_evtstrm_feature':
> arch/arm/include/asm/arch_timer.h:131:1: warning: no return statement in function returning non-void [-Wreturn-type]
> }
> ^
>
> Introduced by commit
>
> 11e34eca5d0a ("clocksource/arm_arch_timer: Extract elf_hwcap use to arch-helper")
This was also picked up by the kbuild robot, I'll sent a patch shortly - apologies.
Thanks,
Andrew Murray
>
> Look like a missed "return".
>
> --
> Cheers,
> Stephen Rothwell