[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107131739.sf3PdEHZ-lkp@intel.com>
Date: Tue, 13 Jul 2021 17:21:58 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, x86@...nel.org
Subject: [tip:core/urgent 1/1] kernel/smpboot.c:50:20: warning: duplicate
'inline' declaration specifier
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/urgent
head: e9ba16e68cce2f85e9f5d2eba5c0453f1a741fd2
commit: e9ba16e68cce2f85e9f5d2eba5c0453f1a741fd2 [1/1] smpboot: Mark idle_init() as __always_inlined to work around aggressive compiler un-inlining
config: x86_64-randconfig-a004-20210713 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=e9ba16e68cce2f85e9f5d2eba5c0453f1a741fd2
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip core/urgent
git checkout e9ba16e68cce2f85e9f5d2eba5c0453f1a741fd2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> kernel/smpboot.c:50:20: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier]
static inline void __always_inline idle_init(unsigned int cpu)
^
include/linux/compiler_attributes.h:65:41: note: expanded from macro '__always_inline'
#define __always_inline inline __attribute__((__always_inline__))
^
include/linux/compiler_types.h:149:16: note: expanded from macro 'inline'
#define inline inline __gnu_inline __inline_maybe_unused notrace
^
1 warning generated.
vim +/inline +50 kernel/smpboot.c
43
44 /**
45 * idle_init - Initialize the idle thread for a cpu
46 * @cpu: The cpu for which the idle thread should be initialized
47 *
48 * Creates the thread if it does not exist.
49 */
> 50 static inline void __always_inline idle_init(unsigned int cpu)
51 {
52 struct task_struct *tsk = per_cpu(idle_threads, cpu);
53
54 if (!tsk) {
55 tsk = fork_idle(cpu);
56 if (IS_ERR(tsk))
57 pr_err("SMP: fork_idle() failed for CPU %u\n", cpu);
58 else
59 per_cpu(idle_threads, cpu) = tsk;
60 }
61 }
62
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (42582 bytes)
Powered by blists - more mailing lists