All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [mark:arm64/preempt-dynamic-static-key 6/6] kernel/locking/locktorture.c:122:3: error: implicit declaration of function 'preempt_schedule'
Date: Sat, 4 Dec 2021 07:39:59 +0800	[thread overview]
Message-ID: <202112040752.yaWl1AdY-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/preempt-dynamic-static-key
head:   d8d8c0b10c8545aedf353b146905a1e61e3176f5
commit: d8d8c0b10c8545aedf353b146905a1e61e3176f5 [6/6] arm64: support PREEMPT_DYNAMIC
config: arm64-randconfig-r015-20211203 (https://download.01.org/0day-ci/archive/20211204/202112040752.yaWl1AdY-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d30fcadf07ee552f20156ea90be2fdb54cb9cb08)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=d8d8c0b10c8545aedf353b146905a1e61e3176f5
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/preempt-dynamic-static-key
        git checkout d8d8c0b10c8545aedf353b146905a1e61e3176f5
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash kernel/locking/

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/locking/locktorture.c:122:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:122:3: note: did you mean 'preempt_schedule_irq'?
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   include/linux/sched.h:291:17: note: 'preempt_schedule_irq' declared here
   asmlinkage void preempt_schedule_irq(void);
                   ^
   kernel/locking/locktorture.c:170:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:349:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:524:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:564:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:591:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   6 errors generated.


vim +/preempt_schedule +122 kernel/locking/locktorture.c

e086481baf9d04 Paul E. McKenney 2014-02-11  112  
e086481baf9d04 Paul E. McKenney 2014-02-11  113  static void torture_lock_busted_write_delay(struct torture_random_state *trsp)
e086481baf9d04 Paul E. McKenney 2014-02-11  114  {
61d49d2f9888ac Paul E. McKenney 2015-04-01  115  	const unsigned long longdelay_ms = 100;
e086481baf9d04 Paul E. McKenney 2014-02-11  116  
e086481baf9d04 Paul E. McKenney 2014-02-11  117  	/* We want a long delay occasionally to force massive contention.  */
e086481baf9d04 Paul E. McKenney 2014-02-11  118  	if (!(torture_random(trsp) %
61d49d2f9888ac Paul E. McKenney 2015-04-01  119  	      (cxt.nrealwriters_stress * 2000 * longdelay_ms)))
61d49d2f9888ac Paul E. McKenney 2015-04-01  120  		mdelay(longdelay_ms);
630952c22b04ad Davidlohr Bueso  2014-09-11  121  	if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
cc1321c96f8555 Paul E. McKenney 2017-10-16 @122  		torture_preempt_schedule();  /* Allow test to be preempted. */
e086481baf9d04 Paul E. McKenney 2014-02-11  123  }
e086481baf9d04 Paul E. McKenney 2014-02-11  124  

:::::: The code at line 122 was first introduced by commit
:::::: cc1321c96f855525fbd847fec130f000daa1bb1f torture: Reduce #ifdefs for preempt_schedule()

:::::: TO: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mark:arm64/preempt-dynamic-static-key 6/6] kernel/locking/locktorture.c:122:3: error: implicit declaration of function 'preempt_schedule'
Date: Sat, 04 Dec 2021 07:39:59 +0800	[thread overview]
Message-ID: <202112040752.yaWl1AdY-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/preempt-dynamic-static-key
head:   d8d8c0b10c8545aedf353b146905a1e61e3176f5
commit: d8d8c0b10c8545aedf353b146905a1e61e3176f5 [6/6] arm64: support PREEMPT_DYNAMIC
config: arm64-randconfig-r015-20211203 (https://download.01.org/0day-ci/archive/20211204/202112040752.yaWl1AdY-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d30fcadf07ee552f20156ea90be2fdb54cb9cb08)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=d8d8c0b10c8545aedf353b146905a1e61e3176f5
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/preempt-dynamic-static-key
        git checkout d8d8c0b10c8545aedf353b146905a1e61e3176f5
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash kernel/locking/

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/locking/locktorture.c:122:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:122:3: note: did you mean 'preempt_schedule_irq'?
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   include/linux/sched.h:291:17: note: 'preempt_schedule_irq' declared here
   asmlinkage void preempt_schedule_irq(void);
                   ^
   kernel/locking/locktorture.c:170:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:349:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:524:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:564:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   kernel/locking/locktorture.c:591:3: error: implicit declaration of function 'preempt_schedule' [-Werror,-Wimplicit-function-declaration]
                   torture_preempt_schedule();  /* Allow test to be preempted. */
                   ^
   include/linux/torture.h:126:36: note: expanded from macro 'torture_preempt_schedule'
   #define torture_preempt_schedule() preempt_schedule()
                                      ^
   6 errors generated.


vim +/preempt_schedule +122 kernel/locking/locktorture.c

e086481baf9d04 Paul E. McKenney 2014-02-11  112  
e086481baf9d04 Paul E. McKenney 2014-02-11  113  static void torture_lock_busted_write_delay(struct torture_random_state *trsp)
e086481baf9d04 Paul E. McKenney 2014-02-11  114  {
61d49d2f9888ac Paul E. McKenney 2015-04-01  115  	const unsigned long longdelay_ms = 100;
e086481baf9d04 Paul E. McKenney 2014-02-11  116  
e086481baf9d04 Paul E. McKenney 2014-02-11  117  	/* We want a long delay occasionally to force massive contention.  */
e086481baf9d04 Paul E. McKenney 2014-02-11  118  	if (!(torture_random(trsp) %
61d49d2f9888ac Paul E. McKenney 2015-04-01  119  	      (cxt.nrealwriters_stress * 2000 * longdelay_ms)))
61d49d2f9888ac Paul E. McKenney 2015-04-01  120  		mdelay(longdelay_ms);
630952c22b04ad Davidlohr Bueso  2014-09-11  121  	if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000)))
cc1321c96f8555 Paul E. McKenney 2017-10-16 @122  		torture_preempt_schedule();  /* Allow test to be preempted. */
e086481baf9d04 Paul E. McKenney 2014-02-11  123  }
e086481baf9d04 Paul E. McKenney 2014-02-11  124  

:::::: The code at line 122 was first introduced by commit
:::::: cc1321c96f855525fbd847fec130f000daa1bb1f torture: Reduce #ifdefs for preempt_schedule()

:::::: TO: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

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

             reply	other threads:[~2021-12-03 23:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03 23:39 kernel test robot [this message]
2021-12-03 23:39 ` [mark:arm64/preempt-dynamic-static-key 6/6] kernel/locking/locktorture.c:122:3: error: implicit declaration of function 'preempt_schedule' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-11-21  5:02 kernel test robot
2021-11-21  5:02 ` kernel test robot

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=202112040752.yaWl1AdY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mark.rutland@arm.com \
    /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 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.