mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [peterz-queue:sched/idle 27/33] include/linux/sched/idle.h:28:9: error: implicit declaration of function 'arch_set_bit'; did you mean 'arch_test_bit'?
Date: Sun, 5 Jun 2022 23:13:47 +0800	[thread overview]
Message-ID: <202206052314.vgAUvUv3-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/idle
head:   5aca393851ce7ebb9a3405bb4ffd4f38d96949e4
commit: bb0533e97a1f03b96874efacec607cffb5fa7a3a [27/33] cpuidle,sched: Remove annotations from TIF_{POLLING_NRFLAG,NEED_RESCHED}
config: sh-buildonly-randconfig-r006-20220605 (https://download.01.org/0day-ci/archive/20220605/202206052314.vgAUvUv3-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=bb0533e97a1f03b96874efacec607cffb5fa7a3a
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/idle
        git checkout bb0533e97a1f03b96874efacec607cffb5fa7a3a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=sh prepare

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

All errors (new ones prefixed by >>):

   In file included from include/linux/sched/topology.h:7,
                    from include/linux/energy_model.h:10,
                    from include/linux/device.h:16,
                    from include/linux/blk_types.h:11,
                    from include/linux/writeback.h:13,
                    from include/linux/memcontrol.h:22,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from arch/sh/kernel/asm-offsets.c:16:
   include/linux/sched/idle.h: In function '__current_set_polling':
>> include/linux/sched/idle.h:28:9: error: implicit declaration of function 'arch_set_bit'; did you mean 'arch_test_bit'? [-Werror=implicit-function-declaration]
      28 |         arch_set_bit(TIF_POLLING_NRFLAG,
         |         ^~~~~~~~~~~~
         |         arch_test_bit
   include/linux/sched/idle.h: In function '__current_clr_polling':
>> include/linux/sched/idle.h:47:9: error: implicit declaration of function 'arch_clear_bit'; did you mean 'arch___clear_bit'? [-Werror=implicit-function-declaration]
      47 |         arch_clear_bit(TIF_POLLING_NRFLAG,
         |         ^~~~~~~~~~~~~~
         |         arch___clear_bit
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:121: arch/sh/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1196: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +28 include/linux/sched/idle.h

    25	
    26	static __always_inline void __current_set_polling(void)
    27	{
  > 28		arch_set_bit(TIF_POLLING_NRFLAG,
    29			     (unsigned long *)(&current_thread_info()->flags));
    30	}
    31	
    32	static __always_inline bool __must_check current_set_polling_and_test(void)
    33	{
    34		__current_set_polling();
    35	
    36		/*
    37		 * Polling state must be visible before we test NEED_RESCHED,
    38		 * paired by resched_curr()
    39		 */
    40		smp_mb__after_atomic();
    41	
    42		return unlikely(tif_need_resched());
    43	}
    44	
    45	static __always_inline void __current_clr_polling(void)
    46	{
  > 47		arch_clear_bit(TIF_POLLING_NRFLAG,
    48			       (unsigned long *)(&current_thread_info()->flags));
    49	}
    50	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-06-05 15:14 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=202206052314.vgAUvUv3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.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

all inboxes | Powered by JetHome®