arch/x86/hyperv/ivm.c:43:25: sparse: sparse: incorrect type in initializer (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4c388a8e740d3235a194f330c8ef327deef710f6
commit: 810a521265023a1d5c6c081ea2d216bc63d422f5 x86/hyperv: Add new hvcall guest address host visibility support
date: 3 weeks ago
config: i386-randconfig-s002-20211109 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 810a521265023a1d5c6c081ea2d216bc63d422f5
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
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/hyperv/ivm.c:43:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@
arch/x86/hyperv/ivm.c:43:25: sparse: expected void const [noderef] __percpu *__vpp_verify
arch/x86/hyperv/ivm.c:43:25: sparse: got void [noderef] __percpu **
vim +43 arch/x86/hyperv/ivm.c
15
16 /*
17 * hv_mark_gpa_visibility - Set pages visible to host via hvcall.
18 *
19 * In Isolation VM, all guest memory is encrypted from host and guest
20 * needs to set memory visible to host via hvcall before sharing memory
21 * with host.
22 */
23 static int hv_mark_gpa_visibility(u16 count, const u64 pfn[],
24 enum hv_mem_host_visibility visibility)
25 {
26 struct hv_gpa_range_for_visibility **input_pcpu, *input;
27 u16 pages_processed;
28 u64 hv_status;
29 unsigned long flags;
30
31 /* no-op if partition isolation is not enabled */
32 if (!hv_is_isolation_supported())
33 return 0;
34
35 if (count > HV_MAX_MODIFY_GPA_REP_COUNT) {
36 pr_err("Hyper-V: GPA count:%d exceeds supported:%lu\n", count,
37 HV_MAX_MODIFY_GPA_REP_COUNT);
38 return -EINVAL;
39 }
40
41 local_irq_save(flags);
42 input_pcpu = (struct hv_gpa_range_for_visibility **)
> 43 this_cpu_ptr(hyperv_pcpu_input_arg);
44 input = *input_pcpu;
45 if (unlikely(!input)) {
46 local_irq_restore(flags);
47 return -EINVAL;
48 }
49
50 input->partition_id = HV_PARTITION_ID_SELF;
51 input->host_visibility = visibility;
52 input->reserved0 = 0;
53 input->reserved1 = 0;
54 memcpy((void *)input->gpa_page_list, pfn, count * sizeof(*pfn));
55 hv_status = hv_do_rep_hypercall(
56 HVCALL_MODIFY_SPARSE_GPA_PAGE_HOST_VISIBILITY, count,
57 0, input, &pages_processed);
58 local_irq_restore(flags);
59
60 if (hv_result_success(hv_status))
61 return 0;
62 else
63 return -EFAULT;
64 }
65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[shenki:microwatt-v5.16 3/9] drivers/mmc/host/litex_mmc.c:96:6: warning: no previous prototype for function 'sdclk_set_clk'
by kernel test robot
tree: https://github.com/shenki/linux microwatt-v5.16
head: 8e96c87e7fba5fb249efd40842c26c2bb426d49c
commit: 332995960c8d441be0974f27a128b2856139074a [3/9] LiteX: driver for LiteSDCard (litex_mmc)
config: riscv-buildonly-randconfig-r003-20211119 (attached as .config)
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/shenki/linux/commit/332995960c8d441be0974f27a128b28561...
git remote add shenki https://github.com/shenki/linux
git fetch --no-tags shenki microwatt-v5.16
git checkout 332995960c8d441be0974f27a128b2856139074a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):
>> drivers/mmc/host/litex_mmc.c:96:6: warning: no previous prototype for function 'sdclk_set_clk' [-Wmissing-prototypes]
void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
^
drivers/mmc/host/litex_mmc.c:96:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
^
static
1 warning generated.
vim +/sdclk_set_clk +96 drivers/mmc/host/litex_mmc.c
94
95
> 96 void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
97 u32 div = clk_freq ? host->freq / clk_freq : 256;
98 div = roundup_pow_of_two(div);
99 div = min(max(div, (u32)2), (u32)256);
100 dev_info(&host->dev->dev,
101 "Requested clk_freq=%d: set to %d via div=%d\n",
102 clk_freq, host->freq / div, div);
103 litex_write16(host->sdphy + LITEX_MMC_SDPHY_CLOCKERDIV_OFF, div);
104 }
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:661:6: warning: no previous prototype for 'dce110_enable_stream'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e26dd976580a6a427c69e6116508dd3d412742e5
commit: 4d45a22458f52a3daf222287d9e578d3ec418422 drm: display: Remove duplicate include in dce110
date: 5 months ago
config: microblaze-buildonly-randconfig-r004-20210927 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4d45a22458f52a3daf222287d9e578d3ec418422
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=microblaze
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/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:661:6: warning: no previous prototype for 'dce110_enable_stream' [-Wmissing-prototypes]
661 | void dce110_enable_stream(struct pipe_ctx *pipe_ctx)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1133:6: warning: no previous prototype for 'dce110_disable_stream' [-Wmissing-prototypes]
1133 | void dce110_disable_stream(struct pipe_ctx *pipe_ctx)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1159:6: warning: no previous prototype for 'dce110_unblank_stream' [-Wmissing-prototypes]
1159 | void dce110_unblank_stream(struct pipe_ctx *pipe_ctx,
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1785:6: warning: no previous prototype for 'dce110_set_safe_displaymarks' [-Wmissing-prototypes]
1785 | void dce110_set_safe_displaymarks(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2566:6: warning: no previous prototype for 'dce110_prepare_bandwidth' [-Wmissing-prototypes]
2566 | void dce110_prepare_bandwidth(
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2580:6: warning: no previous prototype for 'dce110_optimize_bandwidth' [-Wmissing-prototypes]
2580 | void dce110_optimize_bandwidth(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2863:6: warning: no previous prototype for 'dce110_set_backlight_level' [-Wmissing-prototypes]
2863 | bool dce110_set_backlight_level(struct pipe_ctx *pipe_ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2897:6: warning: no previous prototype for 'dce110_set_abm_immediate_disable' [-Wmissing-prototypes]
2897 | void dce110_set_abm_immediate_disable(struct pipe_ctx *pipe_ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2910:6: warning: no previous prototype for 'dce110_set_pipe' [-Wmissing-prototypes]
2910 | void dce110_set_pipe(struct pipe_ctx *pipe_ctx)
| ^~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2976:6: warning: no previous prototype for 'dce110_hw_sequencer_construct' [-Wmissing-prototypes]
2976 | void dce110_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/dce110_enable_stream +661 drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c
4562236b3bc0a2 Harry Wentland 2017-09-12 660
4562236b3bc0a2 Harry Wentland 2017-09-12 @661 void dce110_enable_stream(struct pipe_ctx *pipe_ctx)
4562236b3bc0a2 Harry Wentland 2017-09-12 662 {
4562236b3bc0a2 Harry Wentland 2017-09-12 663 enum dc_lane_count lane_count =
ceb3dbb4690db8 Jun Lei 2018-11-09 664 pipe_ctx->stream->link->cur_link_settings.lane_count;
4fa086b9b66408 Leo (Sunpeng Li 2017-07-25 665) struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
ceb3dbb4690db8 Jun Lei 2018-11-09 666 struct dc_link *link = pipe_ctx->stream->link;
f42ea55be11147 Anthony Koo 2019-11-05 667 const struct dc *dc = link->dc;
f215a57dca691c Eric Yang 2018-02-21 668
4562236b3bc0a2 Harry Wentland 2017-09-12 669 uint32_t active_total_with_borders;
4562236b3bc0a2 Harry Wentland 2017-09-12 670 uint32_t early_control = 0;
6b670fa965b620 Harry Wentland 2017-07-30 671 struct timing_generator *tg = pipe_ctx->stream_res.tg;
4562236b3bc0a2 Harry Wentland 2017-09-12 672
f215a57dca691c Eric Yang 2018-02-21 673 /* For MST, there are multiply stream go to only one link.
f215a57dca691c Eric Yang 2018-02-21 674 * connect DIG back_end to front_end while enable_stream and
f215a57dca691c Eric Yang 2018-02-21 675 * disconnect them during disable_stream
f215a57dca691c Eric Yang 2018-02-21 676 * BY this, it is logic clean to separate stream and link */
f215a57dca691c Eric Yang 2018-02-21 677 link->link_enc->funcs->connect_dig_be_to_fe(link->link_enc,
f215a57dca691c Eric Yang 2018-02-21 678 pipe_ctx->stream_res.stream_enc->id, true);
f215a57dca691c Eric Yang 2018-02-21 679
f42ea55be11147 Anthony Koo 2019-11-05 680 dc->hwss.update_info_frame(pipe_ctx);
f215a57dca691c Eric Yang 2018-02-21 681
4562236b3bc0a2 Harry Wentland 2017-09-12 682 /* enable early control to avoid corruption on DP monitor*/
4562236b3bc0a2 Harry Wentland 2017-09-12 683 active_total_with_borders =
4562236b3bc0a2 Harry Wentland 2017-09-12 684 timing->h_addressable
4562236b3bc0a2 Harry Wentland 2017-09-12 685 + timing->h_border_left
4562236b3bc0a2 Harry Wentland 2017-09-12 686 + timing->h_border_right;
4562236b3bc0a2 Harry Wentland 2017-09-12 687
4562236b3bc0a2 Harry Wentland 2017-09-12 688 if (lane_count != 0)
4562236b3bc0a2 Harry Wentland 2017-09-12 689 early_control = active_total_with_borders % lane_count;
4562236b3bc0a2 Harry Wentland 2017-09-12 690
4562236b3bc0a2 Harry Wentland 2017-09-12 691 if (early_control == 0)
4562236b3bc0a2 Harry Wentland 2017-09-12 692 early_control = lane_count;
4562236b3bc0a2 Harry Wentland 2017-09-12 693
4562236b3bc0a2 Harry Wentland 2017-09-12 694 tg->funcs->set_early_control(tg, early_control);
4562236b3bc0a2 Harry Wentland 2017-09-12 695
4562236b3bc0a2 Harry Wentland 2017-09-12 696 /* enable audio only within mode set */
afaacef4827592 Harry Wentland 2017-07-30 697 if (pipe_ctx->stream_res.audio != NULL) {
4562236b3bc0a2 Harry Wentland 2017-09-12 698 if (dc_is_dp_signal(pipe_ctx->stream->signal))
8e9c4c8cf35ff2 Harry Wentland 2017-07-30 699 pipe_ctx->stream_res.stream_enc->funcs->dp_audio_enable(pipe_ctx->stream_res.stream_enc);
4562236b3bc0a2 Harry Wentland 2017-09-12 700 }
4562236b3bc0a2 Harry Wentland 2017-09-12 701
f215a57dca691c Eric Yang 2018-02-21 702
f215a57dca691c Eric Yang 2018-02-21 703
4562236b3bc0a2 Harry Wentland 2017-09-12 704
:::::: The code at line 661 was first introduced by commit
:::::: 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c drm/amd/dc: Add dc display driver (v2)
:::::: TO: Harry Wentland <harry.wentland(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [RFC PATCH 4/4] namespacefs: Couple namespacefs to the UTS namespace
by kernel test robot
Hi "Yordan,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linux/master]
[also build test WARNING on hnaz-mm/master linus/master v5.16-rc1 next-20211118]
[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/Yordan-Karadzhov-VMware/namespac...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8ab774587903771821b59471cc723bba6d893942
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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/750c3589ff76d96017d8473ca8f0c6a03...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yordan-Karadzhov-VMware/namespacefs-Proof-of-Concept/20211119-021813
git checkout 750c3589ff76d96017d8473ca8f0c6a03f3ef715
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
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 >>):
fs/namespacefs/inode.c:164:1: warning: no previous prototype for 'namespacefs_create_file' [-Wmissing-prototypes]
164 | namespacefs_create_file(const char *name, struct dentry *parent,
| ^~~~~~~~~~~~~~~~~~~~~~~
fs/namespacefs/inode.c:173:1: warning: no previous prototype for 'namespacefs_create_dir' [-Wmissing-prototypes]
173 | namespacefs_create_dir(const char *name, struct dentry *parent,
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namespacefs/inode.c:184:6: warning: no previous prototype for 'namespacefs_remove_dir' [-Wmissing-prototypes]
184 | void namespacefs_remove_dir(struct dentry *dentry)
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namespacefs/inode.c:289:5: warning: no previous prototype for 'namespacefs_create_pid_ns_dir' [-Wmissing-prototypes]
289 | int namespacefs_create_pid_ns_dir(struct pid_namespace *ns)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/namespacefs/inode.c:308:6: warning: no previous prototype for 'namespacefs_remove_pid_ns_dir' [-Wmissing-prototypes]
308 | void namespacefs_remove_pid_ns_dir(struct pid_namespace *ns)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/namespacefs/inode.c:341:5: warning: no previous prototype for 'namespacefs_create_uts_ns_dir' [-Wmissing-prototypes]
341 | int namespacefs_create_uts_ns_dir(struct uts_namespace *ns)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/namespacefs/inode.c:360:6: warning: no previous prototype for 'namespacefs_remove_uts_ns_dir' [-Wmissing-prototypes]
360 | void namespacefs_remove_uts_ns_dir(struct uts_namespace *ns)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/namespacefs_create_uts_ns_dir +341 fs/namespacefs/inode.c
340
> 341 int namespacefs_create_uts_ns_dir(struct uts_namespace *ns)
342 {
343 struct dentry *dentry;
344 int err;
345
346 err = create_inode_dir(&ns->ns, init_uts_ns.ns.dentry, ns->user_ns);
347 if (err)
348 return err;
349
350 dentry = namespacefs_create_file("uname", ns->ns.dentry, ns->user_ns,
351 &uts_fops, &ns->name);
352 if (IS_ERR(dentry)) {
353 dput(ns->ns.dentry);
354 return PTR_ERR(dentry);
355 }
356
357 return 0;
358 }
359
> 360 void namespacefs_remove_uts_ns_dir(struct uts_namespace *ns)
361 {
362 namespacefs_remove_dir(ns->ns.dentry);
363 }
364
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[android-common:android12-5.4 15107/19168] kernel/sys_ni.c:368:1: warning: no previous prototype for function '__ia32_compat_sys_sysctl'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 2cdbd9b441724f56f305dd479d3e54710d50e8e7
commit: c4d3c4ac7919d73354edf72e9b236d6e27977f6f [15107/19168] ANDROID: syscalls/x86: use a weak function for IA32 compat syscalls
config: x86_64-randconfig-r034-20211118 (attached as .config)
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
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout c4d3c4ac7919d73354edf72e9b236d6e27977f6f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:145:1: note: expanded from here
__ia32_sys_pciconfig_read
^
kernel/sys_ni.c:359:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:74:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:360:1: warning: no previous prototype for function '__x64_sys_pciconfig_write' [-Wmissing-prototypes]
COND_SYSCALL(pciconfig_write);
^
arch/x86/include/asm/syscall_wrapper.h:70:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:146:1: note: expanded from here
__x64_sys_pciconfig_write
^
kernel/sys_ni.c:360:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:70:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:360:1: warning: no previous prototype for function '__ia32_sys_pciconfig_write' [-Wmissing-prototypes]
COND_SYSCALL(pciconfig_write);
^
arch/x86/include/asm/syscall_wrapper.h:74:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:147:1: note: expanded from here
__ia32_sys_pciconfig_write
^
kernel/sys_ni.c:360:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:74:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:361:1: warning: no previous prototype for function '__x64_sys_pciconfig_iobase' [-Wmissing-prototypes]
COND_SYSCALL(pciconfig_iobase);
^
arch/x86/include/asm/syscall_wrapper.h:70:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:148:1: note: expanded from here
__x64_sys_pciconfig_iobase
^
kernel/sys_ni.c:361:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:70:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:361:1: warning: no previous prototype for function '__ia32_sys_pciconfig_iobase' [-Wmissing-prototypes]
COND_SYSCALL(pciconfig_iobase);
^
arch/x86/include/asm/syscall_wrapper.h:74:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:149:1: note: expanded from here
__ia32_sys_pciconfig_iobase
^
kernel/sys_ni.c:361:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:74:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:364:1: warning: no previous prototype for function '__x64_sys_socketcall' [-Wmissing-prototypes]
COND_SYSCALL(socketcall);
^
arch/x86/include/asm/syscall_wrapper.h:70:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:150:1: note: expanded from here
__x64_sys_socketcall
^
kernel/sys_ni.c:364:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:70:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:364:1: warning: no previous prototype for function '__ia32_sys_socketcall' [-Wmissing-prototypes]
COND_SYSCALL(socketcall);
^
arch/x86/include/asm/syscall_wrapper.h:74:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:151:1: note: expanded from here
__ia32_sys_socketcall
^
kernel/sys_ni.c:364:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:74:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:365:1: warning: no previous prototype for function '__ia32_compat_sys_socketcall' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(socketcall);
^
arch/x86/include/asm/syscall_wrapper.h:151:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:152:1: note: expanded from here
__ia32_compat_sys_socketcall
^
kernel/sys_ni.c:365:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:151:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
>> kernel/sys_ni.c:368:1: warning: no previous prototype for function '__ia32_compat_sys_sysctl' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(sysctl);
^
arch/x86/include/asm/syscall_wrapper.h:151:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:157:1: note: expanded from here
__ia32_compat_sys_sysctl
^
kernel/sys_ni.c:368:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:151:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:369:1: warning: no previous prototype for function '__ia32_compat_sys_fanotify_mark' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(fanotify_mark);
^
arch/x86/include/asm/syscall_wrapper.h:151:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:5:1: note: expanded from here
__ia32_compat_sys_fanotify_mark
^
kernel/sys_ni.c:369:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:151:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:372:1: warning: no previous prototype for function '__x64_sys_vm86old' [-Wmissing-prototypes]
COND_SYSCALL(vm86old);
^
arch/x86/include/asm/syscall_wrapper.h:70:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:10:1: note: expanded from here
__x64_sys_vm86old
^
kernel/sys_ni.c:372:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:70:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:372:1: warning: no previous prototype for function '__ia32_sys_vm86old' [-Wmissing-prototypes]
COND_SYSCALL(vm86old);
^
arch/x86/include/asm/syscall_wrapper.h:74:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:11:1: note: expanded from here
__ia32_sys_vm86old
^
kernel/sys_ni.c:372:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:74:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:373:1: warning: no previous prototype for function '__x64_sys_modify_ldt' [-Wmissing-prototypes]
COND_SYSCALL(modify_ldt);
^
arch/x86/include/asm/syscall_wrapper.h:70:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:12:1: note: expanded from here
__x64_sys_modify_ldt
^
kernel/sys_ni.c:373:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:70:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:373:1: warning: no previous prototype for function '__ia32_sys_modify_ldt' [-Wmissing-prototypes]
COND_SYSCALL(modify_ldt);
^
arch/x86/include/asm/syscall_wrapper.h:74:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:13:1: note: expanded from here
__ia32_sys_modify_ldt
^
kernel/sys_ni.c:373:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:74:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:374:1: warning: no previous prototype for function '__ia32_compat_sys_quotactl32' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(quotactl32);
^
arch/x86/include/asm/syscall_wrapper.h:151:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:14:1: note: expanded from here
__ia32_compat_sys_quotactl32
^
kernel/sys_ni.c:374:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:151:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:375:1: warning: no previous prototype for function '__x64_sys_vm86' [-Wmissing-prototypes]
COND_SYSCALL(vm86);
^
arch/x86/include/asm/syscall_wrapper.h:70:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:19:1: note: expanded from here
__x64_sys_vm86
^
kernel/sys_ni.c:375:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
vim +/__ia32_compat_sys_sysctl +368 kernel/sys_ni.c
70dd4b3160798b6 Dominik Brodowski 2018-03-06 366
70dd4b3160798b6 Dominik Brodowski 2018-03-06 367 /* compat syscalls for arm64, x86, ... */
67a7acd3773a94d Dominik Brodowski 2018-03-04 @368 COND_SYSCALL_COMPAT(sysctl);
67a7acd3773a94d Dominik Brodowski 2018-03-04 369 COND_SYSCALL_COMPAT(fanotify_mark);
70dd4b3160798b6 Dominik Brodowski 2018-03-06 370
:::::: The code at line 368 was first introduced by commit
:::::: 67a7acd3773a94df2e671601a288685485463cf9 kernel/sys_ni: remove {sys_,sys_compat} from cond_syscall definitions
:::::: TO: Dominik Brodowski <linux(a)dominikbrodowski.net>
:::::: CC: Dominik Brodowski <linux(a)dominikbrodowski.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211118-sysctl-cleanups-set-04-v2 3/36] kernel/hung_task.c:355:78: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head: 3110d41a56792588bd2f64621080948b0fceb6ab
commit: 6ababba5c97fb472180d43b78dcabc24008e2bd6 [3/36] hung_task: Move hung_task sysctl interface to hung_task.c
config: microblaze-randconfig-r036-20211118 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
git checkout 6ababba5c97fb472180d43b78dcabc24008e2bd6
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash
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 >>):
kernel/hung_task.c: In function 'hung_task_sysctl_init':
>> kernel/hung_task.c:355:78: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
355 | register_sysctl_init("kernel", hung_task_sysctls, "hung_task_sysctls");
| ^
In file included from include/linux/key.h:17,
from include/linux/cred.h:13,
from include/linux/sched/signal.h:10,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:717,
from kernel/hung_task.c:9:
include/linux/sysctl.h:210: note: macro "register_sysctl_init" defined here
210 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
|
>> kernel/hung_task.c:355:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
355 | register_sysctl_init("kernel", hung_task_sysctls, "hung_task_sysctls");
| ^~~~~~~~~~~~~~~~~~~~
| register_sysctl_paths
kernel/hung_task.c:355:9: note: each undeclared identifier is reported only once for each function it appears in
At top level:
kernel/hung_task.c:297:25: warning: 'hung_task_sysctls' defined but not used [-Wunused-variable]
297 | static struct ctl_table hung_task_sysctls[] = {
| ^~~~~~~~~~~~~~~~~
vim +/register_sysctl_init +355 kernel/hung_task.c
352
353 static void __init hung_task_sysctl_init(void)
354 {
> 355 register_sysctl_init("kernel", hung_task_sysctls, "hung_task_sysctls");
356 }
357 #else
358 #define hung_task_sysctl_init() do { } while (0)
359 #endif /* CONFIG_SYSCTL */
360
361
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211118-sysctl-cleanups-set-04-v2 1/36] fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head: 3110d41a56792588bd2f64621080948b0fceb6ab
commit: 0de3e8b302495fb40dbdeec425d577618b3be169 [1/36] sysctl: add a new register_sysctl_init() interface
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
git checkout 0de3e8b302495fb40dbdeec425d577618b3be169
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
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 >>):
fs/proc/proc_sysctl.c: In function '__register_sysctl_init':
>> fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak' [-Werror=implicit-function-declaration]
1415 | kmemleak_not_leak(hdr);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/kmemleak_not_leak +1415 fs/proc/proc_sysctl.c
1386
1387 /**
1388 * __register_sysctl_init() - register sysctl table to path
1389 * @path: path name for sysctl base
1390 * @table: This is the sysctl table that needs to be registered to the path
1391 * @table_name: The name of sysctl table, only used for log printing when
1392 * registration fails
1393 *
1394 * The sysctl interface is used by userspace to query or modify at runtime
1395 * a predefined value set on a variable. These variables however have default
1396 * values pre-set. Code which depends on these variables will always work even
1397 * if register_sysctl() fails. If register_sysctl() fails you'd just loose the
1398 * ability to query or modify the sysctls dynamically at run time. Chances of
1399 * register_sysctl() failing on init are extremely low, and so for both reasons
1400 * this function does not return any error as it is used by initialization code.
1401 *
1402 * Context: Can only be called after sysctl base path has been registered
1403 * It is recommended to call this interface in core_initcall() and
1404 * later initcall(), not in early_initcall() and earlier stages.
1405 */
1406 void __init __register_sysctl_init(const char *path, struct ctl_table *table,
1407 const char *table_name)
1408 {
1409 struct ctl_table_header *hdr = register_sysctl(path, table);
1410
1411 if (unlikely(!hdr)) {
1412 pr_err("failed when register_sysctl %s to %s\n", table_name, path);
1413 return;
1414 }
> 1415 kmemleak_not_leak(hdr);
1416 }
1417
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211118-sysctl-cleanups-set-04-v2 4/36] kernel/watchdog.c:839:76: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head: 3110d41a56792588bd2f64621080948b0fceb6ab
commit: c70e1c11c9a84701858e30697feb53a254d278c6 [4/36] watchdog: move watchdog sysctl interface to watchdog.c
config: alpha-randconfig-r026-20211118 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
git checkout c70e1c11c9a84701858e30697feb53a254d278c6
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash
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 >>):
kernel/watchdog.c: In function 'watchdog_sysctl_init':
>> kernel/watchdog.c:839:76: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
839 | register_sysctl_init("kernel", watchdog_sysctls, "watchdog_sysctls");
| ^
In file included from include/linux/key.h:17,
from include/linux/cred.h:13,
from include/linux/sched/signal.h:10,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:717,
from kernel/watchdog.c:15:
include/linux/sysctl.h:210: note: macro "register_sysctl_init" defined here
210 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
|
>> kernel/watchdog.c:839:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
839 | register_sysctl_init("kernel", watchdog_sysctls, "watchdog_sysctls");
| ^~~~~~~~~~~~~~~~~~~~
| register_sysctl_paths
kernel/watchdog.c:839:9: note: each undeclared identifier is reported only once for each function it appears in
At top level:
kernel/watchdog.c:746:25: warning: 'watchdog_sysctls' defined but not used [-Wunused-variable]
746 | static struct ctl_table watchdog_sysctls[] = {
| ^~~~~~~~~~~~~~~~
vim +/register_sysctl_init +839 kernel/watchdog.c
836
837 static void __init watchdog_sysctl_init(void)
838 {
> 839 register_sysctl_init("kernel", watchdog_sysctls, "watchdog_sysctls");
840 }
841 #else
842 #define watchdog_sysctl_init() do { } while (0)
843 #endif /* CONFIG_SYSCTL */
844
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months