All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:softirq 7/20] kernel/softirq.c:624:6: error: redefinition of 'tasklet_unlock_spin_wait'
@ 2021-03-07 17:44 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-03-07 17:44 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git softirq
head:   7f692e68932b191ec564bd6306a7c0d7150b9bd0
commit: fcdf4543b5a744d835300887405ec5149c1f8a40 [7/20] tasklets: Prevent tasklet_unlock_spin_wait() deadlock on RT
config: x86_64-randconfig-a005-20210307 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 4d90e460bcc7b3e5ff6c7e2e05e974772489c4b8)
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/tglx/devel.git/commit/?id=fcdf4543b5a744d835300887405ec5149c1f8a40
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel softirq
        git checkout fcdf4543b5a744d835300887405ec5149c1f8a40
        # 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@intel.com>

All errors (new ones prefixed by >>):

>> kernel/softirq.c:624:6: error: redefinition of 'tasklet_unlock_spin_wait'
   void tasklet_unlock_spin_wait(struct tasklet_struct *t)
        ^
   include/linux/interrupt.h:670:20: note: previous definition is here
   static inline void tasklet_unlock_spin_wait(struct tasklet_struct *t)
                      ^
   1 error generated.


vim +/tasklet_unlock_spin_wait +624 kernel/softirq.c

   618	
   619	#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT_RT)
   620	/*
   621	 * Do not use in new code. There is no real reason to invoke this from
   622	 * atomic contexts.
   623	 */
 > 624	void tasklet_unlock_spin_wait(struct tasklet_struct *t)
   625	{
   626		while (test_bit(TASKLET_STATE_RUN, &(t)->state)) {
   627			if (IS_ENABLED(CONFIG_PREEMPT_RT)) {
   628				/*
   629				 * Prevent a live lock when current preempted soft
   630				 * interrupt processing or prevents ksoftirqd from
   631				 * running. If the tasklet runs on a different CPU
   632				 * then this has no effect other than doing the BH
   633				 * disable/enable dance for nothing.
   634				 */
   635				local_bh_disable();
   636				local_bh_enable();
   637			} else {
   638				cpu_relax();
   639			}
   640		}
   641	}
   642	EXPORT_SYMBOL(tasklet_unlock_spin_wait);
   643	#endif
   644	

---
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: 36599 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tglx-devel:softirq 7/20] kernel/softirq.c:624:6: error: redefinition of 'tasklet_unlock_spin_wait'
@ 2021-03-10  3:59 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-03-10  3:59 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git softirq
head:   383be10736ef5b48c0914e89c6e0a61b78623dda
commit: 1e60e1b199c141e5d1757743e19310d2ba5fecde [7/20] tasklets: Prevent tasklet_unlock_spin_wait() deadlock on RT
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=1e60e1b199c141e5d1757743e19310d2ba5fecde
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel softirq
        git checkout 1e60e1b199c141e5d1757743e19310d2ba5fecde
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> kernel/softirq.c:624:6: error: redefinition of 'tasklet_unlock_spin_wait'
     624 | void tasklet_unlock_spin_wait(struct tasklet_struct *t)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/kernel_stat.h:9,
                    from kernel/softirq.c:13:
   include/linux/interrupt.h:670:20: note: previous definition of 'tasklet_unlock_spin_wait' was here
     670 | static inline void tasklet_unlock_spin_wait(struct tasklet_struct *t)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/tasklet_unlock_spin_wait +624 kernel/softirq.c

   618	
   619	#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT_RT)
   620	/*
   621	 * Do not use in new code. There is no real reason to invoke this from
   622	 * atomic contexts.
   623	 */
 > 624	void tasklet_unlock_spin_wait(struct tasklet_struct *t)
   625	{
   626		while (test_bit(TASKLET_STATE_RUN, &(t)->state)) {
   627			if (IS_ENABLED(CONFIG_PREEMPT_RT)) {
   628				/*
   629				 * Prevent a live lock when current preempted soft
   630				 * interrupt processing or prevents ksoftirqd from
   631				 * running. If the tasklet runs on a different CPU
   632				 * then this has no effect other than doing the BH
   633				 * disable/enable dance for nothing.
   634				 */
   635				local_bh_disable();
   636				local_bh_enable();
   637			} else {
   638				cpu_relax();
   639			}
   640		}
   641	}
   642	EXPORT_SYMBOL(tasklet_unlock_spin_wait);
   643	#endif
   644	

---
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: 50649 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tglx-devel:softirq 7/20] kernel/softirq.c:624:6: error: redefinition of 'tasklet_unlock_spin_wait'
@ 2021-03-08  1:09 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-03-08  1:09 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git softirq
head:   7f692e68932b191ec564bd6306a7c0d7150b9bd0
commit: fcdf4543b5a744d835300887405ec5149c1f8a40 [7/20] tasklets: Prevent tasklet_unlock_spin_wait() deadlock on RT
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=fcdf4543b5a744d835300887405ec5149c1f8a40
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel softirq
        git checkout fcdf4543b5a744d835300887405ec5149c1f8a40
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> kernel/softirq.c:624:6: error: redefinition of 'tasklet_unlock_spin_wait'
     624 | void tasklet_unlock_spin_wait(struct tasklet_struct *t)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/kernel_stat.h:9,
                    from kernel/softirq.c:13:
   include/linux/interrupt.h:670:20: note: previous definition of 'tasklet_unlock_spin_wait' was here
     670 | static inline void tasklet_unlock_spin_wait(struct tasklet_struct *t)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/tasklet_unlock_spin_wait +624 kernel/softirq.c

   618	
   619	#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT_RT)
   620	/*
   621	 * Do not use in new code. There is no real reason to invoke this from
   622	 * atomic contexts.
   623	 */
 > 624	void tasklet_unlock_spin_wait(struct tasklet_struct *t)
   625	{
   626		while (test_bit(TASKLET_STATE_RUN, &(t)->state)) {
   627			if (IS_ENABLED(CONFIG_PREEMPT_RT)) {
   628				/*
   629				 * Prevent a live lock when current preempted soft
   630				 * interrupt processing or prevents ksoftirqd from
   631				 * running. If the tasklet runs on a different CPU
   632				 * then this has no effect other than doing the BH
   633				 * disable/enable dance for nothing.
   634				 */
   635				local_bh_disable();
   636				local_bh_enable();
   637			} else {
   638				cpu_relax();
   639			}
   640		}
   641	}
   642	EXPORT_SYMBOL(tasklet_unlock_spin_wait);
   643	#endif
   644	

---
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: 50663 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-10  3:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-07 17:44 [tglx-devel:softirq 7/20] kernel/softirq.c:624:6: error: redefinition of 'tasklet_unlock_spin_wait' kernel test robot
2021-03-08  1:09 kernel test robot
2021-03-10  3:59 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.