Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:timers/cleanup 3/59] arch/arm/include/asm/smp.h:73:43: warning: declaration of 'struct completion' will not be visible outside of this function
Date: Mon, 13 Jul 2026 11:28:07 +0800	[thread overview]
Message-ID: <202607131114.p7YIjoLa-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/cleanup
head:   0ad363c8e014568032d53fe2c7ab288de68373f4
commit: 7685fb5c8fe1aebd1a2202b2267a79d5b6775fd2 [3/59] nodemask: Include find.h instead of random.h
config: arm-defconfig (https://download.01.org/0day-ci/archive/20260713/202607131114.p7YIjoLa-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project b3e6e6dabdc02153552a64fc74ff5c7532447eed)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260713/202607131114.p7YIjoLa-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/202607131114.p7YIjoLa-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/prandom.h:13:
   In file included from include/linux/percpu.h:5:
   In file included from include/linux/alloc_tag.h:14:
   In file included from include/linux/smp.h:120:
>> arch/arm/include/asm/smp.h:73:43: warning: declaration of 'struct completion' will not be visible outside of this function [-Wvisibility]
      73 | extern int register_ipi_completion(struct completion *completion, int cpu);
         |                                           ^
   1 warning generated.
--
   In file included from arch/arm/kernel/isa.c:12:
   In file included from include/linux/fs.h:5:
   In file included from include/linux/fs/super.h:5:
   In file included from include/linux/fs/super_types.h:7:
   In file included from include/linux/list_lru.h:13:
   In file included from include/linux/shrinker.h:8:
   In file included from include/linux/completion.h:12:
   In file included from include/linux/swait.h:7:
   In file included from include/linux/spinlock.h:63:
   In file included from include/linux/lockdep.h:14:
   In file included from include/linux/smp.h:120:
>> arch/arm/include/asm/smp.h:73:43: warning: declaration of 'struct completion' will not be visible outside of this function [-Wvisibility]
      73 | extern int register_ipi_completion(struct completion *completion, int cpu);
         |                                           ^
   arch/arm/kernel/isa.c:41:33: warning: variable 'isa_sysctl_header' set but not used [-Wunused-but-set-global]
      41 | static struct ctl_table_header *isa_sysctl_header;
         |                                 ^
   2 warnings generated.
--
   In file included from arch/arm/kernel/smp.c:7:
   In file included from include/linux/module.h:18:
   In file included from include/linux/kmod.h:9:
   In file included from include/linux/umh.h:4:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:8:
   In file included from include/linux/spinlock.h:63:
   In file included from include/linux/lockdep.h:14:
   In file included from include/linux/smp.h:120:
>> arch/arm/include/asm/smp.h:73:43: warning: declaration of 'struct completion' will not be visible outside of this function [-Wvisibility]
      73 | extern int register_ipi_completion(struct completion *completion, int cpu);
         |                                           ^
   arch/arm/kernel/smp.c:619:5: error: conflicting types for 'register_ipi_completion'
     619 | int register_ipi_completion(struct completion *completion, int cpu)
         |     ^
   arch/arm/include/asm/smp.h:73:12: note: previous declaration is here
      73 | extern int register_ipi_completion(struct completion *completion, int cpu);
         |            ^
   1 warning and 1 error generated.
--
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/prandom.h:13:
   In file included from include/linux/percpu.h:5:
   In file included from include/linux/alloc_tag.h:14:
   In file included from include/linux/smp.h:120:
>> arch/arm/include/asm/smp.h:73:43: warning: declaration of 'struct completion' will not be visible outside of this function [-Wvisibility]
      73 | extern int register_ipi_completion(struct completion *completion, int cpu);
         |                                           ^
   1 warning generated.


vim +73 arch/arm/include/asm/smp.h

f6dd9fa5a75a3da include/asm-arm/smp.h      Jens Axboe    2008-06-10  72  
5135d875e1457ef arch/arm/include/asm/smp.h Nicolas Pitre 2012-11-27 @73  extern int register_ipi_completion(struct completion *completion, int cpu);
5135d875e1457ef arch/arm/include/asm/smp.h Nicolas Pitre 2012-11-27  74  

:::::: The code at line 73 was first introduced by commit
:::::: 5135d875e1457ef946a055003d8f80713e862135 ARM: SMP: basic IPI triggered completion support

:::::: TO: Nicolas Pitre <nicolas.pitre@linaro.org>
:::::: CC: Nicolas Pitre <nicolas.pitre@linaro.org>

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

                 reply	other threads:[~2026-07-13  3:28 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=202607131114.p7YIjoLa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tglx@kernel.org \
    /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