mailweb.openeuler.org
Manage this list

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

Kernel

Threads by month
  • ----- 2025 -----
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2021 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2020 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2019 -----
  • December
kernel@openeuler.org

  • 52 participants
  • 18277 discussions
[openeuler:OLK-6.6 1559/1559] drivers/crypto/ccp/hygon/tdm-kernel-guard.c:308:23: error: use of undeclared identifier 'NR_syscalls'
by kernel test robot 29 Nov '24

29 Nov '24
Hi chench00, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 3ad98583441f7c8a2553e1e8d6340ed4397033e2 [1559/1559] crypto: tdm: Support dynamic protection for SCT and IDT by HYGON TDM config: x86_64-randconfig-075-20241129 (https://download.01.org/0day-ci/archive/20241129/202411290729.4IacO2ee-lkp@…) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290729.4IacO2ee-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290729.4IacO2ee-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/crypto/ccp/hygon/tdm-kernel-guard.c:15: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:2242: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ drivers/crypto/ccp/hygon/tdm-kernel-guard.c:151:5: warning: no previous prototype for function 'tdm_service_run' [-Wmissing-prototypes] 151 | int tdm_service_run(struct tdm_security_enhance *data) | ^ drivers/crypto/ccp/hygon/tdm-kernel-guard.c:151:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 151 | int tdm_service_run(struct tdm_security_enhance *data) | ^ | static drivers/crypto/ccp/hygon/tdm-kernel-guard.c:212:5: warning: no previous prototype for function 'tdm_service_exit' [-Wmissing-prototypes] 212 | int tdm_service_exit(struct tdm_security_enhance *data) | ^ drivers/crypto/ccp/hygon/tdm-kernel-guard.c:212:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 212 | int tdm_service_exit(struct tdm_security_enhance *data) | ^ | static drivers/crypto/ccp/hygon/tdm-kernel-guard.c:243:15: warning: no previous prototype for function 'kprobe_symbol_address_byname' [-Wmissing-prototypes] 243 | unsigned long kprobe_symbol_address_byname(const char *name) | ^ drivers/crypto/ccp/hygon/tdm-kernel-guard.c:243:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 243 | unsigned long kprobe_symbol_address_byname(const char *name) | ^ | static >> drivers/crypto/ccp/hygon/tdm-kernel-guard.c:308:23: error: use of undeclared identifier 'NR_syscalls' 308 | eh_objs[SCT].size = NR_syscalls * sizeof(char *); | ^ 4 warnings and 1 error generated. vim +/NR_syscalls +308 drivers/crypto/ccp/hygon/tdm-kernel-guard.c 242 > 243 unsigned long kprobe_symbol_address_byname(const char *name) 244 { 245 int p_ret; 246 struct kprobe p_kprobe; 247 unsigned long addr = 0; 248 249 memset(&p_kprobe, 0, sizeof(p_kprobe)); 250 251 p_kprobe.pre_handler = p_tmp_kprobe_handler; 252 p_kprobe.symbol_name = name; 253 254 p_ret = register_kprobe(&p_kprobe); 255 if (p_ret < 0) { 256 pr_err("register_kprobe error [%d] :(\n", p_ret); 257 return 0; 258 } 259 260 addr = (unsigned long)p_kprobe.addr; 261 unregister_kprobe(&p_kprobe); 262 263 return addr; 264 } 265 #endif 266 267 static int __init kernel_security_enhance_init(void) 268 { 269 int i = 0; 270 int ret = 0; 271 unsigned long *sct_addr; 272 struct desc_ptr idtr; 273 #if !IS_BUILTIN(CONFIG_TDM_KERNEL_GUARD) 274 unsigned long (*f_kallsyms_lookup_name)(const char *); 275 276 f_kallsyms_lookup_name = (unsigned long (*)(const char *))kprobe_symbol_address_byname( 277 "kallsyms_lookup_name"); 278 if (!f_kallsyms_lookup_name) { 279 ret = -DYN_ERR_API; 280 pr_err("kprobe_symbol_address_byname failed!"); 281 goto end; 282 } 283 284 sct_addr = (unsigned long *)f_kallsyms_lookup_name("sys_call_table"); 285 #else 286 287 sct_addr = (unsigned long *)kallsyms_lookup_name("sys_call_table"); 288 #endif 289 if (!sct_addr) { 290 ret = -DYN_ERR_API; 291 pr_err("kallsyms_lookup_name for sys_call_table failed!"); 292 goto end; 293 } 294 295 asm("sidt %0":"=m"(idtr)); 296 297 if (!psp_check_tdm_support()) 298 return 0; 299 300 for (i = 0; i < MAX_OBJ; i++) { 301 memset(&eh_objs[i], 0, sizeof(eh_objs[i])); 302 eh_objs[i].context = CONTEXT_CHECK_MODNAME; 303 eh_objs[i].obj_name = obj_names[i]; 304 } 305 306 if ((eh_obj == -1) || (eh_obj & (1 << SCT))) { 307 eh_objs[SCT].vaddr = (uint64_t)sct_addr; > 308 eh_objs[SCT].size = NR_syscalls * sizeof(char *); 309 } 310 if ((eh_obj == -1) || (eh_obj & (1 << IDT))) { 311 eh_objs[IDT].vaddr = idtr.address; 312 eh_objs[IDT].size = idtr.size; 313 } 314 315 for (i = 0; i < MAX_OBJ; i++) { 316 if (eh_objs[i].vaddr) 317 tdm_service_run(&eh_objs[i]); 318 } 319 320 pr_info("Hygon TDM guard load successfully!\n"); 321 322 end: 323 return ret; 324 } 325 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 1559/1559] arch/arm64/kernel/virtcca_cvm_guest.c:139:6: warning: no previous prototype for 'enable_swiotlb_for_cvm_dev'
by kernel test robot 29 Nov '24

29 Nov '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 77313e84cc513055342c5e92ac8854e78bc15276 [1559/1559] virtcca feature : disable swiotlb for passthrough device config: arm64-randconfig-004-20241129 (https://download.01.org/0day-ci/archive/20241129/202411290612.rtQtIYE0-lkp@…) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290612.rtQtIYE0-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290612.rtQtIYE0-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/arm64/kernel/virtcca_cvm_guest.c:139:6: warning: no previous prototype for 'enable_swiotlb_for_cvm_dev' [-Wmissing-prototypes] 139 | void enable_swiotlb_for_cvm_dev(struct device *dev, bool enable) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/enable_swiotlb_for_cvm_dev +139 arch/arm64/kernel/virtcca_cvm_guest.c 138 > 139 void enable_swiotlb_for_cvm_dev(struct device *dev, bool enable) 140 { 141 if (!is_virtcca_cvm_world()) 142 return; 143 144 if (enable) 145 swiotlb_dev_init(dev); 146 else 147 dev->dma_io_tlb_mem = &io_tlb_no_swiotlb_mem; 148 } 149 EXPORT_SYMBOL_GPL(enable_swiotlb_for_cvm_dev); 150 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-5.10] BUILD REGRESSION 1a47bbfaad6fcbfb4fe3935cb7408d843caf3760
by kernel test robot 29 Nov '24

29 Nov '24
tree/branch: https://gitee.com/openeuler/kernel.git OLK-5.10 branch HEAD: 1a47bbfaad6fcbfb4fe3935cb7408d843caf3760 !13890 ipmi: Use regspacings passed as a module parameter Error/Warning (recently discovered and may have been fixed): https://lore.kernel.org/oe-kbuild-all/202411282331.1ruwHvl7-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202411290038.4Q8x22Bi-lkp@intel.com https://lore.kernel.org/oe-kbuild/202411281956.6jwCAjSW-lkp@intel.com arch/x86/kernel/paravirt.c:65:36: error: 'CALL_INSN_OPCODE' undeclared (first use in this function) arch/x86/kernel/paravirt.c:65:9: error: implicit declaration of function '__text_gen_insn' [-Werror=implicit-function-declaration] arch/x86/kernel/paravirt.c:66:26: error: use of undeclared identifier 'CALL_INSN_SIZE' crypto/asymmetric_keys/pgp_preload.c:110: undefined reference to `pgp_parse_packets' crypto/asymmetric_keys/pgp_public_key.c:224: undefined reference to `pgp_parse_public_key' crypto/asymmetric_keys/pgp_public_key.c:310: undefined reference to `pgp_parse_packets' drivers/tty/tty_buffer.c:177:9: error: implicit declaration of function 'printk_safe_exit'; did you mean 'printk_nmi_exit'? [-Werror=implicit-function-declaration] ld: crypto/asymmetric_keys/pgp_public_key.c:230: undefined reference to `pgp_to_public_key_algo' ld: crypto/asymmetric_keys/pgp_public_key.c:347: undefined reference to `public_key_subtype' ld: crypto/asymmetric_keys/pgp_public_key.c:357: undefined reference to `public_key_free' Unverified Error/Warning (likely false positive, kindly check if interested): drivers/platform/x86/intel_speed_select_if/isst_tpmi_core.c:100 isst_if_get_tpmi_instance_count() warn: potential spectre issue 'isst_common.sst_inst' [r] (local cap) drivers/platform/x86/intel_speed_select_if/isst_tpmi_core.c:104 isst_if_get_tpmi_instance_count() warn: possible spectre second half. 'sst_inst' drivers/thunderbolt/icm.o: warning: objtool: icm_fr_device_connected()+0x52c: unreachable instruction drivers/thunderbolt/switch.o: warning: objtool: tb_wait_for_port()+0x19f: unreachable instruction drivers/thunderbolt/tb.o: warning: objtool: tb_tunnel_pci()+0x31e: unreachable instruction Error/Warning ids grouped by kconfigs: recent_errors |-- arm64-randconfig-002-20241128 | |-- include-linux-string.h:warning:__builtin_strncpy-specified-bound-depends-on-the-length-of-the-source-argument | `-- mm-memcontrol.c:error:implicit-declaration-of-function-ksm_process_profit |-- arm64-randconfig-003-20241120 | `-- drivers-tty-tty_buffer.c:error:implicit-declaration-of-function-printk_safe_exit |-- x86_64-buildonly-randconfig-001-20241119 | `-- arch-x86-kernel-paravirt.c:error:use-of-undeclared-identifier-CALL_INSN_SIZE |-- x86_64-buildonly-randconfig-001-20241125 | |-- drivers-thunderbolt-icm.o:warning:objtool:icm_fr_device_connected:unreachable-instruction | |-- drivers-thunderbolt-switch.o:warning:objtool:tb_wait_for_port:unreachable-instruction | `-- drivers-thunderbolt-tb.o:warning:objtool:tb_tunnel_pci:unreachable-instruction |-- x86_64-buildonly-randconfig-003-20241128 | |-- drivers-net-ethernet-netswift-txgbe-txgbe_bp.c:warning:no-previous-prototype-for-chk_cl72_krtr_status | |-- drivers-net-ethernet-netswift-txgbe-txgbe_bp.c:warning:no-previous-prototype-for-en_cl72_krtr | |-- drivers-net-ethernet-netswift-txgbe-txgbe_bp.c:warning:no-previous-prototype-for-read_phy_lane_txeq | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-flash_erase_chip | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-flash_erase_sector | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-flash_read_dword | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-flash_write_dword | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-fmgr_cmd_op | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-fmgr_usr_cmd_op | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-txgbe_flash_read_cab | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-txgbe_flash_write_cab | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-txgbe_flash_write_lock | |-- drivers-net-ethernet-netswift-txgbe-txgbe_hw.c:warning:no-previous-prototype-for-txgbe_flash_write_unlock | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_check_for_ack_vf | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_check_for_bit_vf | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_check_for_msg_vf | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_check_for_rst_vf | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_obtain_mbx_lock_vf | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_read_mbx_vf | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_read_v2p_mailbox | |-- drivers-net-ethernet-netswift-txgbe-txgbe_mbx.c:warning:no-previous-prototype-for-txgbe_write_mbx_vf | |-- vmlinux.o:warning:objtool:do_machine_check:call-to-mce_no_way_out()-leaves-.noinstr.text-section | `-- vmlinux.o:warning:objtool:mce_setup:call-to-memset()-leaves-.noinstr.text-section |-- x86_64-buildonly-randconfig-005-20241119 | |-- arch-x86-kernel-paravirt.c:error:CALL_INSN_OPCODE-undeclared-(first-use-in-this-function) | `-- arch-x86-kernel-paravirt.c:error:implicit-declaration-of-function-__text_gen_insn |-- x86_64-buildonly-randconfig-006-20241128 | |-- arch-x86-kernel-paravirt.c:error:implicit-declaration-of-function-__text_gen_insn-Werror-Wimplicit-function-declaration | |-- arch-x86-kernel-paravirt.c:error:use-of-undeclared-identifier-CALL_INSN_SIZE | `-- mm-memcontrol.c:error:implicit-declaration-of-function-ksm_process_profit-Werror-Wimplicit-function-declaration |-- x86_64-kexec | `-- kernel-trace-trace_uprobe.o:warning:objtool:__uprobe_perf_func:unreachable-instruction |-- x86_64-randconfig-006-20241128 | `-- drivers-ptp-ptp_ines.c:warning:unused-variable-ines_ptp_ctrl_of_match |-- x86_64-randconfig-016-20241115 | `-- kernel-locking-lockdep.o:warning:objtool:lockdep_unregister_key:unreachable-instruction |-- x86_64-randconfig-074-20241119 | |-- crypto-asymmetric_keys-pgp_preload.c:undefined-reference-to-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_public_key.c:undefined-reference-to-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_public_key.c:undefined-reference-to-pgp_parse_public_key | |-- ld:crypto-asymmetric_keys-pgp_public_key.c:undefined-reference-to-pgp_to_public_key_algo | |-- ld:crypto-asymmetric_keys-pgp_public_key.c:undefined-reference-to-public_key_free | `-- ld:crypto-asymmetric_keys-pgp_public_key.c:undefined-reference-to-public_key_subtype |-- x86_64-randconfig-075-20241128 | `-- drivers-infiniband-ulp-rtrs-rtrs-clt.o:warning:objtool:rtrs_clt_info_rsp_done-falls-through-to-next-function-rcu_lock_acquire() `-- x86_64-randconfig-161-20241126 |-- drivers-platform-x86-intel_speed_select_if-isst_tpmi_core.c-isst_if_get_tpmi_instance_count()-warn:possible-spectre-second-half.-sst_inst `-- drivers-platform-x86-intel_speed_select_if-isst_tpmi_core.c-isst_if_get_tpmi_instance_count()-warn:potential-spectre-issue-isst_common.sst_inst-r-(local-cap) elapsed time: 731m configs tested: 34 configs skipped: 129 tested configs: arm64 allmodconfig clang-20 arm64 allnoconfig gcc-14.2.0 arm64 randconfig-001-20241128 clang-20 arm64 randconfig-002-20241128 gcc-14.2.0 arm64 randconfig-003-20241128 clang-20 arm64 randconfig-004-20241128 clang-16 x86_64 buildonly-randconfig-001-20241128 gcc-12 x86_64 buildonly-randconfig-002-20241128 gcc-12 x86_64 buildonly-randconfig-003-20241128 gcc-12 x86_64 buildonly-randconfig-004-20241128 gcc-12 x86_64 buildonly-randconfig-005-20241128 clang-19 x86_64 buildonly-randconfig-006-20241128 clang-19 x86_64 kexec clang-19 x86_64 randconfig-001-20241128 gcc-12 x86_64 randconfig-002-20241128 gcc-12 x86_64 randconfig-003-20241128 gcc-12 x86_64 randconfig-004-20241128 gcc-12 x86_64 randconfig-005-20241128 clang-19 x86_64 randconfig-006-20241128 clang-19 x86_64 randconfig-011-20241128 clang-19 x86_64 randconfig-012-20241128 clang-19 x86_64 randconfig-013-20241128 gcc-12 x86_64 randconfig-014-20241128 clang-19 x86_64 randconfig-015-20241128 clang-19 x86_64 randconfig-016-20241128 gcc-12 x86_64 randconfig-071-20241128 clang-19 x86_64 randconfig-072-20241128 gcc-12 x86_64 randconfig-073-20241128 gcc-12 x86_64 randconfig-074-20241128 gcc-12 x86_64 randconfig-075-20241128 clang-19 x86_64 randconfig-076-20241128 gcc-11 x86_64 rhel-9.4 gcc-12 x86_64 rhel-9.4-func gcc-12 x86_64 rhel-9.4-kselftests gcc-12 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 1559/1559] drivers/usb/host/xhci.h:2801:15: warning: argument 1 null where non-null expected
by kernel test robot 29 Nov '24

29 Nov '24
Hi ZhaoLong, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 1119ec49ac4ac643e6d7c9a5a834040aef87612e [1559/1559] mm, fs: Add BPF_READAHEAD build option for bpf readhead config: arm64-randconfig-004-20241129 (https://download.01.org/0day-ci/archive/20241129/202411290526.4JBRte8h-lkp@…) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290526.4JBRte8h-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290526.4JBRte8h-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/usb/host/xhci-trace.h:25, from drivers/usb/host/xhci-trace.c:12: In function 'xhci_decode_ep_context', inlined from 'trace_raw_output_xhci_log_ep_ctx' at drivers/usb/host/./xhci-trace.h:312:1: >> drivers/usb/host/xhci.h:2801:15: warning: argument 1 null where non-null expected [-Wnonnull] 2801 | ret = sprintf(str, "State %s mult %d max P. Streams %d %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2802 | xhci_ep_state_string(ep_state), mult, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2803 | max_pstr, lsa ? "LSA " : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:32, from include/linux/cpumask.h:10, from include/linux/smp.h:13, from include/linux/tracepoint.h:15, from drivers/usb/host/xhci-trace.h:24: include/linux/sprintf.h: In function 'trace_raw_output_xhci_log_ep_ctx': include/linux/sprintf.h:10:20: note: in a call to function 'sprintf' declared 'nonnull' 10 | __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); | ^~~~~~~ In function 'xhci_decode_ep_context', inlined from 'trace_raw_output_xhci_log_ep_ctx' at drivers/usb/host/./xhci-trace.h:312:1: >> drivers/usb/host/xhci.h:2801:15: warning: null destination pointer [-Wformat-overflow=] 2801 | ret = sprintf(str, "State %s mult %d max P. Streams %d %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2802 | xhci_ep_state_string(ep_state), mult, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2803 | max_pstr, lsa ? "LSA " : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/trace/define_trace.h:102, from drivers/usb/host/xhci-trace.h:622: drivers/usb/host/./xhci-trace.h: In function 'trace_raw_output_xhci_log_ep_ctx': >> drivers/usb/host/./xhci-trace.h:327:19: warning: '%s' directive argument is null [-Wformat-overflow=] 327 | TP_printk("%s", xhci_decode_ep_context(__get_buf(XHCI_MSG_MAX), | ^~~~ include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS' 203 | trace_event_printf(iter, print); \ | ^~~~~ drivers/usb/host/./xhci-trace.h:327:9: note: in expansion of macro 'TP_printk' 327 | TP_printk("%s", xhci_decode_ep_context(__get_buf(XHCI_MSG_MAX), | ^~~~~~~~~ In file included from include/trace/trace_events.h:237: drivers/usb/host/./xhci-trace.h:327:20: note: format string is defined here 327 | TP_printk("%s", xhci_decode_ep_context(__get_buf(XHCI_MSG_MAX), | ^~ In function 'xhci_decode_doorbell', inlined from 'trace_raw_output_xhci_log_doorbell' at drivers/usb/host/./xhci-trace.h:543:1: drivers/usb/host/xhci.h:2706:17: warning: argument 1 null where non-null expected [-Wnonnull] 2706 | sprintf(str, "Command Ring %d", doorbell); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/sprintf.h: In function 'trace_raw_output_xhci_log_doorbell': include/linux/sprintf.h:10:20: note: in a call to function 'sprintf' declared 'nonnull' 10 | __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); | ^~~~~~~ In function 'xhci_decode_doorbell', inlined from 'trace_raw_output_xhci_log_doorbell' at drivers/usb/host/./xhci-trace.h:543:1: drivers/usb/host/xhci.h:2709:15: warning: argument 1 null where non-null expected [-Wnonnull] 2709 | ret = sprintf(str, "Slot %d ", slot); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/sprintf.h: In function 'trace_raw_output_xhci_log_doorbell': include/linux/sprintf.h:10:20: note: in a call to function 'sprintf' declared 'nonnull' 10 | __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); | ^~~~~~~ In function 'xhci_decode_doorbell', inlined from 'trace_raw_output_xhci_log_doorbell' at drivers/usb/host/./xhci-trace.h:543:1: drivers/usb/host/xhci.h:2709:15: warning: null destination pointer [-Wformat-overflow=] 2709 | ret = sprintf(str, "Slot %d ", slot); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/host/xhci.h:2706:17: warning: null destination pointer [-Wformat-overflow=] 2706 | sprintf(str, "Command Ring %d", doorbell); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/host/./xhci-trace.h: In function 'trace_raw_output_xhci_log_doorbell': drivers/usb/host/./xhci-trace.h:554:19: warning: '%s' directive argument is null [-Wformat-overflow=] 554 | TP_printk("Ring doorbell for %s", | ^~~~~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS' 203 | trace_event_printf(iter, print); \ | ^~~~~ drivers/usb/host/./xhci-trace.h:554:9: note: in expansion of macro 'TP_printk' 554 | TP_printk("Ring doorbell for %s", | ^~~~~~~~~ drivers/usb/host/./xhci-trace.h:554:38: note: format string is defined here 554 | TP_printk("Ring doorbell for %s", | ^~ drivers/usb/host/xhci.h: In function 'xhci_decode_portsc.constprop': drivers/usb/host/xhci.h:2624:15: warning: argument 1 null where non-null expected [-Wnonnull] 2624 | ret = sprintf(str, "%s %s %s Link:%s PortSpeed:%d ", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2625 | portsc & PORT_POWER ? "Powered" : "Powered-off", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2626 | portsc & PORT_CONNECT ? "Connected" : "Not-connected", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2627 | portsc & PORT_PE ? "Enabled" : "Disabled", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2628 | xhci_portsc_link_state_string(portsc), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2629 | DEV_PORT_SPEED(portsc)); | ~~~~~~~~~~~~~~~~~~~~~~~ include/linux/sprintf.h:10:20: note: in a call to function 'sprintf' declared 'nonnull' 10 | __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); | ^~~~~~~ drivers/usb/host/xhci.h:2624:15: warning: null destination pointer [-Wformat-overflow=] 2624 | ret = sprintf(str, "%s %s %s Link:%s PortSpeed:%d ", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2625 | portsc & PORT_POWER ? "Powered" : "Powered-off", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2626 | portsc & PORT_CONNECT ? "Connected" : "Not-connected", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2627 | portsc & PORT_PE ? "Enabled" : "Disabled", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2628 | xhci_portsc_link_state_string(portsc), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2629 | DEV_PORT_SPEED(portsc)); | ~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/host/./xhci-trace.h: In function 'trace_raw_output_xhci_log_portsc': drivers/usb/host/./xhci-trace.h:522:31: warning: '%s' directive argument is null [-Wformat-overflow=] 522 | TP_printk("port-%d: %s", | ^~~~~~~~~~~~~ include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS' 203 | trace_event_printf(iter, print); \ | ^~~~~ drivers/usb/host/./xhci-trace.h:522:21: note: in expansion of macro 'TP_printk' 522 | TP_printk("port-%d: %s", | ^~~~~~~~~ drivers/usb/host/./xhci-trace.h:522:41: note: format string is defined here 522 | TP_printk("port-%d: %s", | ^~ In function 'xhci_decode_slot_context', inlined from 'trace_raw_output_xhci_log_slot_ctx' at drivers/usb/host/./xhci-trace.h:357:1: drivers/usb/host/xhci.h:2546:15: warning: argument 1 null where non-null expected [-Wnonnull] 2546 | ret = sprintf(str, "RS %05x %s%s%s Ctx Entries %d MEL %d us Port# %d/%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2547 | info & ROUTE_STRING_MASK, vim +2801 drivers/usb/host/xhci.h 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2763 4843b4b5ec64b8 Mathias Nyman 2021-08-20 2764 static inline const char *xhci_decode_ep_context(char *str, u32 info, 4843b4b5ec64b8 Mathias Nyman 2021-08-20 2765 u32 info2, u64 deq, u32 tx_info) 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2766 { 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2767 int ret; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2768 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2769 u32 esit; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2770 u16 maxp; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2771 u16 avg; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2772 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2773 u8 max_pstr; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2774 u8 ep_state; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2775 u8 interval; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2776 u8 ep_type; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2777 u8 burst; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2778 u8 cerr; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2779 u8 mult; 97ef0faf575e03 Mathias Nyman 2018-03-08 2780 97ef0faf575e03 Mathias Nyman 2018-03-08 2781 bool lsa; 97ef0faf575e03 Mathias Nyman 2018-03-08 2782 bool hid; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2783 76a14d7bf92960 Mathias Nyman 2017-09-18 2784 esit = CTX_TO_MAX_ESIT_PAYLOAD_HI(info) << 16 | 76a14d7bf92960 Mathias Nyman 2017-09-18 2785 CTX_TO_MAX_ESIT_PAYLOAD(tx_info); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2786 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2787 ep_state = info & EP_STATE_MASK; 97ef0faf575e03 Mathias Nyman 2018-03-08 2788 max_pstr = CTX_TO_EP_MAXPSTREAMS(info); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2789 interval = CTX_TO_EP_INTERVAL(info); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2790 mult = CTX_TO_EP_MULT(info) + 1; 97ef0faf575e03 Mathias Nyman 2018-03-08 2791 lsa = !!(info & EP_HAS_LSA); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2792 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2793 cerr = (info2 & (3 << 1)) >> 1; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2794 ep_type = CTX_TO_EP_TYPE(info2); 97ef0faf575e03 Mathias Nyman 2018-03-08 2795 hid = !!(info2 & (1 << 7)); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2796 burst = CTX_TO_MAX_BURST(info2); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2797 maxp = MAX_PACKET_DECODED(info2); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2798 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2799 avg = EP_AVG_TRB_LENGTH(tx_info); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2800 19a7d0d65c4a81 Felipe Balbi 2017-04-07 @2801 ret = sprintf(str, "State %s mult %d max P. Streams %d %s", 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2802 xhci_ep_state_string(ep_state), mult, 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2803 max_pstr, lsa ? "LSA " : ""); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2804 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2805 ret += sprintf(str + ret, "interval %d us max ESIT payload %d CErr %d ", 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2806 (1 << interval) * 125, esit, cerr); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2807 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2808 ret += sprintf(str + ret, "Type %s %sburst %d maxp %d deq %016llx ", 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2809 xhci_ep_type_string(ep_type), hid ? "HID" : "", 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2810 burst, maxp, deq); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2811 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2812 ret += sprintf(str + ret, "avg trb len %d", avg); 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2813 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2814 return str; 19a7d0d65c4a81 Felipe Balbi 2017-04-07 2815 } a37c3f76e6a6b5 Felipe Balbi 2017-01-23 2816 :::::: The code at line 2801 was first introduced by commit :::::: 19a7d0d65c4a813069f4bc4ca701d6a163c337e9 usb: host: xhci: add Slot and EP Context tracers :::::: TO: Felipe Balbi <felipe.balbi(a)linux.intel.com> :::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS] BUILD REGRESSION b5504db0db8375a77340b5bb54c17cfb75d3c754
by kernel test robot 29 Nov '24

29 Nov '24
tree/branch: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS branch HEAD: b5504db0db8375a77340b5bb54c17cfb75d3c754 !13879 Fix problems of mounting nfs Error/Warning (recently discovered and may have been fixed): https://lore.kernel.org/oe-kbuild-all/202411281817.JPJpYz6h-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202411282104.FiXTFZUn-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202411282147.aYnkuR6v-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202411282322.GQOVQGdk-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202411290101.y0Trpl2b-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202411290122.mcPBFrhU-lkp@intel.com arch/arm64/include/asm/irqflags.h:88:9: warning: 'flags' may be used uninitialized [-Wmaybe-uninitialized] arch/arm64/kernel/smp.c:1124:14: error: 'pmu_nmi_enable' undeclared (first use in this function); did you mean 'perf_pmu_enable'? arch/arm64/mm/init.c:784:17: error: 'mem_sleep_current' undeclared (first use in this function) arch/arm64/mm/init.c:790:17: error: 'pmu_nmi_enable' undeclared (first use in this function); did you mean 'cpuhp_smt_enable'? include/linux/uaccess.h:112:17: warning: 'kfw32' may be used uninitialized [-Wmaybe-uninitialized] include/linux/uaccess.h:112:17: warning: 'qp_ctx' may be used uninitialized [-Wmaybe-uninitialized] include/linux/uaccess.h:114:17: warning: 'args32' may be used uninitialized [-Wmaybe-uninitialized] include/linux/uaccess.h:115:17: warning: 'ioeventfd' may be used uninitialized [-Wmaybe-uninitialized] mm/mem_reliable.c:37:22: warning: 'zero' defined but not used [-Wunused-variable] Unverified Error/Warning (likely false positive, kindly check if interested): drivers/fpga/.tmp_dfl-fme-br.o: warning: objtool: missing symbol for section .init.text drivers/fpga/.tmp_dfl-fme-region.o: warning: objtool: missing symbol for section .init.text drivers/fpga/.tmp_dfl.o: warning: objtool: missing symbol for section .init.text drivers/usb/host/ehci-npcm7xx.o: warning: objtool: missing symbol for section .init.text Error/Warning ids grouped by kconfigs: recent_errors |-- arm64-randconfig-001-20241128 | |-- arch-arm64-include-asm-irqflags.h:warning:flags-may-be-used-uninitialized | |-- arch-arm64-mm-init.c:error:mem_sleep_current-undeclared-(first-use-in-this-function) | |-- include-linux-uaccess.h:warning:args32-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:buts-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:ces32-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:ctl-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:data32-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:ioeventfd-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:karg-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:karg32-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:kbuf-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:kfw32-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:ol_create-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:ol_viewport_set-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:qp_ctx-may-be-used-uninitialized | |-- include-linux-uaccess.h:warning:rdwr_arg-may-be-used-uninitialized | `-- include-linux-uaccess.h:warning:user_desc-may-be-used-uninitialized |-- arm64-randconfig-002-20241128 | `-- arch-arm64-kernel-smp.c:error:pmu_nmi_enable-undeclared-(first-use-in-this-function) |-- arm64-randconfig-003-20241128 | `-- drivers-nvme-host-core.c:error:expected-before-ptrval |-- arm64-randconfig-004-20241128 | |-- arch-arm64-mm-init.c:error:mem_sleep_current-undeclared-(first-use-in-this-function) | |-- arch-arm64-mm-init.c:error:pmu_nmi_enable-undeclared-(first-use-in-this-function) | |-- drivers-nvme-host-core.c:error:expected-before-ptrval | |-- drivers-tty-tty_buffer.c:error:implicit-declaration-of-function-printk_safe_enter | `-- mm-mem_reliable.c:warning:zero-defined-but-not-used |-- x86_64-buildonly-randconfig-002-20241117 | |-- drivers-fpga-.tmp_dfl-fme-br.o:warning:objtool:missing-symbol-for-section-.init.text | `-- drivers-fpga-.tmp_dfl-fme-region.o:warning:objtool:missing-symbol-for-section-.init.text |-- x86_64-buildonly-randconfig-003-20241128 | |-- block-.tmp_blk-rq-qos.o:warning:objtool:missing-symbol-for-section-.text | |-- crypto-.tmp_aegis128.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-fpga-.tmp_dfl-fme-br.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-fpga-.tmp_dfl-fme-main.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-fpga-.tmp_dfl-fme-mgr.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-gpu-drm-amd-amdgpu-.tmp_vega20_reg_init.o:warning:objtool:missing-symbol-for-section-.text | |-- drivers-media-i2c-.tmp_video-i2c.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-media-tuners-.tmp_qm1d1b0004.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-net-phy-.tmp_dp83tc811.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-net-phy-.tmp_mdio-mscc-miim.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-pci-controller-.tmp_vmd.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-pci-controller-dwc-.tmp_pcie-designware.o:warning:objtool:missing-symbol-for-section-.text | |-- drivers-regulator-.tmp_88pm800-regulator.o:warning:objtool:missing-symbol-for-section-.init.text | |-- fs-fscache-.tmp_stats.o:warning:objtool:missing-symbol-for-section-.text | |-- kernel-dma-.tmp_contiguous.o:warning:objtool:missing-symbol-for-section-.text | |-- net-ipv4-.tmp_netlink.o:warning:objtool:missing-symbol-for-section-.text | `-- net-netfilter-.tmp_nf_conntrack_ftp.o:warning:objtool:missing-symbol-for-section-.exit.text |-- x86_64-buildonly-randconfig-004-20241103 | `-- net-ipv6-ila-.tmp_ila_main.o:warning:objtool:missing-symbol-for-section-.init.text |-- x86_64-buildonly-randconfig-004-20241128 | |-- block-.tmp_blk-mq-debugfs-zoned.o:warning:objtool:missing-symbol-for-section-.text | |-- drivers-char-tpm-eventlog-.tmp_of.o:warning:objtool:missing-symbol-for-section-.text | |-- drivers-fpga-.tmp_dfl.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-fpga-.tmp_machxo2-spi.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-iio-chemical-.tmp_bme680_i2c.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-iio-chemical-.tmp_bme680_spi.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-iio-dac-.tmp_ti-dac5571.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-iio-light-.tmp_si1133.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-iio-light-.tmp_tsl2772.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-iio-resolver-.tmp_ad2s1200.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-leds-.tmp_leds-lm3601x.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-pinctrl-cirrus-.tmp_pinctrl-madera-core.o:warning:objtool:missing-symbol-for-section-.init.text | |-- drivers-regulator-.tmp_88pm800-regulator.o:warning:objtool:missing-symbol-for-section-.init.text | |-- fs-jfs-.tmp_super.o:warning:objtool:missing-symbol-for-section-.exit.text | |-- kernel-dma-.tmp_contiguous.o:warning:objtool:missing-symbol-for-section-.text | `-- kernel-sched-.tmp_pelt.o:warning:objtool:missing-symbol-for-section-.text |-- x86_64-buildonly-randconfig-005-20241128 | |-- kernel-sched-core.c:error:implicit-declaration-of-function-init_auto_affinity-Werror-Wimplicit-function-declaration | `-- kernel-sched-core.c:error:implicit-declaration-of-function-tg_update_affinity_domains-Werror-Wimplicit-function-declaration |-- x86_64-buildonly-randconfig-006-20241118 | `-- drivers-usb-host-ehci-npcm7xx.o:warning:objtool:missing-symbol-for-section-.init.text |-- x86_64-randconfig-071-20241128 | |-- kernel-sched-core.c:error:implicit-declaration-of-function-init_auto_affinity-Werror-Wimplicit-function-declaration | `-- kernel-sched-core.c:error:implicit-declaration-of-function-tg_update_affinity_domains-Werror-Wimplicit-function-declaration |-- x86_64-randconfig-076-20241128 | `-- arch-x86-mm-pgtable.c:warning:free_pmds.constprop-accessing-bytes-in-a-region-of-size `-- x86_64-rhel-9.4 `-- drivers-net-can-usb-kvaser_usb-kvaser_usb_hydra.c:warning:new_state-may-be-used-uninitialized elapsed time: 731m configs tested: 33 configs skipped: 129 tested configs: arm64 allmodconfig gcc-14.2.0 arm64 allnoconfig gcc-14.2.0 arm64 randconfig-001-20241128 gcc-14.2.0 arm64 randconfig-002-20241128 gcc-14.2.0 arm64 randconfig-003-20241128 gcc-14.2.0 arm64 randconfig-004-20241128 gcc-14.2.0 x86_64 buildonly-randconfig-001-20241128 gcc-12 x86_64 buildonly-randconfig-002-20241128 gcc-12 x86_64 buildonly-randconfig-003-20241128 gcc-12 x86_64 buildonly-randconfig-004-20241128 gcc-12 x86_64 buildonly-randconfig-005-20241128 clang-19 x86_64 buildonly-randconfig-006-20241128 clang-19 x86_64 kexec clang-19 x86_64 randconfig-001-20241128 gcc-12 x86_64 randconfig-002-20241128 gcc-12 x86_64 randconfig-003-20241128 gcc-12 x86_64 randconfig-004-20241128 gcc-12 x86_64 randconfig-005-20241128 clang-19 x86_64 randconfig-006-20241128 clang-19 x86_64 randconfig-011-20241128 clang-19 x86_64 randconfig-012-20241128 clang-19 x86_64 randconfig-013-20241128 gcc-12 x86_64 randconfig-014-20241128 clang-19 x86_64 randconfig-015-20241128 clang-19 x86_64 randconfig-016-20241128 gcc-12 x86_64 randconfig-071-20241128 clang-19 x86_64 randconfig-072-20241128 gcc-12 x86_64 randconfig-073-20241128 gcc-12 x86_64 randconfig-074-20241128 gcc-12 x86_64 randconfig-075-20241128 clang-19 x86_64 randconfig-076-20241128 gcc-11 x86_64 rhel-9.4 gcc-12 x86_64 rhel-9.4-func gcc-12 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 1559/1559] drivers/platform/mpam/mpam_devices.c:247:32: error: implicit declaration of function '__acpi_get_mem_attribute'
by kernel test robot 29 Nov '24

29 Nov '24
Hi James, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 3e9e723f3bf92a19e5e15dda89bbb136ce463294 [1559/1559] arm_mpam: Add probe/remove for mpam msc driver and kbuild boiler plate config: arm64-randconfig-004-20241129 (https://download.01.org/0day-ci/archive/20241129/202411290425.MTffltyg-lkp@…) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290425.MTffltyg-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290425.MTffltyg-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/slab.h:16, from include/linux/resource_ext.h:11, from include/linux/acpi.h:13, from drivers/platform/mpam/mpam_devices.c:6: drivers/platform/mpam/mpam_devices.c: In function 'mpam_msc_drv_probe': drivers/platform/mpam/mpam_devices.c:212:38: error: 'struct mpam_msc' has no member named 'mon_sel_lock'; did you mean 'part_sel_lock'? 212 | spin_lock_init(&msc->mon_sel_lock); | ^~~~~~~~~~~~ include/linux/spinlock.h:343:24: note: in definition of macro 'spin_lock_init' 343 | spinlock_check(_lock); \ | ^~~~~ drivers/platform/mpam/mpam_devices.c:212:38: error: 'struct mpam_msc' has no member named 'mon_sel_lock'; did you mean 'part_sel_lock'? 212 | spin_lock_init(&msc->mon_sel_lock); | ^~~~~~~~~~~~ include/linux/spinlock.h:344:11: note: in definition of macro 'spin_lock_init' 344 | *(_lock) = __SPIN_LOCK_UNLOCKED(_lock); \ | ^~~~~ >> drivers/platform/mpam/mpam_devices.c:247:32: error: implicit declaration of function '__acpi_get_mem_attribute' [-Wimplicit-function-declaration] 247 | prot = __acpi_get_mem_attribute(msc->pcc_chan->shmem_base_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/platform/mpam/mpam_devices.c:247:32: error: incompatible types when assigning to type 'pgprot_t' from type 'int' vim +/__acpi_get_mem_attribute +247 drivers/platform/mpam/mpam_devices.c 170 171 static int mpam_msc_drv_probe(struct platform_device *pdev) 172 { 173 int err; 174 pgprot_t prot; 175 void * __iomem io; 176 struct mpam_msc *msc; 177 struct resource *msc_res; 178 void *plat_data = pdev->dev.platform_data; 179 180 mutex_lock(&mpam_list_lock); 181 do { 182 msc = devm_kzalloc(&pdev->dev, sizeof(*msc), GFP_KERNEL); 183 if (!msc) { 184 err = -ENOMEM; 185 break; 186 } 187 188 INIT_LIST_HEAD_RCU(&msc->glbl_list); 189 msc->pdev = pdev; 190 191 err = device_property_read_u32(&pdev->dev, "arm,not-ready-us", 192 &msc->nrdy_usec); 193 if (err) { 194 /* This will prevent CSU monitors being usable */ 195 msc->nrdy_usec = 0; 196 } 197 198 err = get_msc_affinity(msc); 199 if (err) 200 break; 201 if (cpumask_empty(&msc->accessibility)) { 202 pr_err_once("msc:%u is not accessible from any CPU!", 203 msc->id); 204 err = -EINVAL; 205 break; 206 } 207 208 mutex_init(&msc->lock); 209 msc->id = mpam_num_msc++; 210 INIT_LIST_HEAD_RCU(&msc->ris); 211 spin_lock_init(&msc->part_sel_lock); > 212 spin_lock_init(&msc->mon_sel_lock); 213 214 if (device_property_read_u32(&pdev->dev, "pcc-channel", 215 &msc->pcc_subspace_id)) 216 msc->iface = MPAM_IFACE_MMIO; 217 else 218 msc->iface = MPAM_IFACE_PCC; 219 220 if (msc->iface == MPAM_IFACE_MMIO) { 221 io = devm_platform_get_and_ioremap_resource(pdev, 0, 222 &msc_res); 223 if (IS_ERR(io)) { 224 pr_err("Failed to map MSC base address\n"); 225 devm_kfree(&pdev->dev, msc); 226 err = PTR_ERR(io); 227 break; 228 } 229 msc->mapped_hwpage_sz = msc_res->end - msc_res->start; 230 msc->mapped_hwpage = io; 231 } else if (msc->iface == MPAM_IFACE_PCC) { 232 msc->pcc_cl.dev = &pdev->dev; 233 msc->pcc_cl.rx_callback = mpam_pcc_rx_callback; 234 msc->pcc_cl.tx_block = false; 235 msc->pcc_cl.tx_tout = 1000; /* 1s */ 236 msc->pcc_cl.knows_txdone = false; 237 238 msc->pcc_chan = pcc_mbox_request_channel(&msc->pcc_cl, 239 msc->pcc_subspace_id); 240 if (IS_ERR(msc->pcc_chan)) { 241 pr_err("Failed to request MSC PCC channel\n"); 242 devm_kfree(&pdev->dev, msc); 243 err = PTR_ERR(msc->pcc_chan); 244 break; 245 } 246 > 247 prot = __acpi_get_mem_attribute(msc->pcc_chan->shmem_base_addr); 248 io = ioremap_prot(msc->pcc_chan->shmem_base_addr, 249 msc->pcc_chan->shmem_size, pgprot_val(prot)); 250 if (IS_ERR(io)) { 251 pr_err("Failed to map MSC base address\n"); 252 pcc_mbox_free_channel(msc->pcc_chan); 253 devm_kfree(&pdev->dev, msc); 254 err = PTR_ERR(io); 255 break; 256 } 257 258 /* TODO: issue a read to update the registers */ 259 260 msc->mapped_hwpage_sz = msc->pcc_chan->shmem_size; 261 msc->mapped_hwpage = io + sizeof(struct acpi_pcct_shared_memory); 262 } 263 264 list_add_rcu(&msc->glbl_list, &mpam_all_msc); 265 platform_set_drvdata(pdev, msc); 266 } while (0); 267 mutex_unlock(&mpam_list_lock); 268 269 if (!err) { 270 /* Create RIS entries described by firmware */ 271 if (!acpi_disabled) 272 err = acpi_mpam_parse_resources(msc, plat_data); 273 else 274 err = mpam_dt_parse_resources(msc, plat_data); 275 } 276 277 if (!err && fw_num_msc == mpam_num_msc) 278 mpam_discovery_complete(); 279 280 return err; 281 } 282 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 1559/1559] kernel/cgroup/cgroup.c:3968:29: error: 'cgroup_psi_stat_show' undeclared here (not in a function); did you mean 'cgroup_stat_show'?
by kernel test robot 29 Nov '24

29 Nov '24
Hi Lu, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 4a69b56540f40550585b9f93c35e415ac90bdecc [1559/1559] sched/psi: Introduce pressure.stat in psi config: loongarch-randconfig-001-20241129 (https://download.01.org/0day-ci/archive/20241129/202411290300.aJLGkB0L-lkp@…) compiler: loongarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290300.aJLGkB0L-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290300.aJLGkB0L-lkp@intel.com/ All errors (new ones prefixed by >>): >> kernel/cgroup/cgroup.c:3968:29: error: 'cgroup_psi_stat_show' undeclared here (not in a function); did you mean 'cgroup_stat_show'? 3968 | .seq_show = cgroup_psi_stat_show, | ^~~~~~~~~~~~~~~~~~~~ | cgroup_stat_show vim +3968 kernel/cgroup/cgroup.c 3929 3930 struct cftype cgroup_v1_psi_files[] = { 3931 { 3932 .name = "io.pressure", 3933 .flags = CFTYPE_NO_PREFIX, 3934 .seq_show = cgroup_io_pressure_show, 3935 .write = cgroup_io_pressure_write, 3936 .poll = cgroup_pressure_poll, 3937 .release = cgroup_pressure_release, 3938 }, 3939 { 3940 .name = "memory.pressure", 3941 .flags = CFTYPE_NO_PREFIX, 3942 .seq_show = cgroup_memory_pressure_show, 3943 .write = cgroup_memory_pressure_write, 3944 .poll = cgroup_pressure_poll, 3945 .release = cgroup_pressure_release, 3946 }, 3947 { 3948 .name = "cpu.pressure", 3949 .flags = CFTYPE_NO_PREFIX, 3950 .seq_show = cgroup_cpu_pressure_show, 3951 .write = cgroup_cpu_pressure_write, 3952 .poll = cgroup_pressure_poll, 3953 .release = cgroup_pressure_release, 3954 }, 3955 #ifdef CONFIG_IRQ_TIME_ACCOUNTING 3956 { 3957 .name = "irq.pressure", 3958 .flags = CFTYPE_NO_PREFIX, 3959 .seq_show = cgroup_irq_pressure_show, 3960 .write = cgroup_irq_pressure_write, 3961 .poll = cgroup_pressure_poll, 3962 .release = cgroup_pressure_release, 3963 }, 3964 #endif 3965 { 3966 .name = "pressure.stat", 3967 .flags = CFTYPE_NO_PREFIX, > 3968 .seq_show = cgroup_psi_stat_show, 3969 }, 3970 { } /* terminate */ 3971 }; 3972 #endif 3973 #else /* CONFIG_PSI */ 3974 bool cgroup_psi_enabled(void) 3975 { 3976 return false; 3977 } 3978 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 1559/1559] fs/proc/etmem_scan.c:1261:45: warning: suggest braces around empty body in an 'else' statement
by kernel test robot 29 Nov '24

29 Nov '24
Hi Yuchen, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 5d3b64fd78b80ec49285f2186e7b5ac5850f76e4 [1559/1559] etmem: add etmem scan feature config: arm64-randconfig-004-20241129 (https://download.01.org/0day-ci/archive/20241129/202411290357.Wpqw01PB-lkp@…) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290357.Wpqw01PB-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290357.Wpqw01PB-lkp@intel.com/ All warnings (new ones prefixed by >>): fs/proc/etmem_scan.c: In function 'mm_idle_walk_range': fs/proc/etmem_scan.c:1258:61: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1258 | pic->next_hva, end); | ^ >> fs/proc/etmem_scan.c:1261:45: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] 1261 | debug_printk("nothing read"); | ^ vim +/else +1261 fs/proc/etmem_scan.c 1216 1217 static int mm_idle_walk_range(struct page_idle_ctrl *pic, 1218 unsigned long start, 1219 unsigned long end, 1220 struct mm_walk *walk) 1221 { 1222 struct vm_area_struct *vma; 1223 int ret = 0; 1224 1225 ret = init_page_idle_ctrl_buffer(pic); 1226 if (ret) 1227 return ret; 1228 1229 for (; start < end;) { 1230 mmap_read_lock(walk->mm); 1231 vma = find_vma(walk->mm, start); 1232 if (vma) { 1233 if (end > vma->vm_start) { 1234 local_irq_disable(); 1235 ret = walk_page_range(walk->mm, start, end, 1236 walk->ops, walk->private); 1237 local_irq_enable(); 1238 } else 1239 set_restart_gpa(vma->vm_start, "VMA-HOLE"); 1240 } else 1241 set_restart_gpa(TASK_SIZE, "EOF"); 1242 mmap_read_unlock(walk->mm); 1243 WARN_ONCE(pic->gpa_to_hva, "non-zero gpa_to_hva"); 1244 if (ret != PAGE_IDLE_KBUF_FULL && end > pic->restart_gpa) 1245 pic->restart_gpa = end; 1246 start = pic->restart_gpa; 1247 ret = page_idle_copy_user(pic, start, end); 1248 if (ret) 1249 break; 1250 } 1251 1252 if (start > pic->next_hva) 1253 set_next_hva(start, "NEXT-START"); 1254 1255 if (pic->bytes_copied) { 1256 if (ret != PAGE_IDLE_BUF_FULL && pic->next_hva < end) 1257 debug_printk("partial scan: next_hva=%pK end=%pK\n", 1258 pic->next_hva, end); 1259 ret = 0; 1260 } else > 1261 debug_printk("nothing read"); 1262 return ret; 1263 } 1264 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 1540/1540] kernel/sched/bpf_sched.c:187:17: warning: no previous prototype for function 'bpf_sched_entity_is_task'
by kernel test robot 29 Nov '24

29 Nov '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 6f06e093b3708dcee5b7e4f0478e0206bc601da1 [1540/1540] sched/ebpf: Support task selection programmable config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20241129/202411290245.YQeCUdgI-lkp@…) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290245.YQeCUdgI-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290245.YQeCUdgI-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/sched/build_utility.c:24: In file included from include/linux/cpuset.h:17: In file included from include/linux/mm.h:2247: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from kernel/sched/build_utility.c:113: >> kernel/sched/bpf_sched.c:187:17: warning: no previous prototype for function 'bpf_sched_entity_is_task' [-Wmissing-prototypes] 187 | __bpf_kfunc int bpf_sched_entity_is_task(struct sched_entity *se) | ^ kernel/sched/bpf_sched.c:187:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 187 | __bpf_kfunc int bpf_sched_entity_is_task(struct sched_entity *se) | ^ | static >> kernel/sched/bpf_sched.c:195:33: warning: no previous prototype for function 'bpf_sched_entity_to_task' [-Wmissing-prototypes] 195 | __bpf_kfunc struct task_struct *bpf_sched_entity_to_task(struct sched_entity *se) | ^ kernel/sched/bpf_sched.c:195:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 195 | __bpf_kfunc struct task_struct *bpf_sched_entity_to_task(struct sched_entity *se) | ^ | static >> kernel/sched/bpf_sched.c:203:18: warning: no previous prototype for function 'bpf_sched_tag_of_entity' [-Wmissing-prototypes] 203 | __bpf_kfunc long bpf_sched_tag_of_entity(struct sched_entity *se) | ^ kernel/sched/bpf_sched.c:203:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 203 | __bpf_kfunc long bpf_sched_tag_of_entity(struct sched_entity *se) | ^ | static 8 warnings generated. vim +/bpf_sched_entity_is_task +187 kernel/sched/bpf_sched.c 186 > 187 __bpf_kfunc int bpf_sched_entity_is_task(struct sched_entity *se) 188 { 189 if (!se) 190 return -EINVAL; 191 192 return entity_is_task(se); 193 } 194 > 195 __bpf_kfunc struct task_struct *bpf_sched_entity_to_task(struct sched_entity *se) 196 { 197 if (se && entity_is_task(se)) 198 return task_of(se); 199 200 return NULL; 201 } 202 > 203 __bpf_kfunc long bpf_sched_tag_of_entity(struct sched_entity *se) 204 { 205 if (!se) 206 return -EINVAL; 207 208 if (entity_is_task(se)) 209 return task_of(se)->tag; 210 211 return group_cfs_rq(se)->tg->tag; 212 } 213 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1315/1315] include/linux/uaccess.h:112:17: warning: 'qp_ctx' may be used uninitialized
by kernel test robot 29 Nov '24

29 Nov '24
Hi wangyuan, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: b5504db0db8375a77340b5bb54c17cfb75d3c754 commit: 267bce716c1008522c3b8ddbeac8d3c65514e98f [1315/1315] crypto: hisilicon/qm - drop unnecessary IS_ENABLE(CONFIG_NUMA) check config: arm64-randconfig-001-20241128 (https://download.01.org/0day-ci/archive/20241129/202411290122.mcPBFrhU-lkp@…) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290122.mcPBFrhU-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411290122.mcPBFrhU-lkp@intel.com/ Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): In file included from include/linux/poll.h:12, from include/linux/rtc.h:52, from include/linux/efi.h:20, from arch/arm64/include/asm/acpi.h:15, from include/acpi/acpi_io.h:7, from include/linux/acpi.h:47, from drivers/crypto/hisilicon/qm.c:4: In function '_copy_from_user', inlined from 'copy_from_user' at include/linux/uaccess.h:144:7, inlined from 'hisi_qm_uacce_ioctl' at drivers/crypto/hisilicon/qm.c:2280:7: >> include/linux/uaccess.h:112:17: warning: 'qp_ctx' may be used uninitialized [-Wmaybe-uninitialized] 112 | kasan_check_write(to, n); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/compiler.h:265, from arch/arm64/include/asm/memory.h:24, from arch/arm64/include/asm/page.h:52, from drivers/crypto/hisilicon/qm.c:3: include/linux/kasan-checks.h: In function 'hisi_qm_uacce_ioctl': include/linux/kasan-checks.h:7:6: note: by argument 1 of type 'const volatile void *' to 'kasan_check_write' declared here 7 | void kasan_check_write(const volatile void *p, unsigned int size); | ^~~~~~~~~~~~~~~~~ drivers/crypto/hisilicon/qm.c:2277:28: note: 'qp_ctx' declared here 2277 | struct hisi_qp_ctx qp_ctx; | ^~~~~~ drivers/crypto/hisilicon/qm.c:3322: warning: Excess function parameter 'ce' description in 'qm_hw_error_init' drivers/crypto/hisilicon/qm.c:3322: warning: Excess function parameter 'nfe' description in 'qm_hw_error_init' drivers/crypto/hisilicon/qm.c:3322: warning: Excess function parameter 'fe' description in 'qm_hw_error_init' drivers/crypto/hisilicon/qm.c:3322: warning: Excess function parameter 'msi' description in 'qm_hw_error_init' vim +/qp_ctx +112 include/linux/uaccess.h d597580d373774 Al Viro 2017-03-20 104 d597580d373774 Al Viro 2017-03-20 105 #ifdef INLINE_COPY_FROM_USER d597580d373774 Al Viro 2017-03-20 106 static inline unsigned long d597580d373774 Al Viro 2017-03-20 107 _copy_from_user(void *to, const void __user *from, unsigned long n) d597580d373774 Al Viro 2017-03-20 108 { d597580d373774 Al Viro 2017-03-20 109 unsigned long res = n; 9c5f6908de03a4 Al Viro 2017-06-29 110 might_fault(); 4983cb67a383a7 Linus Torvalds 2019-02-14 111 if (likely(access_ok(from, n))) { 9c5f6908de03a4 Al Viro 2017-06-29 @112 kasan_check_write(to, n); d597580d373774 Al Viro 2017-03-20 113 res = raw_copy_from_user(to, from, n); 9c5f6908de03a4 Al Viro 2017-06-29 114 } d597580d373774 Al Viro 2017-03-20 115 if (unlikely(res)) d597580d373774 Al Viro 2017-03-20 116 memset(to + (n - res), 0, res); d597580d373774 Al Viro 2017-03-20 117 return res; d597580d373774 Al Viro 2017-03-20 118 } d597580d373774 Al Viro 2017-03-20 119 #else d597580d373774 Al Viro 2017-03-20 120 extern unsigned long d597580d373774 Al Viro 2017-03-20 121 _copy_from_user(void *, const void __user *, unsigned long); d597580d373774 Al Viro 2017-03-20 122 #endif d597580d373774 Al Viro 2017-03-20 123 d597580d373774 Al Viro 2017-03-20 124 #ifdef INLINE_COPY_TO_USER d597580d373774 Al Viro 2017-03-20 125 static inline unsigned long d597580d373774 Al Viro 2017-03-20 126 _copy_to_user(void __user *to, const void *from, unsigned long n) d597580d373774 Al Viro 2017-03-20 127 { 9c5f6908de03a4 Al Viro 2017-06-29 128 might_fault(); 4983cb67a383a7 Linus Torvalds 2019-02-14 129 if (access_ok(to, n)) { 9c5f6908de03a4 Al Viro 2017-06-29 130 kasan_check_read(from, n); d597580d373774 Al Viro 2017-03-20 131 n = raw_copy_to_user(to, from, n); 9c5f6908de03a4 Al Viro 2017-06-29 132 } d597580d373774 Al Viro 2017-03-20 133 return n; d597580d373774 Al Viro 2017-03-20 134 } d597580d373774 Al Viro 2017-03-20 135 #else d597580d373774 Al Viro 2017-03-20 136 extern unsigned long d597580d373774 Al Viro 2017-03-20 137 _copy_to_user(void __user *, const void *, unsigned long); d597580d373774 Al Viro 2017-03-20 138 #endif d597580d373774 Al Viro 2017-03-20 139 d597580d373774 Al Viro 2017-03-20 140 static __always_inline unsigned long __must_check d597580d373774 Al Viro 2017-03-20 141 copy_from_user(void *to, const void __user *from, unsigned long n) d597580d373774 Al Viro 2017-03-20 142 { b0377fedb65280 Al Viro 2017-06-29 143 if (likely(check_copy_size(to, n, false))) d597580d373774 Al Viro 2017-03-20 @144 n = _copy_from_user(to, from, n); d597580d373774 Al Viro 2017-03-20 145 return n; d597580d373774 Al Viro 2017-03-20 146 } d597580d373774 Al Viro 2017-03-20 147 :::::: The code at line 112 was first introduced by commit :::::: 9c5f6908de03a4f52ba7364b11fcd6116225480c copy_{from,to}_user(): move kasan checks and might_fault() out-of-line :::::: TO: Al Viro <viro(a)zeniv.linux.org.uk> :::::: CC: Al Viro <viro(a)zeniv.linux.org.uk> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • ...
  • 1828
  • Older →

HyperKitty Powered by HyperKitty