[rcu:dev.2021.08.12a 63/72] kernel/cpu.c:158:6: error: conflicting types for 'cpu_hp_check_delay'; have 'bool(const char *, const void *)' {aka '_Bool(const char *, const void *)'}
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.08.12a
head: 3d4b7b3ca5de1d3669890684c3e60d3dad6ea468
commit: 97c274758ba2517477cb43ad2c49af82ea18572d [63/72] EXP cpu: Make cpu_hp_check_delay() return true when detecting an anomaly
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/paulmck/linux-rcu.git/com...
git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
git fetch --no-tags rcu dev.2021.08.12a
git checkout 97c274758ba2517477cb43ad2c49af82ea18572d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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/cpu.c:137:6: error: redefinition of 'cpu_hp_start_now'
137 | void cpu_hp_start_now(void)
| ^~~~~~~~~~~~~~~~
In file included from kernel/cpu.c:17:
include/linux/cpu.h:147:20: note: previous definition of 'cpu_hp_start_now' with type 'void(void)'
147 | static inline void cpu_hp_start_now(void) { }
| ^~~~~~~~~~~~~~~~
kernel/cpu.c:146:6: error: redefinition of 'cpu_hp_stop_now'
146 | void cpu_hp_stop_now(void)
| ^~~~~~~~~~~~~~~
In file included from kernel/cpu.c:17:
include/linux/cpu.h:148:20: note: previous definition of 'cpu_hp_stop_now' with type 'void(void)'
148 | static inline void cpu_hp_stop_now(void) { }
| ^~~~~~~~~~~~~~~
>> kernel/cpu.c:158:6: error: conflicting types for 'cpu_hp_check_delay'; have 'bool(const char *, const void *)' {aka '_Bool(const char *, const void *)'}
158 | bool cpu_hp_check_delay(const char *s, const void *func)
| ^~~~~~~~~~~~~~~~~~
In file included from kernel/cpu.c:17:
include/linux/cpu.h:149:20: note: previous definition of 'cpu_hp_check_delay' with type 'bool(const char *, void *)' {aka '_Bool(const char *, void *)'}
149 | static inline bool cpu_hp_check_delay(const char *s, void *func) { return false; }
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/printk.h:11,
from include/linux/kernel.h:19,
from include/linux/sched/mm.h:5,
from kernel/cpu.c:6:
kernel/cpu.c: In function 'cpu_hp_check_delay':
kernel/cpu.c:170:48: warning: integer overflow in expression of type 'long int' results in '1215752192' [-Woverflow]
170 | if (WARN_ONCE(time_after64(t1, t + 100 * NSEC_PER_SEC), "%s %ps took %llu milliseconds\n", s, func, (t1 - t) / NSEC_PER_MSEC)) {
| ^
include/linux/once_lite.h:15:41: note: in definition of macro 'DO_ONCE_LITE_IF'
15 | bool __ret_do_once = !!(condition); \
| ^~~~~~~~~
kernel/cpu.c:170:13: note: in expansion of macro 'WARN_ONCE'
170 | if (WARN_ONCE(time_after64(t1, t + 100 * NSEC_PER_SEC), "%s %ps took %llu milliseconds\n", s, func, (t1 - t) / NSEC_PER_MSEC)) {
| ^~~~~~~~~
kernel/cpu.c:170:23: note: in expansion of macro 'time_after64'
170 | if (WARN_ONCE(time_after64(t1, t + 100 * NSEC_PER_SEC), "%s %ps took %llu milliseconds\n", s, func, (t1 - t) / NSEC_PER_MSEC)) {
| ^~~~~~~~~~~~
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/events/power.h:12,
from kernel/cpu.c:37:
At top level:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
vim +158 kernel/cpu.c
156
157 /* Return true if a time-delay anomaly was detected. */
> 158 bool cpu_hp_check_delay(const char *s, const void *func)
159 {
160 bool ret = false;
161 u64 t, t1;
162
163 if (!smp_load_acquire(&cpu_hp_start_time_valid))
164 return false;
165 t = READ_ONCE(cpu_hp_start_time);
166 smp_mb();
167 if (!READ_ONCE(cpu_hp_start_time_valid))
168 return false;
169 t1 = ktime_get();
170 if (WARN_ONCE(time_after64(t1, t + 100 * NSEC_PER_SEC), "%s %ps took %llu milliseconds\n", s, func, (t1 - t) / NSEC_PER_MSEC)) {
171 WRITE_ONCE(cpu_hp_start_time, t1);
172 ret = true;
173 }
174 if (WARN_ONCE(time_before64(t1, t - 25 * NSEC_PER_MSEC), "%s %ps clock went backwards %llu milliseconds\n", s, func, (t - t1) / NSEC_PER_MSEC)){
175 WRITE_ONCE(cpu_hp_start_time, t1);
176 ret = true;
177 }
178 return ret;
179 }
180
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
arch/arm64/kernel/proton-pack.c:558:13: warning: no previous prototype for function 'spectre_v4_patch_fw_mitigation_enable'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f8e6dfc64f6135d1b6c5215c14cd30b9b60a0008
commit: c28762070ca651fe7a981b8f31d972c9b7d2c386 arm64: Rewrite Spectre-v4 mitigation code
date: 11 months ago
config: arm64-randconfig-r013-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 62df4df41c939205b2dc0a2a3bfb75b8c1ed74fa)
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 c28762070ca651fe7a981b8f31d972c9b7d2c386
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
arch/arm64/kernel/proton-pack.c:288:2: error: implicit declaration of function 'install_bp_hardening_cb' [-Werror,-Wimplicit-function-declaration]
install_bp_hardening_cb(cb);
^
arch/arm64/kernel/proton-pack.c:304:2: error: implicit declaration of function 'install_bp_hardening_cb' [-Werror,-Wimplicit-function-declaration]
install_bp_hardening_cb(qcom_link_stack_sanitisation);
^
>> arch/arm64/kernel/proton-pack.c:558:13: warning: no previous prototype for function 'spectre_v4_patch_fw_mitigation_enable' [-Wmissing-prototypes]
void __init spectre_v4_patch_fw_mitigation_enable(struct alt_instr *alt,
^
arch/arm64/kernel/proton-pack.c:558:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init spectre_v4_patch_fw_mitigation_enable(struct alt_instr *alt,
^
static
>> arch/arm64/kernel/proton-pack.c:578:13: warning: no previous prototype for function 'spectre_v4_patch_fw_mitigation_conduit' [-Wmissing-prototypes]
void __init spectre_v4_patch_fw_mitigation_conduit(struct alt_instr *alt,
^
arch/arm64/kernel/proton-pack.c:578:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init spectre_v4_patch_fw_mitigation_conduit(struct alt_instr *alt,
^
static
2 warnings and 2 errors generated.
vim +/spectre_v4_patch_fw_mitigation_enable +558 arch/arm64/kernel/proton-pack.c
553
554 /*
555 * Patch a branch over the Spectre-v4 mitigation code with a NOP so that
556 * we fallthrough and check whether firmware needs to be called on this CPU.
557 */
> 558 void __init spectre_v4_patch_fw_mitigation_enable(struct alt_instr *alt,
559 __le32 *origptr,
560 __le32 *updptr, int nr_inst)
561 {
562 BUG_ON(nr_inst != 1); /* Branch -> NOP */
563
564 if (spectre_v4_mitigations_off())
565 return;
566
567 if (cpus_have_final_cap(ARM64_SSBS))
568 return;
569
570 if (spectre_v4_mitigations_dynamic())
571 *updptr = cpu_to_le32(aarch64_insn_gen_nop());
572 }
573
574 /*
575 * Patch a NOP in the Spectre-v4 mitigation code with an SMC/HVC instruction
576 * to call into firmware to adjust the mitigation state.
577 */
> 578 void __init spectre_v4_patch_fw_mitigation_conduit(struct alt_instr *alt,
579 __le32 *origptr,
580 __le32 *updptr, int nr_inst)
581 {
582 u32 insn;
583
584 BUG_ON(nr_inst != 1); /* NOP -> HVC/SMC */
585
586 switch (arm_smccc_1_1_get_conduit()) {
587 case SMCCC_CONDUIT_HVC:
588 insn = aarch64_insn_get_hvc_value();
589 break;
590 case SMCCC_CONDUIT_SMC:
591 insn = aarch64_insn_get_smc_value();
592 break;
593 default:
594 return;
595 }
596
597 *updptr = cpu_to_le32(insn);
598 }
599
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[chrome-os:chromeos-4.19 7/9] include/uapi/linux/kvm.h:14:10: fatal error: asm/kvm.h: No such file or directory
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 6e912d0ff604d23a34ef2b97db21c1e00be18da0
commit: fd9a4d32a26b88309fe68b292d38471785fec955 [7/9] BACKPORT: FROMLIST: x86/kvm: Add definitions for virtual suspend time injection
config: arc-randconfig-r012-20210814 (attached as .config)
compiler: arceb-elf-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout fd9a4d32a26b88309fe68b292d38471785fec955
# 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=arc SHELL=/bin/bash kernel/time/
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 >>):
| ^~~~~~~~
include/linux/mm.h:1937:9: note: in expansion of macro 'VM_BUG_ON_PAGE'
1937 | VM_BUG_ON_PAGE(*(unsigned long *)&page->ptl, page);
| ^~~~~~~~~~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/mmdebug.h:21:17: note: in expansion of macro 'if'
21 | if (unlikely(cond)) { \
| ^~
include/linux/mm.h:1937:9: note: in expansion of macro 'VM_BUG_ON_PAGE'
1937 | VM_BUG_ON_PAGE(*(unsigned long *)&page->ptl, page);
| ^~~~~~~~~~~~~~
include/linux/mm.h: In function 'page_is_guard':
include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes]
25 | static struct ftrace_likely_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:69:30: note: in definition of macro '__trace_if'
69 | ______r = !!(cond); \
| ^~~~
include/linux/mm.h:2860:9: note: in expansion of macro 'if'
2860 | if (unlikely(!page_ext))
| ^~
include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/mm.h:2860:13: note: in expansion of macro 'unlikely'
2860 | if (unlikely(!page_ext))
| ^~~~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/mm.h:2860:9: note: in expansion of macro 'if'
2860 | if (unlikely(!page_ext))
| ^~
include/linux/clockchips.h: In function 'div_sc':
include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes]
25 | static struct ftrace_likely_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:69:30: note: in definition of macro '__trace_if'
69 | ______r = !!(cond); \
| ^~~~
include/asm-generic/div64.h:235:16: note: in expansion of macro 'if'
235 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__'
45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/asm-generic/div64.h:235:20: note: in expansion of macro 'likely'
235 | } else if (likely(((n) >> 32) == 0)) { \
| ^~~~~~
include/linux/clockchips.h:185:9: note: in expansion of macro 'do_div'
185 | do_div(tmp, nsec);
| ^~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/asm-generic/div64.h:235:16: note: in expansion of macro 'if'
235 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
include/linux/clockchips.h:185:9: note: in expansion of macro 'do_div'
185 | do_div(tmp, nsec);
| ^~~~~~
include/linux/device.h: In function 'devm_kmalloc_array':
include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes]
25 | static struct ftrace_likely_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:69:30: note: in definition of macro '__trace_if'
69 | ______r = !!(cond); \
| ^~~~
include/linux/device.h:686:9: note: in expansion of macro 'if'
686 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| ^~
include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/device.h:686:13: note: in expansion of macro 'unlikely'
686 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| ^~~~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/device.h:686:9: note: in expansion of macro 'if'
686 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| ^~
In file included from include/linux/kvm_host.h:35,
from kernel/time/timekeeping.c:29:
include/uapi/linux/kvm.h: At top level:
>> include/uapi/linux/kvm.h:14:10: fatal error: asm/kvm.h: No such file or directory
14 | #include <asm/kvm.h>
| ^~~~~~~~~~~
compilation terminated.
vim +14 include/uapi/linux/kvm.h
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 4
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 5 /*
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 6 * Userspace interface for /dev/kvm - kernel based virtual machine
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 7 *
dea8caee7b6971 include/linux/kvm.h Rusty Russell 2007-07-17 8 * Note: you must update KVM_API_VERSION if you change this interface.
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 9 */
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 10
00bfddaf7f68a6 include/linux/kvm.h Jaswinder Singh Rajput 2009-01-15 11 #include <linux/types.h>
97646202bc3f19 include/linux/kvm.h Christian Borntraeger 2008-03-12 12 #include <linux/compiler.h>
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 13 #include <linux/ioctl.h>
f6a40e3bdf5fe0 include/linux/kvm.h Jerone Young 2007-11-19 @14 #include <asm/kvm.h>
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 15
:::::: The code at line 14 was first introduced by commit
:::::: f6a40e3bdf5fe0a7d7d7f2dbc5b10158fbdad968 KVM: Portability: Move kvm_memory_alias to asm/kvm.h
:::::: TO: Jerone Young <jyoung5(a)us.ibm.com>
:::::: CC: Avi Kivity <avi(a)qumranet.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
arch/x86/net/bpf_jit_comp.c:1647:5: warning: no previous prototype for 'arch_prepare_bpf_dispatcher'
by kernel test robot
Hi Björn,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f8e6dfc64f6135d1b6c5215c14cd30b9b60a0008
commit: 75ccbef6369e94ecac696a152a998a978d41376b bpf: Introduce BPF dispatcher
date: 1 year, 8 months ago
config: x86_64-buildonly-randconfig-r001-20210814 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/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 75ccbef6369e94ecac696a152a998a978d41376b
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/net/bpf_jit_comp.c:1647:5: warning: no previous prototype for 'arch_prepare_bpf_dispatcher' [-Wmissing-prototypes]
1647 | int arch_prepare_bpf_dispatcher(void *image, s64 *funcs, int num_funcs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/arch_prepare_bpf_dispatcher +1647 arch/x86/net/bpf_jit_comp.c
1646
> 1647 int arch_prepare_bpf_dispatcher(void *image, s64 *funcs, int num_funcs)
1648 {
1649 u8 *prog = image;
1650
1651 sort(funcs, num_funcs, sizeof(funcs[0]), cmp_ips, NULL);
1652 return emit_bpf_dispatcher(&prog, 0, num_funcs - 1, funcs);
1653 }
1654
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[chrome-os:chromeos-5.10 63/85] sound/soc/codecs/rt5682-i2c.c:297:22: error: unused variable 'rt5682'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 72ce9ff195f3502b2a6ad62faf6d93b6a6e49de2
commit: 3c43290e0e3b6d875e374a81fb1225dc09f7d81a [63/85] FROMGIT: ASoC: rt5682: Properly turn off regulators if wrong device ID
config: x86_64-randconfig-a012-20210813 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 3c43290e0e3b6d875e374a81fb1225dc09f7d81a
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
sound/soc/codecs/rt5682-i2c.c: In function 'rt5682_i2c_remove':
>> sound/soc/codecs/rt5682-i2c.c:297:22: error: unused variable 'rt5682' [-Werror=unused-variable]
297 | struct rt5682_priv *rt5682 = i2c_get_clientdata(client);
| ^~~~~~
cc1: all warnings being treated as errors
vim +/rt5682 +297 sound/soc/codecs/rt5682-i2c.c
a50067d4f3c1d6 Arnd Bergmann 2020-05-28 294
c330851e825afe Stephen Boyd 2021-05-08 295 static int rt5682_i2c_remove(struct i2c_client *client)
c330851e825afe Stephen Boyd 2021-05-08 296 {
c330851e825afe Stephen Boyd 2021-05-08 @297 struct rt5682_priv *rt5682 = i2c_get_clientdata(client);
c330851e825afe Stephen Boyd 2021-05-08 298
c330851e825afe Stephen Boyd 2021-05-08 299 rt5682_i2c_shutdown(client);
c330851e825afe Stephen Boyd 2021-05-08 300
c330851e825afe Stephen Boyd 2021-05-08 301 return 0;
c330851e825afe Stephen Boyd 2021-05-08 302 }
c330851e825afe Stephen Boyd 2021-05-08 303
:::::: The code at line 297 was first introduced by commit
:::::: c330851e825afeca6b880e3a05aa3ad46d025a3c FROMGIT: ASoC: rt5682: Implement remove callback
:::::: TO: Stephen Boyd <swboyd(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match'
by kernel test robot
Hi Vladimir,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f8e6dfc64f6135d1b6c5215c14cd30b9b60a0008
commit: d60bc62de4ae068ed4b215c24cdfdd5035aa986e net: dsa: seville: build as separate module
date: 11 months ago
config: x86_64-randconfig-r014-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 62df4df41c939205b2dc0a2a3bfb75b8c1ed74fa)
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 d60bc62de4ae068ed4b215c24cdfdd5035aa986e
# 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/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match' [-Wunused-const-variable]
static const struct of_device_id seville_of_match[] = {
^
1 warning generated.
vim +/seville_of_match +1107 drivers/net/dsa/ocelot/seville_vsc9953.c
84705fc165526e Maxim Kochetkov 2020-07-13 1106
84705fc165526e Maxim Kochetkov 2020-07-13 @1107 static const struct of_device_id seville_of_match[] = {
84705fc165526e Maxim Kochetkov 2020-07-13 1108 { .compatible = "mscc,vsc9953-switch" },
84705fc165526e Maxim Kochetkov 2020-07-13 1109 { },
84705fc165526e Maxim Kochetkov 2020-07-13 1110 };
84705fc165526e Maxim Kochetkov 2020-07-13 1111 MODULE_DEVICE_TABLE(of, seville_of_match);
84705fc165526e Maxim Kochetkov 2020-07-13 1112
:::::: The code at line 1107 was first introduced by commit
:::::: 84705fc165526e8e55d208b2b10a48cc720a106a net: dsa: felix: introduce support for Seville VSC9953 switch
:::::: TO: Maxim Kochetkov <fido_max(a)inbox.ru>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[intel-linux-intel-lts:5.10/yocto 10619/15089] drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:14: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: 33f329993aa32e5d7587399a764842b9c4b30b1b
commit: 4a13d96daeb2f402d35b53c718b83609e65d4b3d [10619/15089] v4l: subdev: Add [GS]_ROUTING ioctls and operations
config: x86_64-randconfig-s022-20210813 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/intel/linux-intel-lts/commit/4a13d96daeb2f402d35b53c71...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/yocto
git checkout 4a13d96daeb2f402d35b53c718b83609e65d4b3d
# 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 >>)
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1355:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct v4l2_subdev_route *routes @@ got void [noderef] __user * @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1355:20: sparse: expected struct v4l2_subdev_route *routes
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1355:20: sparse: got void [noderef] __user *
>> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got struct v4l2_subdev_route *routes @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:14: sparse: expected void const volatile [noderef] __user *ptr
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:14: sparse: got struct v4l2_subdev_route *routes
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1593:55: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct v4l2_subdev_routing *kp @@ got void [noderef] __user *[addressable] new_p64 @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1593:55: sparse: expected struct v4l2_subdev_routing *kp
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1593:55: sparse: got void [noderef] __user *[addressable] new_p64
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1764:55: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct v4l2_subdev_routing *kp @@ got void [noderef] __user *[addressable] new_p64 @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1764:55: sparse: expected struct v4l2_subdev_routing *kp
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1764:55: sparse: got void [noderef] __user *[addressable] new_p64
vim +1357 drivers/media/v4l2-core/v4l2-compat-ioctl32.c
1342
1343 static int get_v4l2_subdev_routing(struct v4l2_subdev_routing *kp,
1344 struct v4l2_subdev_routing32 __user *up)
1345 {
1346 compat_caddr_t p;
1347
1348 if (!access_ok(up, sizeof(*up)) ||
1349 get_user(p, &up->routes) ||
1350 get_user(kp->num_routes, &up->num_routes) ||
1351 !access_ok(up->reserved, sizeof(*up->reserved)) ||
1352 kp->num_routes > U32_MAX / sizeof(*kp->routes))
1353 return -EFAULT;
1354
1355 kp->routes = compat_ptr(p);
1356
> 1357 if (!access_ok(kp->routes,
1358 kp->num_routes * (u32)sizeof(*kp->routes)))
1359 return -EFAULT;
1360
1361 return 0;
1362 }
1363
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[asahilinux:dart/4kpgsize 47/51] drivers/iommu/dma-iommu.c:918:18: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct page *'
by kernel test robot
tree: https://github.com/AsahiLinux/linux dart/4kpgsize
head: 7958b0de7ba6467e2f97cd8628661777d14780d8
commit: 38661a4229b4dc63dc0cae6e1401c3465538f1a1 [47/51] iommu/dma: iommu_dma_map_sg: support granule > PAGE_SIZE
config: x86_64-randconfig-c001-20210813 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 62df4df41c939205b2dc0a2a3bfb75b8c1ed74fa)
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/AsahiLinux/linux/commit/38661a4229b4dc63dc0cae6e1401c3...
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux dart/4kpgsize
git checkout 38661a4229b4dc63dc0cae6e1401c3465538f1a1
# 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/iommu/dma-iommu.c:918:18: error: implicit declaration of function 'phys_to_page' [-Werror,-Wimplicit-function-declaration]
sg_set_page(s, phys_to_page(sg_phys(s) + s_iova_off), s_length,
^
drivers/iommu/dma-iommu.c:918:18: note: did you mean 'pmd_to_page'?
include/linux/mm.h:2293:21: note: 'pmd_to_page' declared here
static struct page *pmd_to_page(pmd_t *pmd)
^
>> drivers/iommu/dma-iommu.c:918:18: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct page *' [-Wint-conversion]
sg_set_page(s, phys_to_page(sg_phys(s) + s_iova_off), s_length,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/scatterlist.h:110:69: note: passing argument to parameter 'page' here
static inline void sg_set_page(struct scatterlist *sg, struct page *page,
^
drivers/iommu/dma-iommu.c:965:9: error: implicit declaration of function 'phys_to_page' [-Werror,-Wimplicit-function-declaration]
phys_to_page(sg_phys(s) + sg_dma_address(s)),
^
drivers/iommu/dma-iommu.c:965:9: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct page *' [-Wint-conversion]
phys_to_page(sg_phys(s) + sg_dma_address(s)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/scatterlist.h:110:69: note: passing argument to parameter 'page' here
static inline void sg_set_page(struct scatterlist *sg, struct page *page,
^
drivers/iommu/dma-iommu.c:1051:18: error: implicit declaration of function 'phys_to_page' [-Werror,-Wimplicit-function-declaration]
sg_set_page(s, phys_to_page(s_phys - s_iova_off),
^
drivers/iommu/dma-iommu.c:1051:18: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct page *' [-Wint-conversion]
sg_set_page(s, phys_to_page(s_phys - s_iova_off),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/scatterlist.h:110:69: note: passing argument to parameter 'page' here
static inline void sg_set_page(struct scatterlist *sg, struct page *page,
^
3 warnings and 3 errors generated.
vim +918 drivers/iommu/dma-iommu.c
896
897 /*
898 * Prepare a successfully-mapped scatterlist to give back to the caller.
899 *
900 * At this point the segments are already laid out by iommu_dma_map_sg() to
901 * avoid individually crossing any boundaries, so we merely need to check a
902 * segment's start address to avoid concatenating across one.
903 */
904 static int __finalise_sg(struct device *dev, struct scatterlist *sg, int nents,
905 dma_addr_t dma_addr)
906 {
907 struct scatterlist *s, *cur = sg;
908 unsigned long seg_mask = dma_get_seg_boundary(dev);
909 unsigned int cur_len = 0, max_len = dma_get_max_seg_size(dev);
910 int i, count = 0;
911
912 for_each_sg(sg, s, nents, i) {
913 /* Restore this segment's original unaligned fields first */
914 unsigned int s_iova_off = sg_dma_address(s);
915 unsigned int s_length = sg_dma_len(s);
916 unsigned int s_iova_len = s->length;
917
> 918 sg_set_page(s, phys_to_page(sg_phys(s) + s_iova_off), s_length,
919 s_iova_off & ~PAGE_MASK);
920 sg_dma_address(s) = DMA_MAPPING_ERROR;
921 sg_dma_len(s) = 0;
922
923 /*
924 * Now fill in the real DMA data. If...
925 * - there is a valid output segment to append to
926 * - and this segment starts on an IOVA page boundary
927 * - but doesn't fall at a segment boundary
928 * - and wouldn't make the resulting output segment too long
929 */
930 if (cur_len && !s_iova_off && (dma_addr & seg_mask) &&
931 (max_len - cur_len >= s_length)) {
932 /* ...then concatenate it with the previous one */
933 cur_len += s_length;
934 } else {
935 /* Otherwise start the next output segment */
936 if (i > 0)
937 cur = sg_next(cur);
938 cur_len = s_length;
939 count++;
940
941 sg_dma_address(cur) = dma_addr + s_iova_off;
942 }
943
944 sg_dma_len(cur) = cur_len;
945 dma_addr += s_iova_len;
946
947 if (s_length + s_iova_off < s_iova_len)
948 cur_len = 0;
949 }
950 return count;
951 }
952
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[usb:usb-testing 31/85] drivers/usb/gadget/function/f_uac1.c:1087 f_audio_validate_opts() warn: inconsistent indenting
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head: cea45a3bd2dd4d9c35581328f571afd32b3c9f48
commit: 0356e6283c7177391d144612f4b12986ed5c4f6e [31/85] usb: gadget: f_uac1: add volume and mute support
config: microblaze-randconfig-m031-20210814 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/usb/gadget/function/f_uac1.c:1087 f_audio_validate_opts() warn: inconsistent indenting
Old smatch warnings:
drivers/usb/gadget/function/f_uac1.c:1090 f_audio_validate_opts() warn: inconsistent indenting
drivers/usb/gadget/function/f_uac1.c:1093 f_audio_validate_opts() warn: inconsistent indenting
drivers/usb/gadget/function/f_uac1.c:1096 f_audio_validate_opts() warn: inconsistent indenting
drivers/usb/gadget/function/f_uac1.c:1101 f_audio_validate_opts() warn: inconsistent indenting
drivers/usb/gadget/function/f_uac1.c:1104 f_audio_validate_opts() warn: inconsistent indenting
vim +1087 drivers/usb/gadget/function/f_uac1.c
1057
1058 static int f_audio_validate_opts(struct g_audio *audio, struct device *dev)
1059 {
1060 struct f_uac1_opts *opts = g_audio_to_uac1_opts(audio);
1061
1062 if (!opts->p_chmask && !opts->c_chmask) {
1063 dev_err(dev, "Error: no playback and capture channels\n");
1064 return -EINVAL;
1065 } else if (opts->p_chmask & ~UAC1_CHANNEL_MASK) {
1066 dev_err(dev, "Error: unsupported playback channels mask\n");
1067 return -EINVAL;
1068 } else if (opts->c_chmask & ~UAC1_CHANNEL_MASK) {
1069 dev_err(dev, "Error: unsupported capture channels mask\n");
1070 return -EINVAL;
1071 } else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) {
1072 dev_err(dev, "Error: incorrect playback sample size\n");
1073 return -EINVAL;
1074 } else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) {
1075 dev_err(dev, "Error: incorrect capture sample size\n");
1076 return -EINVAL;
1077 } else if (!opts->p_srate) {
1078 dev_err(dev, "Error: incorrect playback sampling rate\n");
1079 return -EINVAL;
1080 } else if (!opts->c_srate) {
1081 dev_err(dev, "Error: incorrect capture sampling rate\n");
1082 return -EINVAL;
1083 }
1084
1085 if (opts->p_volume_max <= opts->p_volume_min) {
1086 dev_err(dev, "Error: incorrect playback volume max/min\n");
> 1087 return -EINVAL;
1088 } else if (opts->c_volume_max <= opts->c_volume_min) {
1089 dev_err(dev, "Error: incorrect capture volume max/min\n");
1090 return -EINVAL;
1091 } else if (opts->p_volume_res <= 0) {
1092 dev_err(dev, "Error: negative/zero playback volume resolution\n");
1093 return -EINVAL;
1094 } else if (opts->c_volume_res <= 0) {
1095 dev_err(dev, "Error: negative/zero capture volume resolution\n");
1096 return -EINVAL;
1097 }
1098
1099 if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) {
1100 dev_err(dev, "Error: incorrect playback volume resolution\n");
1101 return -EINVAL;
1102 } else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) {
1103 dev_err(dev, "Error: incorrect capture volume resolution\n");
1104 return -EINVAL;
1105 }
1106
1107 return 0;
1108 }
1109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[android-common:android12-5.4 5/9] drivers/dma-buf/heaps/deferred-free-helper.c:23:19: sparse: sparse: symbol 'freelist_waitqueue' was not declared. Should it be static?
by kernel test robot
Hi John,
First bad commit (maybe != root cause):
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 82c67a98c7494b4e71dcbea03335509e9ccecfa5
commit: e3919bfeb0066ab9b5f9765e5610b95672990e64 [5/9] ANDROID: dma-buf: system_heap: Add deferred freeing to the system heap
config: i386-randconfig-s001-20210812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout e3919bfeb0066ab9b5f9765e5610b95672990e64
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/dma-buf/heaps/ kernel/
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 >>)
>> drivers/dma-buf/heaps/deferred-free-helper.c:23:19: sparse: sparse: symbol 'freelist_waitqueue' was not declared. Should it be static?
>> drivers/dma-buf/heaps/deferred-free-helper.c:24:20: sparse: sparse: symbol 'freelist_task' was not declared. Should it be static?
vim +/freelist_waitqueue +23 drivers/dma-buf/heaps/deferred-free-helper.c
bd1639945c3029 John Stultz 2020-12-09 20
bd1639945c3029 John Stultz 2020-12-09 21 static LIST_HEAD(free_list);
bd1639945c3029 John Stultz 2020-12-09 22 static size_t list_nr_pages;
bd1639945c3029 John Stultz 2020-12-09 @23 wait_queue_head_t freelist_waitqueue;
bd1639945c3029 John Stultz 2020-12-09 @24 struct task_struct *freelist_task;
bd1639945c3029 John Stultz 2020-12-09 25 static DEFINE_SPINLOCK(free_list_lock);
bd1639945c3029 John Stultz 2020-12-09 26
:::::: The code at line 23 was first introduced by commit
:::::: bd1639945c30298e4bea2b611d6b0cd08d3cdd98 ANDROID: dma-buf: heaps: Add deferred-free-helper library code
:::::: TO: John Stultz <john.stultz(a)linaro.org>
:::::: CC: John Stultz <john.stultz(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month