Re: [peterz-queue:sched/core 32/32] arch/arm64/include/asm/preempt.h:85:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_TRUE'
From: Mark Rutland
Date: Tue Feb 08 2022 - 13:49:28 EST
On Tue, Feb 08, 2022 at 07:08:33PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
> head: ac7695a93a578befdcf4900a90860bf19e057e1b
> commit: ac7695a93a578befdcf4900a90860bf19e057e1b [32/32] arm64: support PREEMPT_DYNAMIC
> >> arch/arm64/include/asm/preempt.h:85:1: warning: data definition has no type or storage class
> 85 | DECLARE_STATIC_KEY_TRUE(sk_dynamic_irqentry_exit_cond_resched);
> | ^~~~~~~~~~~~~~~~~~~~~~~
This is because I forgot to include <linux/jump_label.h>, so GCC has no idea
what `DECLARE_STATIC_KEY_TRUE` means.
I'll go add that where needed and check that doesn't introduce a circular
dependency.
Thanks,
Mark.