* Re: [PATCH v2 1/3] module: Rename module_alloc() to text_alloc() and move to kernel proper
[not found] <20200714094625.1443261-2-jarkko.sakkinen@linux.intel.com>
@ 2020-07-14 14:35 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-14 14:35 UTC (permalink / raw)
To: Jarkko Sakkinen, linux-kernel
Cc: kbuild-all, Catalin Marinas, Kefeng Wang, Paul Mackerras,
Zong Li, Andi Kleen, Paul Burton, Vincent Whitchurch,
Petr Mladek, Brian Gerst
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-14 14:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200714094625.1443261-2-jarkko.sakkinen@linux.intel.com>
2020-07-14 14:35 ` [PATCH v2 1/3] module: Rename module_alloc() to text_alloc() and move to kernel proper 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®