From: kernel test robot <lkp@intel.com>
To: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>,
linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org,
Catalin Marinas <catalin.marinas@arm.com>,
Kefeng Wang <wangkefeng.wang@huawei.com>,
Paul Mackerras <paulus@samba.org>, Zong Li <zong.li@sifive.com>,
Andi Kleen <ak@linux.intel.com>,
Paul Burton <paulburton@kernel.org>,
Vincent Whitchurch <vincent.whitchurch@axis.com>,
Petr Mladek <pmladek@suse.com>, Brian Gerst <brgerst@gmail.com>
Subject: Re: [PATCH v2 1/3] module: Rename module_alloc() to text_alloc() and move to kernel proper
Date: Tue, 14 Jul 2020 22:35:27 +0800 [thread overview]
Message-ID: <202007142245.7RlzUWza%lkp@intel.com> (raw)
In-Reply-To: <20200714094625.1443261-2-jarkko.sakkinen@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 5733 bytes --]
Hi Jarkko,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.8-rc5]
[cannot apply to tip/perf/core tip/x86/core jeyu/modules-next next-20200714]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jarkko-Sakkinen/kprobes-Remove-MODULE-dependency/20200714-184220
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 0dc589da873b58b70f4caf4b070fb0cf70fdd1dc
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:19,
from arch/riscv/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from arch/riscv/kernel/text.c:6:
arch/riscv/kernel/text.c: In function 'text_alloc':
>> arch/riscv/kernel/text.c:12:33: error: '_end' undeclared (first use in this function); did you mean 'va_end'?
12 | max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
| ^~~~
include/linux/kernel.h:851:22: note: in definition of macro '__typecheck'
851 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/kernel.h:875:24: note: in expansion of macro '__safe_cmp'
875 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/kernel.h:891:19: note: in expansion of macro '__careful_cmp'
891 | #define max(x, y) __careful_cmp(x, y, >)
| ^~~~~~~~~~~~~
arch/riscv/kernel/text.c:12:3: note: in expansion of macro 'max'
12 | max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
| ^~~
arch/riscv/kernel/text.c:12:7: note: in expansion of macro 'PFN_ALIGN'
12 | max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
| ^~~~~~~~~
arch/riscv/kernel/text.c:15:39: note: in expansion of macro 'VMALLOC_MODULE_START'
15 | return __vmalloc_node_range(size, 1, VMALLOC_MODULE_START,
| ^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/text.c:12:33: note: each undeclared identifier is reported only once for each function it appears in
12 | max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
| ^~~~
include/linux/kernel.h:851:22: note: in definition of macro '__typecheck'
851 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/kernel.h:875:24: note: in expansion of macro '__safe_cmp'
875 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/kernel.h:891:19: note: in expansion of macro '__careful_cmp'
891 | #define max(x, y) __careful_cmp(x, y, >)
| ^~~~~~~~~~~~~
arch/riscv/kernel/text.c:12:3: note: in expansion of macro 'max'
12 | max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
| ^~~
arch/riscv/kernel/text.c:12:7: note: in expansion of macro 'PFN_ALIGN'
12 | max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
| ^~~~~~~~~
arch/riscv/kernel/text.c:15:39: note: in expansion of macro 'VMALLOC_MODULE_START'
15 | return __vmalloc_node_range(size, 1, VMALLOC_MODULE_START,
| ^~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:875:2: error: first argument to '__builtin_choose_expr' not a constant
875 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:891:19: note: in expansion of macro '__careful_cmp'
891 | #define max(x, y) __careful_cmp(x, y, >)
| ^~~~~~~~~~~~~
arch/riscv/kernel/text.c:12:3: note: in expansion of macro 'max'
12 | max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
| ^~~
arch/riscv/kernel/text.c:15:39: note: in expansion of macro 'VMALLOC_MODULE_START'
15 | return __vmalloc_node_range(size, 1, VMALLOC_MODULE_START,
| ^~~~~~~~~~~~~~~~~~~~
>> arch/riscv/kernel/text.c:19:1: warning: control reaches end of non-void function [-Wreturn-type]
19 | }
| ^
vim +12 arch/riscv/kernel/text.c
> 6 #include <linux/mm.h>
7 #include <linux/moduleloader.h>
8 #include <linux/vmalloc.h>
9
10 #if defined(CONFIG_MMU) && defined(CONFIG_64BIT)
11 #define VMALLOC_MODULE_START \
> 12 max(PFN_ALIGN((unsigned long)&_end - SZ_2G), VMALLOC_START)
13 void *text_alloc(unsigned long size)
14 {
15 return __vmalloc_node_range(size, 1, VMALLOC_MODULE_START,
16 VMALLOC_END, GFP_KERNEL,
17 PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE,
18 __builtin_return_address(0));
> 19 }
---
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: 65175 bytes --]
parent reply other threads:[~2020-07-14 14:39 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20200714094625.1443261-2-jarkko.sakkinen@linux.intel.com>]
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=202007142245.7RlzUWza%lkp@intel.com \
--to=lkp@intel.com \
--cc=ak@linux.intel.com \
--cc=brgerst@gmail.com \
--cc=catalin.marinas@arm.com \
--cc=jarkko.sakkinen@linux.intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulburton@kernel.org \
--cc=paulus@samba.org \
--cc=pmladek@suse.com \
--cc=vincent.whitchurch@axis.com \
--cc=wangkefeng.wang@huawei.com \
--cc=zong.li@sifive.com \
/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®