mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:tmp.tmp2 181/364] arch/x86/include/asm/page_64_types.h:75:21: error: implicit declaration of function 'test_thread_flag'
@ 2021-06-13 22:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-13 22:16 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, x86

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: ce4bb9d9b7175b1ac35cc13dd65b06aed1cb4fdd [181/364] sched/headers, x86/mm: Remove <linux/thread_info_api.h> from <asm/elf.h>
config: x86_64-kexec (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/tip/tip.git/commit/?id=ce4bb9d9b7175b1ac35cc13dd65b06aed1cb4fdd
        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 ce4bb9d9b7175b1ac35cc13dd65b06aed1cb4fdd
        # 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 >>):

   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/page.h:9,
                    from arch/x86/include/asm/spinlock.h:7,
                    from include/linux/spinlock.h:91,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/mm.h:12,
                    from include/linux/mman.h:5,
                    from lib/test_user_copy.c:13:
   lib/test_user_copy.c: In function 'test_user_copy_init':
>> arch/x86/include/asm/page_64_types.h:75:21: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
      75 | #define TASK_SIZE  (test_thread_flag(TIF_ADDR32) ? \
         |                     ^~~~~~~~~~~~~~~~
   lib/test_user_copy.c:201:35: note: in expansion of macro 'TASK_SIZE'
     201 |  if (user_addr >= (unsigned long)(TASK_SIZE)) {
         |                                   ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/test_thread_flag +75 arch/x86/include/asm/page_64_types.h

999c83e8ffd90c Christoph Hellwig 2020-09-03  66  
999c83e8ffd90c Christoph Hellwig 2020-09-03  67  /* This decides where the kernel will search for a free chunk of vm
999c83e8ffd90c Christoph Hellwig 2020-09-03  68   * space during mmap's.
999c83e8ffd90c Christoph Hellwig 2020-09-03  69   */
999c83e8ffd90c Christoph Hellwig 2020-09-03  70  #define IA32_PAGE_OFFSET	((current->personality & ADDR_LIMIT_3GB) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  71  					0xc0000000 : 0xFFFFe000)
999c83e8ffd90c Christoph Hellwig 2020-09-03  72  
999c83e8ffd90c Christoph Hellwig 2020-09-03  73  #define TASK_SIZE_LOW		(test_thread_flag(TIF_ADDR32) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  74  					IA32_PAGE_OFFSET : DEFAULT_MAP_WINDOW)
999c83e8ffd90c Christoph Hellwig 2020-09-03 @75  #define TASK_SIZE		(test_thread_flag(TIF_ADDR32) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  76  					IA32_PAGE_OFFSET : TASK_SIZE_MAX)
999c83e8ffd90c Christoph Hellwig 2020-09-03  77  #define TASK_SIZE_OF(child)	((test_tsk_thread_flag(child, TIF_ADDR32)) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  78  					IA32_PAGE_OFFSET : TASK_SIZE_MAX)
999c83e8ffd90c Christoph Hellwig 2020-09-03  79  

:::::: The code at line 75 was first introduced by commit
:::::: 999c83e8ffd90caa00ee6caf054e037cf8a27d0e x86: move PAGE_OFFSET, TASK_SIZE & friends to page_{32,64}_types.h

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-13 22:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 22:16 [tip:tmp.tmp2 181/364] arch/x86/include/asm/page_64_types.h:75:21: error: implicit declaration of function 'test_thread_flag' kernel test robot

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®