All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip:core/urgent 1/1] kernel/smpboot.c:50:20: sparse: sparse: duplicate inline
@ 2021-07-13 12:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-13 12:56 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3748 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
CC: x86(a)kernel.org
TO: Ingo Molnar <mingo@kernel.org>

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
:::::: branch date: 8 hours ago
:::::: commit date: 8 hours ago
config: mips-randconfig-s031-20210713 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # 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=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
   command-line: note: in included file:
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
   builtin:0:0: sparse: this was the original definition
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
   builtin:0:0: sparse: this was the original definition
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
   builtin:0:0: sparse: this was the original definition
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
   builtin:0:0: sparse: this was the original definition
>> kernel/smpboot.c:50:20: sparse: sparse: duplicate inline

vim +50 kernel/smpboot.c

29d5e0476e1c4a Thomas Gleixner  2012-04-20  43  
4a70d2d9909b43 Srivatsa S. Bhat 2012-05-24  44  /**
4a70d2d9909b43 Srivatsa S. Bhat 2012-05-24  45   * idle_init - Initialize the idle thread for a cpu
4a70d2d9909b43 Srivatsa S. Bhat 2012-05-24  46   * @cpu:	The cpu for which the idle thread should be initialized
4a70d2d9909b43 Srivatsa S. Bhat 2012-05-24  47   *
4a70d2d9909b43 Srivatsa S. Bhat 2012-05-24  48   * Creates the thread if it does not exist.
4a70d2d9909b43 Srivatsa S. Bhat 2012-05-24  49   */
e9ba16e68cce2f Ingo Molnar      2021-07-11 @50  static inline void __always_inline idle_init(unsigned int cpu)
29d5e0476e1c4a Thomas Gleixner  2012-04-20  51  {
3bb5d2ee396aab Suresh Siddha    2012-04-20  52  	struct task_struct *tsk = per_cpu(idle_threads, cpu);
3bb5d2ee396aab Suresh Siddha    2012-04-20  53  
3bb5d2ee396aab Suresh Siddha    2012-04-20  54  	if (!tsk) {
3bb5d2ee396aab Suresh Siddha    2012-04-20  55  		tsk = fork_idle(cpu);
3bb5d2ee396aab Suresh Siddha    2012-04-20  56  		if (IS_ERR(tsk))
3bb5d2ee396aab Suresh Siddha    2012-04-20  57  			pr_err("SMP: fork_idle() failed for CPU %u\n", cpu);
3bb5d2ee396aab Suresh Siddha    2012-04-20  58  		else
3bb5d2ee396aab Suresh Siddha    2012-04-20  59  			per_cpu(idle_threads, cpu) = tsk;
3bb5d2ee396aab Suresh Siddha    2012-04-20  60  	}
29d5e0476e1c4a Thomas Gleixner  2012-04-20  61  }
29d5e0476e1c4a Thomas Gleixner  2012-04-20  62  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29765 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-13 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 12:56 [tip:core/urgent 1/1] kernel/smpboot.c:50:20: sparse: sparse: duplicate inline kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.