public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gabriel Krisman Bertazi <krisman@collabora.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org, x86@kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Kees Cook <keescook@chromium.org>
Subject: [tip:core/entry 1/1] include/linux/seccomp.h:45:15: error: use of undeclared identifier 'TIF_WORK_SECCOMP'
Date: Wed, 25 Nov 2020 08:09:27 +0800	[thread overview]
Message-ID: <202011250806.w8maTx2J-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/entry
head:   0395124a2fbff5132afee5767071ebe7e05885ac
commit: 0395124a2fbff5132afee5767071ebe7e05885ac [1/1] entry: Fix boot for !CONFIG_GENERIC_ENTRY
config: riscv-randconfig-r024-20201124 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project df9ae5992889560a8f3c6760b54d5051b47c7bf5)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0395124a2fbff5132afee5767071ebe7e05885ac
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip core/entry
        git checkout 0395124a2fbff5132afee5767071ebe7e05885ac
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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/riscv/kernel/asm-offsets.c:10:
   In file included from include/linux/sched.h:22:
>> include/linux/seccomp.h:45:15: error: use of undeclared identifier 'TIF_WORK_SECCOMP'
           if (unlikely(test_syscall_work(SECCOMP)))
                        ^
   include/linux/thread_info.h:136:45: note: expanded from macro 'test_syscall_work'
           test_ti_thread_flag(current_thread_info(), TIF_WORK_##fl)
                                                      ^
   <scratch space>:71:1: note: expanded from here
   TIF_WORK_SECCOMP
   ^
   arch/riscv/kernel/asm-offsets.c:14:6: warning: no previous prototype for function 'asm_offsets' [-Wmissing-prototypes]
   void asm_offsets(void)
        ^
   arch/riscv/kernel/asm-offsets.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void asm_offsets(void)
   ^
   static 
   1 warning and 1 error generated.
   make[2]: *** [scripts/Makefile.build:117: arch/riscv/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1200: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.

vim +/TIF_WORK_SECCOMP +45 include/linux/seccomp.h

^1da177e4c3f415 Linus Torvalds          2005-04-16  40  
a4412fc9486ec85 Andy Lutomirski         2014-07-21  41  #ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
2f275de5d1ed726 Andy Lutomirski         2016-05-27  42  extern int __secure_computing(const struct seccomp_data *sd);
fefad9ef58ffc22 Christian Brauner       2019-09-24  43  static inline int secure_computing(void)
^1da177e4c3f415 Linus Torvalds          2005-04-16  44  {
23d67a54857a768 Gabriel Krisman Bertazi 2020-11-16 @45  	if (unlikely(test_syscall_work(SECCOMP)))
fefad9ef58ffc22 Christian Brauner       2019-09-24  46  		return  __secure_computing(NULL);
acf3b2c71ed20c5 Will Drewry             2012-04-12  47  	return 0;
^1da177e4c3f415 Linus Torvalds          2005-04-16  48  }
a4412fc9486ec85 Andy Lutomirski         2014-07-21  49  #else
a4412fc9486ec85 Andy Lutomirski         2014-07-21  50  extern void secure_computing_strict(int this_syscall);
a4412fc9486ec85 Andy Lutomirski         2014-07-21  51  #endif
e4da89d02f36945 Will Drewry             2012-04-17  52  

:::::: The code at line 45 was first introduced by commit
:::::: 23d67a54857a768acdb0804cdd6037c324a50ecd seccomp: Migrate to use SYSCALL_WORK flag

:::::: TO: Gabriel Krisman Bertazi <krisman@collabora.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

             reply	other threads:[~2020-11-25  0:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25  0:09 kernel test robot [this message]
2020-11-25  0:19 ` [tip:core/entry 1/1] include/linux/seccomp.h:45:15: error: use of undeclared identifier 'TIF_WORK_SECCOMP' Gabriel Krisman Bertazi

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=202011250806.w8maTx2J-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=keescook@chromium.org \
    --cc=krisman@collabora.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --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