mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, x86@kernel.org
Subject: [tip:tmp.tmp2 12/364] include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
Date: Mon, 14 Jun 2021 05:12:45 +0800	[thread overview]
Message-ID: <202106140542.4oMD3vYe-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 40962503e2b9bddcef82fba70374b464ee9867b1 [12/364] sched/headers: Move thread_info APIs to <linux/sched/thread_info_api.h>
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.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/tip/tip.git/commit/?id=40962503e2b9bddcef82fba70374b464ee9867b1
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout 40962503e2b9bddcef82fba70374b464ee9867b1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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 >>):

   In file included from ./arch/ia64/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/sched/signal.h:7,
                    from arch/ia64/kernel/asm-offsets.c:10:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from include/linux/sched/signal.h:12,
                    from arch/ia64/kernel/asm-offsets.c:10:
   include/linux/sched/thread_info_api.h: At top level:
>> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
      33 | static inline struct thread_info *current_thread_info(void)
         |                                                           ^
   In file included from include/linux/thread_info.h:50,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/ia64/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/sched/signal.h:7,
                    from arch/ia64/kernel/asm-offsets.c:10:
   arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here
      62 | #define current_thread_info() ((struct thread_info *) 0)
         | 
   In file included from include/linux/sched/signal.h:12,
                    from arch/ia64/kernel/asm-offsets.c:10:
>> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
      34 | {
         | ^
   arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
      23 | void foo(void)
         |      ^~~
   cc1: some warnings being treated as errors
--
   In file included from ./arch/ia64/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/sched/signal.h:7,
                    from arch/ia64/kernel/asm-offsets.c:10:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from include/linux/sched/signal.h:12,
                    from arch/ia64/kernel/asm-offsets.c:10:
   include/linux/sched/thread_info_api.h: At top level:
>> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
      33 | static inline struct thread_info *current_thread_info(void)
         |                                                           ^
   In file included from include/linux/thread_info.h:50,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/ia64/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/sched/signal.h:7,
                    from arch/ia64/kernel/asm-offsets.c:10:
   arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here
      62 | #define current_thread_info() ((struct thread_info *) 0)
         | 
   In file included from include/linux/sched/signal.h:12,
                    from arch/ia64/kernel/asm-offsets.c:10:
>> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
      34 | {
         | ^
   arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
      23 | void foo(void)
         |      ^~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:117: arch/ia64/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1232: prepare0] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
   In file included from ./arch/ia64/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/sched/signal.h:7,
                    from arch/ia64/kernel/asm-offsets.c:10:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from include/linux/sched/signal.h:12,
                    from arch/ia64/kernel/asm-offsets.c:10:
   include/linux/sched/thread_info_api.h: At top level:
>> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
      33 | static inline struct thread_info *current_thread_info(void)
         |                                                           ^
   In file included from include/linux/thread_info.h:50,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/ia64/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/sched/signal.h:7,
                    from arch/ia64/kernel/asm-offsets.c:10:
   arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here
      62 | #define current_thread_info() ((struct thread_info *) 0)
         | 
   In file included from include/linux/sched/signal.h:12,
                    from arch/ia64/kernel/asm-offsets.c:10:
>> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
      34 | {
         | ^
   arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
      23 | void foo(void)
         |      ^~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:117: arch/ia64/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1232: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/current_thread_info +33 include/linux/sched/thread_info_api.h

    31	
    32	# include <asm/current.h>
  > 33	static inline struct thread_info *current_thread_info(void)
  > 34	{
    35		return task_thread_info(current);
    36	}
    37	

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

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

                 reply	other threads:[~2021-06-13 21:13 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=202106140542.4oMD3vYe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=x86@kernel.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®