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 181/364] arch/x86/include/asm/page_64_types.h:75:21: error: implicit declaration of function 'test_thread_flag'
Date: Mon, 14 Jun 2021 06:16:09 +0800 [thread overview]
Message-ID: <202106140602.HKKWkVLD-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-06-13 22:19 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=202106140602.HKKWkVLD-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®