Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh (Schneider Electric)"
	<thomas.weissschuh@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/hrtimer-header-dependencies 5/5] include/linux/hrtimer_rearm.h:80:97: error: use of undeclared identifier 'false'; did you mean 'else'?
Date: Sat, 27 Jun 2026 03:13:37 +0800	[thread overview]
Message-ID: <202606270343.XYWq4Kgr-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/hrtimer-header-dependencies
head:   0fffc8fb3ee52eaf84481a67834faa5bb8b482b0
commit: 0fffc8fb3ee52eaf84481a67834faa5bb8b482b0 [5/5] hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.h
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20260627/202606270343.XYWq4Kgr-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260627/202606270343.XYWq4Kgr-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606270343.XYWq4Kgr-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/time/vsyscall.c:10:
   In file included from include/linux/hrtimer.h:15:
   include/linux/hrtimer_rearm.h:79:24: error: unknown type name 'bool'
      79 | static __always_inline bool
         |                        ^
>> include/linux/hrtimer_rearm.h:80:97: error: use of undeclared identifier 'false'; did you mean 'else'?
      80 | hrtimer_rearm_deferred_user_irq(unsigned long *tif_work, const unsigned long tif_mask) { return false; }
         |                                                                                                 ^~~~~
         |                                                                                                 else
>> include/linux/hrtimer_rearm.h:80:97: error: expected expression
   include/linux/hrtimer_rearm.h:81:24: error: unknown type name 'bool'
      81 | static __always_inline bool hrtimer_test_and_clear_rearm_deferred(void) { return false; }
         |                        ^
   include/linux/hrtimer_rearm.h:81:82: error: use of undeclared identifier 'false'; did you mean 'else'?
      81 | static __always_inline bool hrtimer_test_and_clear_rearm_deferred(void) { return false; }
         |                                                                                  ^~~~~
         |                                                                                  else
   include/linux/hrtimer_rearm.h:81:82: error: expected expression
   In file included from kernel/time/vsyscall.c:12:
   In file included from include/vdso/datapage.h:25:
   In file included from arch/loongarch/include/asm/vdso/arch_data.h:13:
   In file included from arch/loongarch/include/asm/vdso.h:10:
   In file included from include/linux/mm.h:36:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                         ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/time/vsyscall.c:12:
   In file included from include/vdso/datapage.h:25:
   In file included from arch/loongarch/include/asm/vdso/arch_data.h:13:
   In file included from arch/loongarch/include/asm/vdso.h:10:
   In file included from include/linux/mm.h:36:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                                       ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/time/vsyscall.c:12:
   In file included from include/vdso/datapage.h:25:
   In file included from arch/loongarch/include/asm/vdso/arch_data.h:13:
   In file included from arch/loongarch/include/asm/vdso.h:10:
   In file included from include/linux/mm.h:36:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      99 |                         set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/time/vsyscall.c:12:
   In file included from include/vdso/datapage.h:25:
   In file included from arch/loongarch/include/asm/vdso/arch_data.h:13:
   In file included from arch/loongarch/include/asm/vdso.h:10:
   In file included from include/linux/mm.h:36:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     101 |                 return (set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/time/vsyscall.c:12:
   In file included from include/vdso/datapage.h:25:
   In file included from arch/loongarch/include/asm/vdso/arch_data.h:13:
   In file included from arch/loongarch/include/asm/vdso.h:10:
   In file included from include/linux/mm.h:36:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     114 |                 return  (set1->sig[3] == set2->sig[3]) &&
         |                          ^         ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/time/vsyscall.c:12:
   In file included from include/vdso/datapage.h:25:
   In file included from arch/loongarch/include/asm/vdso/arch_data.h:13:
   In file included from arch/loongarch/include/asm/vdso.h:10:
   In file included from include/linux/mm.h:36:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     114 |                 return  (set1->sig[3] == set2->sig[3]) &&
         |                                          ^         ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/time/vsyscall.c:12:
   In file included from include/vdso/datapage.h:25:
   In file included from arch/loongarch/include/asm/vdso/arch_data.h:13:
   In file included from arch/loongarch/include/asm/vdso.h:10:
   In file included from include/linux/mm.h:36:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     115 |                         (set1->sig[2] == set2->sig[2]) &&
         |                          ^         ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/time/vsyscall.c:12:


vim +80 include/linux/hrtimer_rearm.h

15dd3a9488557d Peter Zijlstra 2026-02-24  74  
a43b4856bc0396 Peter Zijlstra 2026-02-24  75  #else  /* CONFIG_HRTIMER_REARM_DEFERRED */
a43b4856bc0396 Peter Zijlstra 2026-02-24  76  static __always_inline void __hrtimer_rearm_deferred(void) { }
a43b4856bc0396 Peter Zijlstra 2026-02-24  77  static __always_inline void hrtimer_rearm_deferred(void) { }
a43b4856bc0396 Peter Zijlstra 2026-02-24  78  static __always_inline void hrtimer_rearm_deferred_tif(unsigned long tif_work) { }
a43b4856bc0396 Peter Zijlstra 2026-02-24  79  static __always_inline bool
a43b4856bc0396 Peter Zijlstra 2026-02-24 @80  hrtimer_rearm_deferred_user_irq(unsigned long *tif_work, const unsigned long tif_mask) { return false; }
a43b4856bc0396 Peter Zijlstra 2026-02-24  81  static __always_inline bool hrtimer_test_and_clear_rearm_deferred(void) { return false; }
a43b4856bc0396 Peter Zijlstra 2026-02-24  82  #endif  /* !CONFIG_HRTIMER_REARM_DEFERRED */
a43b4856bc0396 Peter Zijlstra 2026-02-24  83  

:::::: The code at line 80 was first introduced by commit
:::::: a43b4856bc039675165a50d9ef5f41b28520f0f4 hrtimer: Prepare stubs for deferred rearming

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-06-26 19:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202606270343.XYWq4Kgr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=thomas.weissschuh@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox