Re: [RFC][PATCH 13/24] x86/pti: Extend PTI user mappings
by kernel test robot
Hi Alexandre,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/x86/mm]
[also build test WARNING on v5.10-rc3 next-20201112]
[cannot apply to tip/x86/core tip/x86/asm]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Alexandre-Chartre/x86-pti-Defer-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 1fcd009102ee02e217f2e7635ab65517d785da8e
config: x86_64-randconfig-s022-20201110 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://github.com/0day-ci/linux/commit/0fcc7787f4670458b801ea103084c6494...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexandre-Chartre/x86-pti-Defer-CR3-switch-to-C-code/20201109-225007
git checkout 0fcc7787f4670458b801ea103084c6494227b89e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> arch/x86/mm/pti.c:472:48: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct fixed_percpu_data * @@
>> arch/x86/mm/pti.c:472:48: sparse: expected void const [noderef] __percpu *__vpp_verify
>> arch/x86/mm/pti.c:472:48: sparse: got struct fixed_percpu_data *
vim +472 arch/x86/mm/pti.c
445
446 /*
447 * Clone the CPU_ENTRY_AREA and associated data into the user space visible
448 * page table.
449 */
450 static void __init pti_clone_user_shared(void)
451 {
452 unsigned int cpu;
453
454 pti_clone_p4d(CPU_ENTRY_AREA_BASE);
455
456 for_each_possible_cpu(cpu) {
457 /*
458 * The SYSCALL64 entry code needs to be able to find the
459 * thread stack and needs one word of scratch space in which
460 * to spill a register. All of this lives in the TSS, in
461 * the sp1 and sp2 slots.
462 *
463 * This is done for all possible CPUs during boot to ensure
464 * that it's propagated to all mms.
465 */
466 pti_clone_percpu_page(&per_cpu(cpu_tss_rw, cpu));
467
468 /*
469 * Map fixed_percpu_data to get the stack canary.
470 */
471 if (IS_ENABLED(CONFIG_STACKPROTECTOR))
> 472 pti_clone_percpu_page(&per_cpu(fixed_percpu_data, cpu));
473 }
474 }
475
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 06/19] elf/vdso: Reuse arch_setup_additional_pages() parameters
by kernel test robot
Hi Dmitry,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on c34f157421f6905e6b4a79a312e9175dce2bc607]
url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_...
base: c34f157421f6905e6b4a79a312e9175dce2bc607
config: riscv-allmodconfig (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
# https://github.com/0day-ci/linux/commit/04586680978b048abe74dd892c5b1fcde...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
git checkout 04586680978b048abe74dd892c5b1fcde7c486a3
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/elf.h:6,
from arch/riscv/kernel/vdso.c:9:
arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/vdso.c: In function 'arch_setup_additional_pages':
>> arch/riscv/kernel/vdso.c:62:27: warning: variable 'vvar_base' set but not used [-Wunused-but-set-variable]
62 | unsigned long vdso_base, vvar_base, vdso_len;
| ^~~~~~~~~
vim +/vvar_base +62 arch/riscv/kernel/vdso.c
> 9 #include <linux/elf.h>
10 #include <linux/mm.h>
11 #include <linux/slab.h>
12 #include <linux/binfmts.h>
13 #include <linux/err.h>
14 #include <asm/page.h>
15 #ifdef GENERIC_TIME_VSYSCALL
16 #include <vdso/datapage.h>
17 #else
18 #include <asm/vdso.h>
19 #endif
20
21 extern char vdso_start[], vdso_end[];
22
23 static unsigned int vdso_pages;
24 static struct page **vdso_pagelist;
25
26 /*
27 * The vDSO data page.
28 */
29 static union {
30 struct vdso_data data;
31 u8 page[PAGE_SIZE];
32 } vdso_data_store __page_aligned_data;
33 struct vdso_data *vdso_data = &vdso_data_store.data;
34
35 static int __init vdso_init(void)
36 {
37 unsigned int i;
38
39 vdso_pages = (vdso_end - vdso_start) >> PAGE_SHIFT;
40 vdso_pagelist =
41 kcalloc(vdso_pages + 1, sizeof(struct page *), GFP_KERNEL);
42 if (unlikely(vdso_pagelist == NULL)) {
43 pr_err("vdso: pagelist allocation failed\n");
44 return -ENOMEM;
45 }
46
47 for (i = 0; i < vdso_pages; i++) {
48 struct page *pg;
49
50 pg = virt_to_page(vdso_start + (i << PAGE_SHIFT));
51 vdso_pagelist[i] = pg;
52 }
53 vdso_pagelist[i] = virt_to_page(vdso_data);
54
55 return 0;
56 }
57 arch_initcall(vdso_init);
58
59 int arch_setup_additional_pages(unsigned long *sysinfo_ehdr)
60 {
61 struct mm_struct *mm = current->mm;
> 62 unsigned long vdso_base, vvar_base, vdso_len;
63 int ret;
64
65 vdso_len = (vdso_pages + 1) << PAGE_SHIFT;
66
67 mmap_write_lock(mm);
68 vdso_base = get_unmapped_area(NULL, 0, vdso_len, 0, 0);
69 if (IS_ERR_VALUE(vdso_base)) {
70 ret = vdso_base;
71 goto end;
72 }
73
74 /*
75 * Put vDSO base into mm struct. We need to do this before calling
76 * install_special_mapping or the perf counter mmap tracking code
77 * will fail to recognise it as a vDSO (since arch_vma_name fails).
78 */
79 mm->context.vdso = (void *)vdso_base;
80
81 ret =
82 install_special_mapping(mm, vdso_base, vdso_pages << PAGE_SHIFT,
83 (VM_READ | VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC),
84 vdso_pagelist);
85
86 if (unlikely(ret)) {
87 mm->context.vdso = NULL;
88 goto end;
89 }
90
91 vvar_base = vdso_base + (vdso_pages << PAGE_SHIFT);
92 ret = install_special_mapping(mm, vdso_base, PAGE_SIZE,
93 (VM_READ | VM_MAYREAD), &vdso_pagelist[vdso_pages]);
94
95 if (unlikely(ret))
96 mm->context.vdso = NULL;
97 else
98 *sysinfo_ehdr = vdso_base;
99 end:
100 mmap_write_unlock(mm);
101 return ret;
102 }
103
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v2 5/6] regulator: mcp16502: add support for ramp delay
by kernel test robot
Hi Claudiu,
I love your patch! Yet something to improve:
[auto build test ERROR on regulator/for-next]
[also build test ERROR on linus/master linux/master v5.10-rc3 next-20201112]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Claudiu-Beznea/regulator-mcp1650...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: nios2-randconfig-r034-20201111 (attached as .config)
compiler: nios2-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
# https://github.com/0day-ci/linux/commit/d97d6b70286fa3a28e744a55da1b7eb6a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Claudiu-Beznea/regulator-mcp16502-add-support-for-ramp-delay/20201111-170928
git checkout d97d6b70286fa3a28e744a55da1b7eb6a026cee3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:20,
from ./arch/nios2/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/nios2/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/gpio/driver.h:5,
from include/asm-generic/gpio.h:11,
from include/linux/gpio.h:62,
from drivers/regulator/mcp16502.c:11:
drivers/regulator/mcp16502.c: In function 'mcp16502_set_voltage_time_sel':
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:287:38: note: in definition of macro '__abs_choose_expr'
287 | __builtin_types_compatible_p(typeof(x), signed type) || \
| ^
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:287:38: note: in definition of macro '__abs_choose_expr'
287 | __builtin_types_compatible_p(typeof(x), signed type) || \
| ^
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:288:38: note: in definition of macro '__abs_choose_expr'
288 | __builtin_types_compatible_p(typeof(x), unsigned type), \
| ^
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:288:38: note: in definition of macro '__abs_choose_expr'
288 | __builtin_types_compatible_p(typeof(x), unsigned type), \
| ^
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:24: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:24: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> drivers/regulator/mcp16502.c:295:54: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
drivers/regulator/mcp16502.c:296:47: error: 'const struct linear_range' has no member named 'uV_step'; did you mean 'step'?
296 | old_sel * rdev->desc->linear_ranges->uV_step);
| ^~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
>> include/linux/kernel.h:281:3: error: first argument to '__builtin_choose_expr' not a constant
281 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
include/linux/kernel.h:286:43: error: first argument to '__builtin_choose_expr' not a constant
286 | #define __abs_choose_expr(x, type, other) __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:280:3: note: in expansion of macro '__abs_choose_expr'
280 | __abs_choose_expr(x, char, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
include/linux/kernel.h:286:43: error: first argument to '__builtin_choose_expr' not a constant
286 | #define __abs_choose_expr(x, type, other) __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:279:3: note: in expansion of macro '__abs_choose_expr'
279 | __abs_choose_expr(x, short, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
include/linux/kernel.h:286:43: error: first argument to '__builtin_choose_expr' not a constant
286 | #define __abs_choose_expr(x, type, other) __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:278:3: note: in expansion of macro '__abs_choose_expr'
278 | __abs_choose_expr(x, int, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
include/linux/kernel.h:286:43: error: first argument to '__builtin_choose_expr' not a constant
286 | #define __abs_choose_expr(x, type, other) __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:289:54: note: in definition of macro '__abs_choose_expr'
289 | ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
| ^~~~~
include/linux/kernel.h:277:3: note: in expansion of macro '__abs_choose_expr'
277 | __abs_choose_expr(x, long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
include/linux/kernel.h:286:43: error: first argument to '__builtin_choose_expr' not a constant
286 | #define __abs_choose_expr(x, type, other) __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:276:16: note: in expansion of macro '__abs_choose_expr'
276 | #define abs(x) __abs_choose_expr(x, long long, \
| ^~~~~~~~~~~~~~~~~
drivers/regulator/mcp16502.c:295:13: note: in expansion of macro 'abs'
295 | uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
| ^~~
vim +295 drivers/regulator/mcp16502.c
280
281 static int mcp16502_set_voltage_time_sel(struct regulator_dev *rdev,
282 unsigned int old_sel,
283 unsigned int new_sel)
284 {
285 static const u8 us_ramp[] = { 8, 16, 24, 32 };
286 int id = rdev_get_id(rdev);
287 unsigned int uV_delta, val;
288 int ret;
289
290 ret = regmap_read(rdev->regmap, MCP16502_REG_BASE(id, CFG), &val);
291 if (ret)
292 return ret;
293
294 val = (val & MCP16502_DVSR) >> 2;
> 295 uV_delta = abs(new_sel * rdev->desc->linear_ranges->uV_step -
296 old_sel * rdev->desc->linear_ranges->uV_step);
297 switch (id) {
298 case BUCK1:
299 case LDO1:
300 case LDO2:
301 ret = DIV_ROUND_CLOSEST(uV_delta * us_ramp[val],
302 mcp16502_ramp_b1l12[val]);
303 break;
304
305 case BUCK2:
306 case BUCK3:
307 case BUCK4:
308 ret = DIV_ROUND_CLOSEST(uV_delta * us_ramp[val],
309 mcp16502_ramp_b234[val]);
310 break;
311
312 default:
313 return -EINVAL;
314 }
315
316 return ret;
317 }
318
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-review:UPDATE-20201101-053738/Anant-Thazhemadam/net-usb-usbnet-update-__usbnet_-read-write-_cmd-to-use-new-API/20201010-145950 1/1] drivers/net/usb/usbnet.c:1990:9: error: implicit declaration of function 'usb_control_msg_recv'; did you mean
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20201101-053738/Anant-Tha...
head: d295ce2cdd3fbf4f9951db971c27ea4f19bc6cb1
commit: d295ce2cdd3fbf4f9951db971c27ea4f19bc6cb1 [1/1] net: usb: usbnet: update __usbnet_{read|write}_cmd() to use new API
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-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
# https://github.com/0day-ci/linux/commit/d295ce2cdd3fbf4f9951db971c27ea4f1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20201101-053738/Anant-Thazhemadam/net-usb-usbnet-update-__usbnet_-read-write-_cmd-to-use-new-API/20201010-145950
git checkout d295ce2cdd3fbf4f9951db971c27ea4f19bc6cb1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/usb/usbnet.c: In function '__usbnet_read_cmd':
>> drivers/net/usb/usbnet.c:1990:9: error: implicit declaration of function 'usb_control_msg_recv'; did you mean 'usb_control_msg'? [-Werror=implicit-function-declaration]
1990 | return usb_control_msg_recv(dev->udev, 0,
| ^~~~~~~~~~~~~~~~~~~~
| usb_control_msg
drivers/net/usb/usbnet.c: In function '__usbnet_write_cmd':
>> drivers/net/usb/usbnet.c:2008:9: error: implicit declaration of function 'usb_control_msg_send'; did you mean 'usb_control_msg'? [-Werror=implicit-function-declaration]
2008 | return usb_control_msg_send(dev->udev, 0,
| ^~~~~~~~~~~~~~~~~~~~
| usb_control_msg
cc1: some warnings being treated as errors
vim +1990 drivers/net/usb/usbnet.c
1985
1986 netdev_dbg(dev->net, "usbnet_read_cmd cmd=0x%02x reqtype=%02x"
1987 " value=0x%04x index=0x%04x size=%d\n",
1988 cmd, reqtype, value, index, size);
1989
> 1990 return usb_control_msg_recv(dev->udev, 0,
1991 cmd, reqtype, value, index, data, size,
1992 USB_CTRL_GET_TIMEOUT, GFP_KERNEL);
1993 }
1994
1995 static int __usbnet_write_cmd(struct usbnet *dev, u8 cmd, u8 reqtype,
1996 u16 value, u16 index, const void *data,
1997 u16 size)
1998 {
1999 netdev_dbg(dev->net, "usbnet_write_cmd cmd=0x%02x reqtype=%02x"
2000 " value=0x%04x index=0x%04x size=%d\n",
2001 cmd, reqtype, value, index, size);
2002
2003 if (size && !data) {
2004 WARN_ON_ONCE(1);
2005 return -EINVAL;
2006 }
2007
> 2008 return usb_control_msg_send(dev->udev, 0,
2009 cmd, reqtype, value, index, data, size,
2010 USB_CTRL_SET_TIMEOUT, GFP_KERNEL);
2011 }
2012
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[chrome-os:chromeos-5.4 76/110] drivers/mmc/host/sdhci-pci-core.c:668:6: warning: no previous prototype for function 'sdhci_intel_set_uhs_signaling'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 675b5726e8452a03e2cf91f66e813716edf4c2aa
commit: 1b2c0f4d0c562e21b694ea2284ac6928b433f375 [76/110] CHROMIUM: mmc: sdhci-pci: Prefer SDR25 timing for High Speed mode for BYT-based Intel controllers
config: x86_64-randconfig-a015-20201109 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 09ec07827b1128504457a93dee80b2ceee1af600)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 1b2c0f4d0c562e21b694ea2284ac6928b433f375
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mmc/host/sdhci-pci-core.c:668:6: warning: no previous prototype for function 'sdhci_intel_set_uhs_signaling' [-Wmissing-prototypes]
void sdhci_intel_set_uhs_signaling(struct sdhci_host *host, unsigned timing)
^
drivers/mmc/host/sdhci-pci-core.c:668:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sdhci_intel_set_uhs_signaling(struct sdhci_host *host, unsigned timing)
^
static
1 warning generated.
vim +/sdhci_intel_set_uhs_signaling +668 drivers/mmc/host/sdhci-pci-core.c
667
> 668 void sdhci_intel_set_uhs_signaling(struct sdhci_host *host, unsigned timing)
669 {
670 /* Set UHS timing to SDR25 for High Speed mode */
671 if (timing == MMC_TIMING_MMC_HS || timing == MMC_TIMING_SD_HS)
672 timing = MMC_TIMING_UHS_SDR25;
673 sdhci_set_uhs_signaling(host, timing);
674 }
675
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v2 2/4] docs: hwmon: (ltc2945): change type of val to ULL in ltc2945_val_to_reg()
by kernel test robot
Hi Alexandru,
I love your patch! Yet something to improve:
[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on v5.10-rc3 next-20201112]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Alexandru-Ardelean/hwmon-ltc2945...
base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: powerpc64-randconfig-r005-20201111 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 874b0a0b9db93f5d3350ffe6b5efda2d908415d0)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/4e0e9315df2733ae5efe6095c5ab9b767...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexandru-Ardelean/hwmon-ltc2945-add-support-for-sense-resistor/20201111-171129
git checkout 4e0e9315df2733ae5efe6095c5ab9b7675d07fb0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/hwmon/ltc2945.c:256:26: error: incompatible pointer types passing 'unsigned long long *' to parameter of type 'unsigned long *' [-Werror,-Wincompatible-pointer-types]
ret = kstrtoul(buf, 10, &val);
^~~~
include/linux/kernel.h:351:90: note: passing argument to parameter 'res' here
static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res)
^
1 error generated.
vim +256 drivers/hwmon/ltc2945.c
6700ce035f8301 Guenter Roeck 2014-01-11 241
5614e26d84a99a Guenter Roeck 2018-12-06 242 static ssize_t ltc2945_value_store(struct device *dev,
6700ce035f8301 Guenter Roeck 2014-01-11 243 struct device_attribute *da,
6700ce035f8301 Guenter Roeck 2014-01-11 244 const char *buf, size_t count)
6700ce035f8301 Guenter Roeck 2014-01-11 245 {
6700ce035f8301 Guenter Roeck 2014-01-11 246 struct sensor_device_attribute *attr = to_sensor_dev_attr(da);
c159257a60302f Alexandru Ardelean 2020-11-11 247 struct ltc2945_state *st = dev_get_drvdata(dev);
c159257a60302f Alexandru Ardelean 2020-11-11 248 struct regmap *regmap = st->regmap;
6700ce035f8301 Guenter Roeck 2014-01-11 249 u8 reg = attr->index;
4e0e9315df2733 Alexandru Ardelean 2020-11-11 250 unsigned long long val;
6700ce035f8301 Guenter Roeck 2014-01-11 251 u8 regbuf[3];
6700ce035f8301 Guenter Roeck 2014-01-11 252 int num_regs;
6700ce035f8301 Guenter Roeck 2014-01-11 253 int regval;
6700ce035f8301 Guenter Roeck 2014-01-11 254 int ret;
6700ce035f8301 Guenter Roeck 2014-01-11 255
6700ce035f8301 Guenter Roeck 2014-01-11 @256 ret = kstrtoul(buf, 10, &val);
6700ce035f8301 Guenter Roeck 2014-01-11 257 if (ret)
6700ce035f8301 Guenter Roeck 2014-01-11 258 return ret;
6700ce035f8301 Guenter Roeck 2014-01-11 259
6700ce035f8301 Guenter Roeck 2014-01-11 260 /* convert to register value, then clamp and write result */
6700ce035f8301 Guenter Roeck 2014-01-11 261 regval = ltc2945_val_to_reg(dev, reg, val);
6700ce035f8301 Guenter Roeck 2014-01-11 262 if (is_power_reg(reg)) {
6700ce035f8301 Guenter Roeck 2014-01-11 263 regval = clamp_val(regval, 0, 0xffffff);
6700ce035f8301 Guenter Roeck 2014-01-11 264 regbuf[0] = regval >> 16;
6700ce035f8301 Guenter Roeck 2014-01-11 265 regbuf[1] = (regval >> 8) & 0xff;
6700ce035f8301 Guenter Roeck 2014-01-11 266 regbuf[2] = regval;
6700ce035f8301 Guenter Roeck 2014-01-11 267 num_regs = 3;
6700ce035f8301 Guenter Roeck 2014-01-11 268 } else {
6700ce035f8301 Guenter Roeck 2014-01-11 269 regval = clamp_val(regval, 0, 0xfff) << 4;
6700ce035f8301 Guenter Roeck 2014-01-11 270 regbuf[0] = regval >> 8;
6700ce035f8301 Guenter Roeck 2014-01-11 271 regbuf[1] = regval & 0xff;
6700ce035f8301 Guenter Roeck 2014-01-11 272 num_regs = 2;
6700ce035f8301 Guenter Roeck 2014-01-11 273 }
6700ce035f8301 Guenter Roeck 2014-01-11 274 ret = regmap_bulk_write(regmap, reg, regbuf, num_regs);
6700ce035f8301 Guenter Roeck 2014-01-11 275 return ret < 0 ? ret : count;
6700ce035f8301 Guenter Roeck 2014-01-11 276 }
6700ce035f8301 Guenter Roeck 2014-01-11 277
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 02/19] elf: Move arch_setup_additional_pages() to generic elf.h
by kernel test robot
Hi Dmitry,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on c34f157421f6905e6b4a79a312e9175dce2bc607]
url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_...
base: c34f157421f6905e6b4a79a312e9175dce2bc607
config: riscv-allmodconfig (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
# https://github.com/0day-ci/linux/commit/c46ac7ddea192a97f9b0b3aa3536566a3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
git checkout c46ac7ddea192a97f9b0b3aa3536566a37389bec
# 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(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/irqchip.h:15,
from arch/riscv/kernel/irq.c:9:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/irq.c:19:13: warning: no previous prototype for 'init_IRQ' [-Wmissing-prototypes]
19 | void __init init_IRQ(void)
| ^~~~~~~~
--
In file included from include/linux/elf.h:6,
from arch/riscv/kernel/ptrace.c:15:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/ptrace.c:140:15: warning: no previous prototype for 'do_syscall_trace_enter' [-Wmissing-prototypes]
140 | __visible int do_syscall_trace_enter(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/ptrace.c:163:16: warning: no previous prototype for 'do_syscall_trace_exit' [-Wmissing-prototypes]
163 | __visible void do_syscall_trace_exit(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/kallsyms.h:13,
from include/linux/ftrace.h:11,
from include/linux/perf_event.h:49,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:84,
from arch/riscv/kernel/signal.c:11:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/signal.c:309:27: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
309 | asmlinkage __visible void do_notify_resume(struct pt_regs *regs,
| ^~~~~~~~~~~~~~~~
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/kallsyms.h:13,
from include/linux/ftrace.h:11,
from include/linux/perf_event.h:49,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:84,
from arch/riscv/kernel/syscall_table.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:34:1: note: in expansion of macro '__SC_COMP'
34 | __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[0]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:34:1: note: in expansion of macro '__SC_COMP'
34 | __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:36:1: note: in expansion of macro '__SYSCALL'
36 | __SYSCALL(__NR_io_destroy, sys_io_destroy)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[1]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:36:1: note: in expansion of macro '__SYSCALL'
36 | __SYSCALL(__NR_io_destroy, sys_io_destroy)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:38:1: note: in expansion of macro '__SC_COMP'
38 | __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[2]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:38:1: note: in expansion of macro '__SC_COMP'
38 | __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:40:1: note: in expansion of macro '__SYSCALL'
40 | __SYSCALL(__NR_io_cancel, sys_io_cancel)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[3]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:40:1: note: in expansion of macro '__SYSCALL'
40 | __SYSCALL(__NR_io_cancel, sys_io_cancel)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:22:34: note: in expansion of macro '__SYSCALL'
22 | #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:43:1: note: in expansion of macro '__SC_3264'
43 | __SC_3264(__NR_io_getevents, sys_io_getevents_time32, sys_io_getevents)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[4]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:22:34: note: in expansion of macro '__SYSCALL'
22 | #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:43:1: note: in expansion of macro '__SC_3264'
43 | __SC_3264(__NR_io_getevents, sys_io_getevents_time32, sys_io_getevents)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:48:1: note: in expansion of macro '__SYSCALL'
48 | __SYSCALL(__NR_setxattr, sys_setxattr)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[5]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:48:1: note: in expansion of macro '__SYSCALL'
48 | __SYSCALL(__NR_setxattr, sys_setxattr)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:50:1: note: in expansion of macro '__SYSCALL'
50 | __SYSCALL(__NR_lsetxattr, sys_lsetxattr)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[6]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/kallsyms.h:13,
from include/linux/ftrace.h:11,
from include/linux/perf_event.h:49,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:84,
from arch/riscv/kernel/sys_riscv.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from arch/riscv/kernel/traps.c:16:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/traps.c:92:15: warning: no previous prototype for 'do_trap_unknown' [-Wmissing-prototypes]
92 | DO_ERROR_INFO(do_trap_unknown,
| ^~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:94:15: warning: no previous prototype for 'do_trap_insn_misaligned' [-Wmissing-prototypes]
94 | DO_ERROR_INFO(do_trap_insn_misaligned,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:96:15: warning: no previous prototype for 'do_trap_insn_fault' [-Wmissing-prototypes]
96 | DO_ERROR_INFO(do_trap_insn_fault,
| ^~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:98:15: warning: no previous prototype for 'do_trap_insn_illegal' [-Wmissing-prototypes]
98 | DO_ERROR_INFO(do_trap_insn_illegal,
| ^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:100:15: warning: no previous prototype for 'do_trap_load_fault' [-Wmissing-prototypes]
100 | DO_ERROR_INFO(do_trap_load_fault,
| ^~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:103:15: warning: no previous prototype for 'do_trap_load_misaligned' [-Wmissing-prototypes]
103 | DO_ERROR_INFO(do_trap_load_misaligned,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:105:15: warning: no previous prototype for 'do_trap_store_misaligned' [-Wmissing-prototypes]
105 | DO_ERROR_INFO(do_trap_store_misaligned,
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:127:15: warning: no previous prototype for 'do_trap_store_fault' [-Wmissing-prototypes]
127 | DO_ERROR_INFO(do_trap_store_fault,
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:129:15: warning: no previous prototype for 'do_trap_ecall_u' [-Wmissing-prototypes]
129 | DO_ERROR_INFO(do_trap_ecall_u,
| ^~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:131:15: warning: no previous prototype for 'do_trap_ecall_s' [-Wmissing-prototypes]
131 | DO_ERROR_INFO(do_trap_ecall_s,
| ^~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:133:15: warning: no previous prototype for 'do_trap_ecall_m' [-Wmissing-prototypes]
133 | DO_ERROR_INFO(do_trap_ecall_m,
| ^~~~~~~~~~~~~~~
arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
87 | asmlinkage __visible void name(struct pt_regs *regs) \
| ^~~~
arch/riscv/kernel/traps.c:146:27: warning: no previous prototype for 'do_trap_break' [-Wmissing-prototypes]
146 | asmlinkage __visible void do_trap_break(struct pt_regs *regs)
| ^~~~~~~~~~~~~
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/kallsyms.h:13,
from arch/riscv/kernel/stacktrace.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/stacktrace.c:24:14: warning: no previous prototype for 'walk_stackframe' [-Wmissing-prototypes]
24 | void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs,
| ^~~~~~~~~~~~~~~
arch/riscv/kernel/stacktrace.c: In function 'walk_stackframe':
arch/riscv/kernel/stacktrace.c:34:3: warning: 'register' is not at beginning of declaration [-Wold-style-declaration]
34 | const register unsigned long current_sp = sp_in_global;
| ^~~~~
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/kallsyms.h:13,
from include/linux/ftrace.h:11,
from arch/riscv/kernel/ftrace.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/ftrace.c:158:6: warning: no previous prototype for 'prepare_ftrace_return' [-Wmissing-prototypes]
158 | void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/kallsyms.h:13,
from include/linux/ftrace.h:11,
from include/linux/perf_event.h:49,
from arch/riscv/kernel/perf_callchain.c:4:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
arch/riscv/kernel/perf_callchain.c:77:6: warning: no previous prototype for 'fill_callchain' [-Wmissing-prototypes]
77 | bool fill_callchain(unsigned long pc, void *entry)
| ^~~~~~~~~~~~~~
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/blk-cgroup.h:17,
from include/linux/writeback.h:14,
from include/linux/backing-dev.h:17,
from fs/btrfs/ctree.h:16,
from fs/btrfs/ctree.c:10:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
fs/btrfs/ctree.c: In function 'btrfs_realloc_node':
fs/btrfs/ctree.c:1581:6: warning: variable 'parent_level' set but not used [-Wunused-but-set-variable]
1581 | int parent_level;
| ^~~~~~~~~~~~
--
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/blk-cgroup.h:17,
from include/linux/writeback.h:14,
from include/linux/backing-dev.h:17,
from fs/btrfs/ctree.h:16,
from fs/btrfs/zstd.c:22:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
8 | #ifndef _ASM_RISCV_ELF_H
|
In file included from fs/btrfs/zstd.c:19:
include/linux/zstd.h:798:21: warning: 'ZSTD_skippableHeaderSize' defined but not used [-Wunused-const-variable=]
798 | static const size_t ZSTD_skippableHeaderSize = 8;
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/zstd.h:796:21: warning: 'ZSTD_frameHeaderSize_max' defined but not used [-Wunused-const-variable=]
796 | static const size_t ZSTD_frameHeaderSize_max = ZSTD_FRAMEHEADERSIZE_MAX;
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/zstd.h:795:21: warning: 'ZSTD_frameHeaderSize_min' defined but not used [-Wunused-const-variable=]
795 | static const size_t ZSTD_frameHeaderSize_min = ZSTD_FRAMEHEADERSIZE_MIN;
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/zstd.h:794:21: warning: 'ZSTD_frameHeaderSize_prefix' defined but not used [-Wunused-const-variable=]
794 | static const size_t ZSTD_frameHeaderSize_prefix = 5;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +8 arch/riscv/include/asm/elf.h
2129a235c098960 Palmer Dabbelt 2017-07-10 @8 #ifndef _ASM_RISCV_ELF_H
2129a235c098960 Palmer Dabbelt 2017-07-10 9 #define _ASM_RISCV_ELF_H
2129a235c098960 Palmer Dabbelt 2017-07-10 10
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 02/19] elf: Move arch_setup_additional_pages() to generic elf.h
by kernel test robot
Hi Dmitry,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on c34f157421f6905e6b4a79a312e9175dce2bc607]
url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_...
base: c34f157421f6905e6b4a79a312e9175dce2bc607
config: riscv-randconfig-r026-20201109 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 09ec07827b1128504457a93dee80b2ceee1af600)
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://github.com/0day-ci/linux/commit/c46ac7ddea192a97f9b0b3aa3536566a3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
git checkout c46ac7ddea192a97f9b0b3aa3536566a37389bec
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
#ifndef _ASM_RISCV_ELF_H
^
In file included from arch/riscv/kernel/traps_misaligned.c:9:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from arch/riscv/kernel/traps_misaligned.c:9:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from arch/riscv/kernel/traps_misaligned.c:9:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from arch/riscv/kernel/traps_misaligned.c:9:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from arch/riscv/kernel/traps_misaligned.c:9:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from arch/riscv/kernel/traps_misaligned.c:9:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from arch/riscv/kernel/traps_misaligned.c:9:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
arch/riscv/kernel/traps_misaligned.c:240:5: warning: no previous prototype for function 'handle_misaligned_load' [-Wmissing-prototypes]
int handle_misaligned_load(struct pt_regs *regs)
^
arch/riscv/kernel/traps_misaligned.c:240:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int handle_misaligned_load(struct pt_regs *regs)
^
static
>> arch/riscv/kernel/traps_misaligned.c:316:2: warning: shift count is negative [-Wshift-count-negative]
SET_RD(insn, regs, val.data_ulong << shift >> shift);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:142:36: note: expanded from macro 'SET_RD'
#define SET_RD(insn, regs, val) (*REG_PTR(insn, SH_RD, regs) = (val))
^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
^~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
(SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:123:18: note: expanded from macro 'SHIFT_RIGHT'
((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
^ ~~~~
arch/riscv/kernel/traps_misaligned.c:323:5: warning: no previous prototype for function 'handle_misaligned_store' [-Wmissing-prototypes]
int handle_misaligned_store(struct pt_regs *regs)
^
arch/riscv/kernel/traps_misaligned.c:323:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int handle_misaligned_store(struct pt_regs *regs)
^
static
arch/riscv/kernel/traps_misaligned.c:333:19: warning: shift count is negative [-Wshift-count-negative]
val.data_ulong = GET_RS2(insn, regs);
^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:137:32: note: expanded from macro 'GET_RS2'
#define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
^~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
(SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:123:18: note: expanded from macro 'SHIFT_RIGHT'
((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
^ ~~~~
arch/riscv/kernel/traps_misaligned.c:346:20: warning: shift count is negative [-Wshift-count-negative]
val.data_ulong = GET_RS2S(insn, regs);
^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:139:33: note: expanded from macro 'GET_RS2S'
#define GET_RS2S(insn, regs) (*REG_PTR(RVC_RS2S(insn), 0, regs))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
^~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
(SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
^ ~~~
arch/riscv/kernel/traps_misaligned.c:350:20: warning: shift count is negative [-Wshift-count-negative]
val.data_ulong = GET_RS2C(insn, regs);
^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:140:33: note: expanded from macro 'GET_RS2C'
#define GET_RS2C(insn, regs) (*REG_PTR(insn, SH_RS2C, regs))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
^~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
(SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
^ ~~~
arch/riscv/kernel/traps_misaligned.c:354:20: warning: shift count is negative [-Wshift-count-negative]
val.data_ulong = GET_RS2S(insn, regs);
^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:139:33: note: expanded from macro 'GET_RS2S'
#define GET_RS2S(insn, regs) (*REG_PTR(RVC_RS2S(insn), 0, regs))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
^~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
(SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
^ ~~~
arch/riscv/kernel/traps_misaligned.c:358:20: warning: shift count is negative [-Wshift-count-negative]
val.data_ulong = GET_RS2C(insn, regs);
^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:140:33: note: expanded from macro 'GET_RS2C'
#define GET_RS2C(insn, regs) (*REG_PTR(insn, SH_RS2C, regs))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
^~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
(SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
^ ~~~
15 warnings and 1 error generated.
--
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
In file included from drivers/gpu/drm/vkms/vkms_drv.c:20:
In file included from include/drm/drm_fb_helper.h:39:
In file included from include/linux/vgaarb.h:34:
include/video/vga.h:215:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(VGA_OUT16VAL (val, reg), port);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
>> drivers/gpu/drm/vkms/vkms_drv.c:146:9: warning: shift count >= width of type [-Wshift-count-overflow]
DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
9 warnings and 1 error generated.
vim +316 arch/riscv/kernel/traps_misaligned.c
956d705dd279f7 Damien Le Moal 2020-03-16 239
956d705dd279f7 Damien Le Moal 2020-03-16 240 int handle_misaligned_load(struct pt_regs *regs)
956d705dd279f7 Damien Le Moal 2020-03-16 241 {
956d705dd279f7 Damien Le Moal 2020-03-16 242 union reg_data val;
956d705dd279f7 Damien Le Moal 2020-03-16 243 unsigned long epc = regs->epc;
956d705dd279f7 Damien Le Moal 2020-03-16 244 unsigned long insn = get_insn(epc);
956d705dd279f7 Damien Le Moal 2020-03-16 245 unsigned long addr = csr_read(mtval);
956d705dd279f7 Damien Le Moal 2020-03-16 246 int i, fp = 0, shift = 0, len = 0;
956d705dd279f7 Damien Le Moal 2020-03-16 247
956d705dd279f7 Damien Le Moal 2020-03-16 248 regs->epc = 0;
956d705dd279f7 Damien Le Moal 2020-03-16 249
956d705dd279f7 Damien Le Moal 2020-03-16 250 if ((insn & INSN_MASK_LW) == INSN_MATCH_LW) {
956d705dd279f7 Damien Le Moal 2020-03-16 251 len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16 252 shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16 253 #if defined(CONFIG_64BIT)
956d705dd279f7 Damien Le Moal 2020-03-16 254 } else if ((insn & INSN_MASK_LD) == INSN_MATCH_LD) {
956d705dd279f7 Damien Le Moal 2020-03-16 255 len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16 256 shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16 257 } else if ((insn & INSN_MASK_LWU) == INSN_MATCH_LWU) {
956d705dd279f7 Damien Le Moal 2020-03-16 258 len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16 259 #endif
956d705dd279f7 Damien Le Moal 2020-03-16 260 } else if ((insn & INSN_MASK_FLD) == INSN_MATCH_FLD) {
956d705dd279f7 Damien Le Moal 2020-03-16 261 fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16 262 len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16 263 } else if ((insn & INSN_MASK_FLW) == INSN_MATCH_FLW) {
956d705dd279f7 Damien Le Moal 2020-03-16 264 fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16 265 len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16 266 } else if ((insn & INSN_MASK_LH) == INSN_MATCH_LH) {
956d705dd279f7 Damien Le Moal 2020-03-16 267 len = 2;
956d705dd279f7 Damien Le Moal 2020-03-16 268 shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16 269 } else if ((insn & INSN_MASK_LHU) == INSN_MATCH_LHU) {
956d705dd279f7 Damien Le Moal 2020-03-16 270 len = 2;
956d705dd279f7 Damien Le Moal 2020-03-16 271 #if defined(CONFIG_64BIT)
956d705dd279f7 Damien Le Moal 2020-03-16 272 } else if ((insn & INSN_MASK_C_LD) == INSN_MATCH_C_LD) {
956d705dd279f7 Damien Le Moal 2020-03-16 273 len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16 274 shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16 275 insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16 276 } else if ((insn & INSN_MASK_C_LDSP) == INSN_MATCH_C_LDSP &&
956d705dd279f7 Damien Le Moal 2020-03-16 277 ((insn >> SH_RD) & 0x1f)) {
956d705dd279f7 Damien Le Moal 2020-03-16 278 len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16 279 shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16 280 #endif
956d705dd279f7 Damien Le Moal 2020-03-16 281 } else if ((insn & INSN_MASK_C_LW) == INSN_MATCH_C_LW) {
956d705dd279f7 Damien Le Moal 2020-03-16 282 len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16 283 shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16 284 insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16 285 } else if ((insn & INSN_MASK_C_LWSP) == INSN_MATCH_C_LWSP &&
956d705dd279f7 Damien Le Moal 2020-03-16 286 ((insn >> SH_RD) & 0x1f)) {
956d705dd279f7 Damien Le Moal 2020-03-16 287 len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16 288 shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16 289 } else if ((insn & INSN_MASK_C_FLD) == INSN_MATCH_C_FLD) {
956d705dd279f7 Damien Le Moal 2020-03-16 290 fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16 291 len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16 292 insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16 293 } else if ((insn & INSN_MASK_C_FLDSP) == INSN_MATCH_C_FLDSP) {
956d705dd279f7 Damien Le Moal 2020-03-16 294 fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16 295 len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16 296 #if defined(CONFIG_32BIT)
956d705dd279f7 Damien Le Moal 2020-03-16 297 } else if ((insn & INSN_MASK_C_FLW) == INSN_MATCH_C_FLW) {
956d705dd279f7 Damien Le Moal 2020-03-16 298 fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16 299 len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16 300 insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16 301 } else if ((insn & INSN_MASK_C_FLWSP) == INSN_MATCH_C_FLWSP) {
956d705dd279f7 Damien Le Moal 2020-03-16 302 fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16 303 len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16 304 #endif
956d705dd279f7 Damien Le Moal 2020-03-16 305 } else {
956d705dd279f7 Damien Le Moal 2020-03-16 306 regs->epc = epc;
956d705dd279f7 Damien Le Moal 2020-03-16 307 return -1;
956d705dd279f7 Damien Le Moal 2020-03-16 308 }
956d705dd279f7 Damien Le Moal 2020-03-16 309
956d705dd279f7 Damien Le Moal 2020-03-16 310 val.data_u64 = 0;
956d705dd279f7 Damien Le Moal 2020-03-16 311 for (i = 0; i < len; i++)
956d705dd279f7 Damien Le Moal 2020-03-16 312 val.data_bytes[i] = load_u8((void *)(addr + i));
956d705dd279f7 Damien Le Moal 2020-03-16 313
956d705dd279f7 Damien Le Moal 2020-03-16 314 if (fp)
956d705dd279f7 Damien Le Moal 2020-03-16 315 return -1;
956d705dd279f7 Damien Le Moal 2020-03-16 @316 SET_RD(insn, regs, val.data_ulong << shift >> shift);
956d705dd279f7 Damien Le Moal 2020-03-16 317
956d705dd279f7 Damien Le Moal 2020-03-16 318 regs->epc = epc + INSN_LEN(insn);
956d705dd279f7 Damien Le Moal 2020-03-16 319
956d705dd279f7 Damien Le Moal 2020-03-16 320 return 0;
956d705dd279f7 Damien Le Moal 2020-03-16 321 }
956d705dd279f7 Damien Le Moal 2020-03-16 322
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 06/19] elf/vdso: Reuse arch_setup_additional_pages() parameters
by kernel test robot
Hi Dmitry,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on c34f157421f6905e6b4a79a312e9175dce2bc607]
url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_...
base: c34f157421f6905e6b4a79a312e9175dce2bc607
config: ia64-randconfig-r035-20201109 (attached as .config)
compiler: ia64-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
# https://github.com/0day-ci/linux/commit/04586680978b048abe74dd892c5b1fcde...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
git checkout 04586680978b048abe74dd892c5b1fcde7c486a3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from arch/ia64/kernel/asm-offsets.c:10:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
In file included from arch/ia64/include/asm/sections.h:10,
from include/linux/interrupt.h:20,
from arch/ia64/include/asm/mca.h:17,
from arch/ia64/kernel/asm-offsets.c:18:
include/linux/elf.h: At top level:
include/linux/elf.h:121:1: error: expected identifier or '(' before '{' token
121 | {
| ^
arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo'
23 | void foo(void)
| ^~~
In file included from arch/ia64/include/asm/sections.h:10,
from include/linux/interrupt.h:20,
from arch/ia64/include/asm/mca.h:17,
from arch/ia64/kernel/asm-offsets.c:18:
>> include/linux/elf.h:120:19: warning: 'arch_setup_additional_pages' declared 'static' but never defined
120 | static inline int arch_setup_additional_pages(unsigned long
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile arch include kernel scripts source usr [scripts/Makefile.build:117: arch/ia64/kernel/asm-offsets.s] Error 1
Target '__build' not remade because of errors.
Makefile arch include kernel scripts source usr [Makefile:1198: prepare0] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch include kernel scripts source usr [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +120 include/linux/elf.h
106
107 #ifdef CONFIG_ARCH_HAS_SETUP_ADDITIONAL_PAGES
108 /**
109 * arch_setup_additional_pages - Premap VMAs in a new-execed process
110 * @sysinfo_ehdr: Returns vDSO position to be set in the initial
111 * auxiliary vector (tag AT_SYSINFO_EHDR) by binfmt
112 * loader. On failure isn't initialized.
113 * As address == 0 is never used, it allows to check
114 * if the tag should be set.
115 *
116 * Return: Zero if successful, or a negative error code on failure.
117 */
118 extern int arch_setup_additional_pages(unsigned long *sysinfo_ehdr);
119 #else
> 120 static inline int arch_setup_additional_pages(unsigned long *sysinfo_ehdr);
121 {
122 return 0;
123 }
124 #endif
125
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months