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 -----
  • August
  • July
  • June
  • 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

  • 43 participants
  • 19804 discussions
[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:97:18: warning: no previous prototype for function 'bpf_seq_file_append'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 1afa15e45da121993a15941b08fef5e3d58f40e5 [2679/2679] bpf-rvi: Add bpf_seq_file_append() kfunc config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150748.bPjkF4cw-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150748.bPjkF4cw-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/202508150748.bPjkF4cw-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/bpf-rvi/common_kfuncs.c:20:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] 20 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ kernel/bpf-rvi/common_kfuncs.c:20:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 20 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ | static kernel/bpf-rvi/common_kfuncs.c:29:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes] 29 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ kernel/bpf-rvi/common_kfuncs.c:29:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 29 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ | static kernel/bpf-rvi/common_kfuncs.c:34:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] 34 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:34:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 34 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:48:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes] 48 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:48:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 48 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:77:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes] 77 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ kernel/bpf-rvi/common_kfuncs.c:77:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 77 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ | static kernel/bpf-rvi/common_kfuncs.c:87:27: warning: no previous prototype for function 'bpf_page_counter_read' [-Wmissing-prototypes] 87 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) | ^ kernel/bpf-rvi/common_kfuncs.c:87:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 87 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) | ^ | static >> kernel/bpf-rvi/common_kfuncs.c:97:18: warning: no previous prototype for function 'bpf_seq_file_append' [-Wmissing-prototypes] 97 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src) | ^ kernel/bpf-rvi/common_kfuncs.c:97:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 97 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src) | ^ | static 7 warnings generated. vim +/bpf_seq_file_append +97 kernel/bpf-rvi/common_kfuncs.c 91 92 /* 93 * Stat related kfuncs 94 */ 95 96 /* Moving src's content to the end of dst. Reference: seq_vprintf. */ > 97 __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src) 98 { 99 /* 100 * ->count: length of content 101 * ->size: available buffer space 102 * i.e. seq_printf(dst, "%s", src->buf) 103 */ 104 if (dst->count < dst->size) 105 if (src->count < dst->size - dst->count) { 106 memmove(dst->buf + dst->count, src->buf, src->count); 107 dst->count += src->count; 108 } 109 } 110 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:86:27: warning: no previous prototype for function 'bpf_page_counter_read'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 5e4cec4acb12a17b26d4d2ae4c29eb29b017f854 [2679/2679] bpf-rvi: Add bpf_page_counter_read() kfunc config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150534.p34D4hUR-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150534.p34D4hUR-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/202508150534.p34D4hUR-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/bpf-rvi/common_kfuncs.c:19:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] 19 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ kernel/bpf-rvi/common_kfuncs.c:19:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 19 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ | static kernel/bpf-rvi/common_kfuncs.c:28:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes] 28 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ kernel/bpf-rvi/common_kfuncs.c:28:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 28 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ | static kernel/bpf-rvi/common_kfuncs.c:33:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] 33 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:33:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 33 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:47:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes] 47 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:47:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 47 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:76:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes] 76 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ kernel/bpf-rvi/common_kfuncs.c:76:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 76 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ | static >> kernel/bpf-rvi/common_kfuncs.c:86:27: warning: no previous prototype for function 'bpf_page_counter_read' [-Wmissing-prototypes] 86 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) | ^ kernel/bpf-rvi/common_kfuncs.c:86:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 86 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) | ^ | static 6 warnings generated. vim +/bpf_page_counter_read +86 kernel/bpf-rvi/common_kfuncs.c 85 > 86 __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) 87 { 88 return page_counter_read(counter); 89 } 90 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6] BUILD SUCCESS WITH WARNING 43d8c124ec4624389b14d42595e5f0195e3e5a1d
by kernel test robot 15 Aug '25

15 Aug '25
tree/branch: https://gitee.com/openeuler/kernel.git OLK-6.6 branch HEAD: 43d8c124ec4624389b14d42595e5f0195e3e5a1d !17526 v7 High Performance Container Resource View Isolation -- Stage 2 Warning (recently discovered and may have been fixed): https://lore.kernel.org/oe-kbuild-all/202507161941.gk9sOp8j-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202507162216.3Q6gsro5-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508022134.uLbgotjO-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508081825.fqBn1XgA-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508120456.fFlvJz72-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508121448.yD6lHdJT-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508121611.xU3A9CdS-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508121628.Gr4EiznB-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508130030.33T0AvPU-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508131219.yqnWOPOr-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508141753.fScbJysb-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508141840.Hfv7lhHI-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508141929.x8zAFTUd-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508142059.0te3dxlW-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508142117.RpbHh5Ge-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508142302.3YamVK7A-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508150054.NTqDP4S0-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508150150.V6YiO7Tg-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508150218.QwK6mXQc-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508150235.tTN5yutB-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508150236.ujeyp9cP-lkp@intel.com https://lore.kernel.org/oe-kbuild-all/202508150337.G6kzMMhf-lkp@intel.com arch/arm64/kernel/bpf-rvi.c:28:25: warning: no previous prototype for function 'bpf_arch_flags' [-Wmissing-prototypes] arch/arm64/kernel/bpf-rvi.c:8:6: warning: no previous prototype for function 'bpf_arm64_cpu_have_feature' [-Wmissing-prototypes] arch/arm64/kernel/prefer_numa.c:13:5: warning: no previous prototype for function 'is_prefer_numa' [-Wmissing-prototypes] arch/arm64/kvm/arm.c:569:5: warning: no previous prototype for function 'kvm_arch_rec_init' [-Wmissing-prototypes] arch/arm64/kvm/cca_base.c:52:6: warning: no previous prototype for function 'set_cca_cvm_type' [-Wmissing-prototypes] arch/arm64/kvm/rme.c:1022:6: warning: variable 'tmp_page' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] arch/arm64/kvm/rme.c:1080:16: warning: variable 'data_flags' set but not used [-Wunused-but-set-variable] arch/arm64/kvm/virtcca_cvm.c:991:5: warning: no previous prototype for function 'kvm_cvm_vgic_nr_lr' [-Wmissing-prototypes] arch/x86/mm/pat/set_memory.c:127:22: warning: no previous prototype for function 'x86_get_direct_pages_count' [-Wmissing-prototypes] block/blk-cgroup.c:2320:18: warning: no previous prototype for function 'bpf_blkcg_get_dev_iostat' [-Wmissing-prototypes] block/genhd.c:100:6: warning: no previous prototype for 'part_stat_read_all' [-Wmissing-prototypes] block/genhd.c:100:6: warning: no previous prototype for function 'part_stat_read_all' [-Wmissing-prototypes] crypto/asymmetric_keys/pgp_library.c:189: warning: Excess function parameter '_data' description in 'pgp_parse_packets' crypto/asymmetric_keys/pgp_library.c:189: warning: Excess function parameter '_datalen' description in 'pgp_parse_packets' crypto/asymmetric_keys/pgp_library.c:189: warning: Function parameter or member 'data' not described in 'pgp_parse_packets' crypto/asymmetric_keys/pgp_library.c:189: warning: Function parameter or member 'datalen' not described in 'pgp_parse_packets' drivers/net/ethernet/huawei/bma/edma_drv/edma_queue.c:330:5: warning: no previous prototype for function 'wait_done_dma_queue' [-Wmissing-prototypes] fs/nfs/enfs/shard_route.c:249: warning: Function parameter or member '__list_name' not described in 'DEFINE_CLEAR_LIST_FUNC' fs/nfs/enfs/shard_route.c:249: warning: Function parameter or member '__struct_name' not described in 'DEFINE_CLEAR_LIST_FUNC' fs/nfs/enfs/shard_route.c:249: warning: expecting prototype for enfs_clear_ ## __struct_name()(). Prototype was for DEFINE_CLEAR_LIST_FUNC() instead fs/proc/stat.c:224:17: warning: no previous prototype for function 'bpf_get_idle_time' [-Wmissing-prototypes] fs/proc/stat.c:227:17: warning: no previous prototype for function 'bpf_get_idle_time' [-Wmissing-prototypes] fs/proc/stat.c:229:17: warning: no previous prototype for function 'bpf_get_iowait_time' [-Wmissing-prototypes] fs/proc/stat.c:232:17: warning: no previous prototype for function 'bpf_get_iowait_time' [-Wmissing-prototypes] include/linux/fortify-string.h:57:33: warning: '__builtin_memcpy' reading between 65 and 536870912 bytes from a region of size 64 [-Wstringop-overread] kernel/bpf-rvi/common_kfuncs.c:12:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] kernel/bpf-rvi/common_kfuncs.c:24:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes] kernel/bpf-rvi/common_kfuncs.c:29:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] kernel/bpf-rvi/common_kfuncs.c:29:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] kernel/bpf-rvi/common_kfuncs.c:43:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes] kernel/bpf-rvi/common_kfuncs.c:75:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes] kernel/cgroup/ifs.c:400:6: warning: variable 'start' set but not used [-Wunused-but-set-variable] kernel/locking/mutex.c:623:6: warning: variable 'ifs_clock' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] kernel/sched/bpf_sched.c:213:17: warning: no previous prototype for function 'bpf_sched_set_task_prefer_nid' [-Wmissing-prototypes] kernel/sched/cpuacct.c:412:18: warning: no previous prototype for function 'bpf_cpuacct_kcpustat_cpu_fetch' [-Wmissing-prototypes] kernel/sched/cpuacct.c:417:17: warning: no previous prototype for function 'bpf_task_ca_cpuusage' [-Wmissing-prototypes] kernel/sched/cpuacct.c:424:18: warning: no previous prototype for function 'bpf_cpuacct_kcpustat_cpu_fetch' [-Wmissing-prototypes] kernel/sched/debug.c:102:12: warning: no previous prototype for function 'is_prefer_numa' [-Wmissing-prototypes] Warning ids grouped by kconfigs: recent_errors |-- arm64-allmodconfig | |-- arch-arm64-kernel-bpf-rvi.c:warning:no-previous-prototype-for-function-bpf_arch_flags | |-- arch-arm64-kernel-bpf-rvi.c:warning:no-previous-prototype-for-function-bpf_arm64_cpu_have_feature | |-- arch-arm64-kernel-prefer_numa.c:warning:no-previous-prototype-for-function-is_prefer_numa | |-- arch-arm64-kvm-arm.c:warning:no-previous-prototype-for-function-kvm_arch_rec_init | |-- arch-arm64-kvm-cca_base.c:warning:no-previous-prototype-for-function-set_cca_cvm_type | |-- arch-arm64-kvm-rme.c:warning:variable-data_flags-set-but-not-used | |-- arch-arm64-kvm-rme.c:warning:variable-tmp_page-is-used-uninitialized-whenever-if-condition-is-true | |-- arch-arm64-kvm-virtcca_cvm.c:warning:no-previous-prototype-for-function-kvm_cvm_vgic_nr_lr | |-- block-blk-cgroup.c:warning:no-previous-prototype-for-function-bpf_blkcg_get_dev_iostat | |-- block-genhd.c:warning:no-previous-prototype-for-function-part_stat_read_all | |-- crypto-asymmetric_keys-pgp_library.c:warning:Excess-function-parameter-_data-description-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Excess-function-parameter-_datalen-description-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Function-parameter-or-member-data-not-described-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Function-parameter-or-member-datalen-not-described-in-pgp_parse_packets | |-- drivers-net-ethernet-huawei-bma-edma_drv-edma_queue.c:warning:no-previous-prototype-for-function-wait_done_dma_queue | |-- fs-nfs-enfs-shard_route.c:warning:Function-parameter-or-member-__list_name-not-described-in-DEFINE_CLEAR_LIST_FUNC | |-- fs-nfs-enfs-shard_route.c:warning:Function-parameter-or-member-__struct_name-not-described-in-DEFINE_CLEAR_LIST_FUNC | |-- fs-nfs-enfs-shard_route.c:warning:expecting-prototype-for-enfs_clear_-__struct_name()().-Prototype-was-for-DEFINE_CLEAR_LIST_FUNC()-instead | |-- fs-proc-stat.c:warning:no-previous-prototype-for-function-bpf_get_idle_time | |-- fs-proc-stat.c:warning:no-previous-prototype-for-function-bpf_get_iowait_time | |-- kernel-bpf-rvi-common_kfuncs.c:warning:no-previous-prototype-for-function-bpf_mem_cgroup_from_task | |-- kernel-cgroup-ifs.c:warning:variable-start-set-but-not-used | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_set_task_prefer_nid | |-- kernel-sched-cpuacct.c:warning:no-previous-prototype-for-function-bpf_cpuacct_kcpustat_cpu_fetch | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- arm64-allnoconfig | `-- block-genhd.c:warning:no-previous-prototype-for-part_stat_read_all |-- arm64-randconfig-001-20250814 | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- arm64-randconfig-004-20250814 | |-- block-genhd.c:warning:no-previous-prototype-for-part_stat_read_all | `-- include-linux-fortify-string.h:warning:__builtin_memcpy-reading-between-and-bytes-from-a-region-of-size |-- loongarch-allmodconfig | |-- block-blk-cgroup.c:warning:no-previous-prototype-for-function-bpf_blkcg_get_dev_iostat | |-- block-genhd.c:warning:no-previous-prototype-for-function-part_stat_read_all | |-- crypto-asymmetric_keys-pgp_library.c:warning:Excess-function-parameter-_data-description-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Excess-function-parameter-_datalen-description-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Function-parameter-or-member-data-not-described-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Function-parameter-or-member-datalen-not-described-in-pgp_parse_packets | |-- drivers-net-ethernet-huawei-bma-edma_drv-edma_queue.c:warning:no-previous-prototype-for-function-wait_done_dma_queue | |-- fs-proc-stat.c:warning:no-previous-prototype-for-function-bpf_get_idle_time | |-- fs-proc-stat.c:warning:no-previous-prototype-for-function-bpf_get_iowait_time | |-- kernel-bpf-rvi-common_kfuncs.c:warning:no-previous-prototype-for-function-bpf_mem_cgroup_from_task | |-- kernel-bpf-rvi-common_kfuncs.c:warning:no-previous-prototype-for-function-bpf_pidns_last_pid | |-- kernel-bpf-rvi-common_kfuncs.c:warning:no-previous-prototype-for-function-bpf_pidns_nr_tasks | |-- kernel-bpf-rvi-common_kfuncs.c:warning:no-previous-prototype-for-function-bpf_si_memswinfo | |-- kernel-bpf-rvi-common_kfuncs.c:warning:no-previous-prototype-for-function-bpf_task_active_pid_ns | |-- kernel-cgroup-ifs.c:warning:variable-start-set-but-not-used | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_set_task_prefer_nid | |-- kernel-sched-cpuacct.c:warning:no-previous-prototype-for-function-bpf_cpuacct_kcpustat_cpu_fetch | |-- kernel-sched-cpuacct.c:warning:no-previous-prototype-for-function-bpf_task_ca_cpuusage | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- loongarch-allnoconfig | `-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true |-- loongarch-randconfig-001-20250814 | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- x86_64-allnoconfig | |-- block-genhd.c:warning:no-previous-prototype-for-function-part_stat_read_all | `-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true |-- x86_64-allyesconfig | |-- arch-x86-mm-pat-set_memory.c:warning:no-previous-prototype-for-function-x86_get_direct_pages_count | |-- block-blk-cgroup.c:warning:no-previous-prototype-for-function-bpf_blkcg_get_dev_iostat | |-- block-genhd.c:warning:no-previous-prototype-for-function-part_stat_read_all | |-- crypto-asymmetric_keys-pgp_library.c:warning:Excess-function-parameter-_data-description-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Excess-function-parameter-_datalen-description-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Function-parameter-or-member-data-not-described-in-pgp_parse_packets | |-- crypto-asymmetric_keys-pgp_library.c:warning:Function-parameter-or-member-datalen-not-described-in-pgp_parse_packets | |-- drivers-net-ethernet-huawei-bma-edma_drv-edma_queue.c:warning:no-previous-prototype-for-function-wait_done_dma_queue | |-- fs-nfs-enfs-shard_route.c:warning:Function-parameter-or-member-__list_name-not-described-in-DEFINE_CLEAR_LIST_FUNC | |-- fs-nfs-enfs-shard_route.c:warning:Function-parameter-or-member-__struct_name-not-described-in-DEFINE_CLEAR_LIST_FUNC | |-- fs-nfs-enfs-shard_route.c:warning:expecting-prototype-for-enfs_clear_-__struct_name()().-Prototype-was-for-DEFINE_CLEAR_LIST_FUNC()-instead | |-- fs-proc-stat.c:warning:no-previous-prototype-for-function-bpf_get_idle_time | |-- fs-proc-stat.c:warning:no-previous-prototype-for-function-bpf_get_iowait_time | |-- kernel-bpf-rvi-common_kfuncs.c:warning:no-previous-prototype-for-function-bpf_mem_cgroup_from_task | |-- kernel-cgroup-ifs.c:warning:variable-start-set-but-not-used | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_set_task_prefer_nid | |-- kernel-sched-cpuacct.c:warning:no-previous-prototype-for-function-bpf_cpuacct_kcpustat_cpu_fetch | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- x86_64-buildonly-randconfig-001-20250814 | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- x86_64-buildonly-randconfig-002-20250814 | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- x86_64-buildonly-randconfig-004-20250814 | |-- kernel-locking-mutex.c:warning:variable-ifs_clock-is-used-uninitialized-whenever-if-condition-is-true | `-- kernel-sched-debug.c:warning:no-previous-prototype-for-function-is_prefer_numa |-- x86_64-defconfig | `-- block-genhd.c:warning:no-previous-prototype-for-part_stat_read_all `-- x86_64-randconfig-161-20250815 `-- block-genhd.c:warning:no-previous-prototype-for-part_stat_read_all elapsed time: 727m configs tested: 20 configs skipped: 111 tested configs: arm64 allmodconfig clang-19 arm64 allnoconfig gcc-15.1.0 arm64 randconfig-001-20250814 clang-17 arm64 randconfig-002-20250814 gcc-5.5.0 arm64 randconfig-003-20250814 gcc-10.5.0 arm64 randconfig-004-20250814 gcc-13.4.0 loongarch allmodconfig clang-19 loongarch allnoconfig clang-22 loongarch randconfig-001-20250814 clang-22 loongarch randconfig-002-20250814 gcc-15.1.0 x86_64 allnoconfig clang-20 x86_64 allyesconfig clang-20 x86_64 buildonly-randconfig-001-20250814 clang-20 x86_64 buildonly-randconfig-002-20250814 clang-20 x86_64 buildonly-randconfig-003-20250814 gcc-12 x86_64 buildonly-randconfig-004-20250814 clang-20 x86_64 buildonly-randconfig-005-20250814 gcc-12 x86_64 buildonly-randconfig-006-20250814 gcc-12 x86_64 defconfig gcc-11 x86_64 rhel-9.4-rust clang-20 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:75:18: warning: no previous prototype for function 'bpf_si_memswinfo'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: b3aa368c1f9f8f3acee4703cfebb30e7a909df9f [2679/2679] bpf-rvi: Add bpf_si_memswinfo() kfunc config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150337.G6kzMMhf-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150337.G6kzMMhf-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/202508150337.G6kzMMhf-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/bpf-rvi/common_kfuncs.c:18:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] 18 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ kernel/bpf-rvi/common_kfuncs.c:18:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 18 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ | static kernel/bpf-rvi/common_kfuncs.c:27:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes] 27 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ kernel/bpf-rvi/common_kfuncs.c:27:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 27 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ | static kernel/bpf-rvi/common_kfuncs.c:32:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] 32 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:32:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 32 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:46:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes] 46 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:46:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 46 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ | static >> kernel/bpf-rvi/common_kfuncs.c:75:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes] 75 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ kernel/bpf-rvi/common_kfuncs.c:75:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 75 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ | static 5 warnings generated. vim +/bpf_si_memswinfo +75 kernel/bpf-rvi/common_kfuncs.c 74 > 75 __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) 76 { 77 struct sysinfo *si = (struct sysinfo *)bsi; 78 79 if (si) { 80 si_meminfo(si); 81 si_swapinfo(si); 82 } 83 } 84 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] kernel/sched/cpuacct.c:417:17: warning: no previous prototype for function 'bpf_task_ca_cpuusage'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 00c32c5569d488b6c90f1695175577e35c17c21c [2679/2679] bpf-rvi: cpuacct: Add bpf_task_ca_cpuusage() kfunc config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150236.ujeyp9cP-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150236.ujeyp9cP-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/202508150236.ujeyp9cP-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/sched/build_utility.c:61: >> kernel/sched/cpuacct.c:417:17: warning: no previous prototype for function 'bpf_task_ca_cpuusage' [-Wmissing-prototypes] 417 | __bpf_kfunc u64 bpf_task_ca_cpuusage(struct task_struct *p) | ^ kernel/sched/cpuacct.c:417:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 417 | __bpf_kfunc u64 bpf_task_ca_cpuusage(struct task_struct *p) | ^ | static kernel/sched/cpuacct.c:424:18: warning: no previous prototype for function 'bpf_cpuacct_kcpustat_cpu_fetch' [-Wmissing-prototypes] 424 | __bpf_kfunc void bpf_cpuacct_kcpustat_cpu_fetch(struct kernel_cpustat *dst, | ^ kernel/sched/cpuacct.c:424:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 424 | __bpf_kfunc void bpf_cpuacct_kcpustat_cpu_fetch(struct kernel_cpustat *dst, | ^ | static In file included from kernel/sched/build_utility.c:73: kernel/sched/debug.c:102:12: warning: no previous prototype for function 'is_prefer_numa' [-Wmissing-prototypes] 102 | int __weak is_prefer_numa(void) | ^ kernel/sched/debug.c:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 102 | int __weak is_prefer_numa(void) | ^ | static In file included from kernel/sched/build_utility.c:113: kernel/sched/bpf_sched.c:186:17: warning: no previous prototype for function 'bpf_sched_entity_is_task' [-Wmissing-prototypes] 186 | __bpf_kfunc int bpf_sched_entity_is_task(struct sched_entity *se) | ^ kernel/sched/bpf_sched.c:186:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 186 | __bpf_kfunc int bpf_sched_entity_is_task(struct sched_entity *se) | ^ | static kernel/sched/bpf_sched.c:194:33: warning: no previous prototype for function 'bpf_sched_entity_to_task' [-Wmissing-prototypes] 194 | __bpf_kfunc struct task_struct *bpf_sched_entity_to_task(struct sched_entity *se) | ^ kernel/sched/bpf_sched.c:194:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 194 | __bpf_kfunc struct task_struct *bpf_sched_entity_to_task(struct sched_entity *se) | ^ | static kernel/sched/bpf_sched.c:202:18: warning: no previous prototype for function 'bpf_sched_tag_of_entity' [-Wmissing-prototypes] 202 | __bpf_kfunc long bpf_sched_tag_of_entity(struct sched_entity *se) | ^ kernel/sched/bpf_sched.c:202:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 202 | __bpf_kfunc long bpf_sched_tag_of_entity(struct sched_entity *se) | ^ | static kernel/sched/bpf_sched.c:213:17: warning: no previous prototype for function 'bpf_sched_set_task_prefer_nid' [-Wmissing-prototypes] 213 | __bpf_kfunc int bpf_sched_set_task_prefer_nid(struct task_struct *task, int nid) | ^ kernel/sched/bpf_sched.c:213:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 213 | __bpf_kfunc int bpf_sched_set_task_prefer_nid(struct task_struct *task, int nid) | ^ | static 7 warnings generated. vim +/bpf_task_ca_cpuusage +417 kernel/sched/cpuacct.c 416 > 417 __bpf_kfunc u64 bpf_task_ca_cpuusage(struct task_struct *p) 418 { 419 if (!p) 420 return 0; 421 return cpuusage_read(task_css(p, cpuacct_cgrp_id), NULL); 422 } 423 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] arch/x86/mm/pat/set_memory.c:127:22: warning: no previous prototype for function 'x86_get_direct_pages_count'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: ef5847533f910a4b3aca1cd1c855b02d60389ad3 [2679/2679] bpf-rvi: Add bpf_x86_direct_pages kfunc config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250815/202508150235.tTN5yutB-lkp@…) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150235.tTN5yutB-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/202508150235.tTN5yutB-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/x86/mm/pat/set_memory.c:127:22: warning: no previous prototype for function 'x86_get_direct_pages_count' [-Wmissing-prototypes] 127 | const unsigned long *x86_get_direct_pages_count(void) | ^ arch/x86/mm/pat/set_memory.c:127:7: note: declare 'static' if the function is not intended to be used outside of this translation unit 127 | const unsigned long *x86_get_direct_pages_count(void) | ^ | static 1 warning generated. vim +/x86_get_direct_pages_count +127 arch/x86/mm/pat/set_memory.c 125 126 #ifdef CONFIG_BPF_RVI > 127 const unsigned long *x86_get_direct_pages_count(void) 128 { 129 return direct_pages_count; 130 } 131 #endif 132 #else 133 static inline void split_page_count(int level) { } 134 #endif 135 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] arch/arm64/kernel/bpf-rvi.c:28:25: warning: no previous prototype for function 'bpf_arch_flags'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 34f3240c8b4a8e1f0531d169c96420eef2e0c8ac [2679/2679] bpf-rvi: arm64: Add bpf_arch_flags kunc for arm64 config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150218.QwK6mXQc-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150218.QwK6mXQc-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/202508150218.QwK6mXQc-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/arm64/kernel/bpf-rvi.c:14:6: warning: no previous prototype for function 'bpf_arm64_cpu_have_feature' [-Wmissing-prototypes] 14 | bool bpf_arm64_cpu_have_feature(unsigned int num) | ^ arch/arm64/kernel/bpf-rvi.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 14 | bool bpf_arm64_cpu_have_feature(unsigned int num) | ^ | static >> arch/arm64/kernel/bpf-rvi.c:28:25: warning: no previous prototype for function 'bpf_arch_flags' [-Wmissing-prototypes] 28 | __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) | ^ arch/arm64/kernel/bpf-rvi.c:28:19: note: declare 'static' if the function is not intended to be used outside of this translation unit 28 | __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) | ^ | static 2 warnings generated. vim +/bpf_arch_flags +28 arch/arm64/kernel/bpf-rvi.c 27 > 28 __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) 29 { 30 switch (t) { 31 case ARM64_HWCAP: 32 return hwcap_str[i]; 33 case ARM64_HWCAP_SIZE: 34 return (void *)ARRAY_SIZE(hwcap_str); 35 case ARM64_COMPAT_HWCAP: 36 return compat_hwcap_str[i]; 37 case ARM64_COMPAT_HWCAP_SIZE: 38 return (void *)ARRAY_SIZE(compat_hwcap_str); 39 case ARM64_COMPAT_HWCAP2: 40 return compat_hwcap2_str[i]; 41 case ARM64_COMPAT_HWCAP2_SIZE: 42 return (void *)ARRAY_SIZE(compat_hwcap2_str); 43 default: 44 return NULL; 45 } 46 } 47 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:24:35: warning: no previous prototype for function 'bpf_task_active_pid_ns'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: ef015dbb4151c10d0415045f9d0fcf3dc85063d7 [2679/2679] bpf-rvi: pidns: Add for_each_task_in_pidns and loadavg-related kfuncs config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150150.V6YiO7Tg-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150150.V6YiO7Tg-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/202508150150.V6YiO7Tg-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/bpf-rvi/common_kfuncs.c:15:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] 15 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ kernel/bpf-rvi/common_kfuncs.c:15:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 15 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ | static >> kernel/bpf-rvi/common_kfuncs.c:24:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes] 24 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ kernel/bpf-rvi/common_kfuncs.c:24:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 24 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ | static >> kernel/bpf-rvi/common_kfuncs.c:29:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] 29 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:29:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 29 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ | static >> kernel/bpf-rvi/common_kfuncs.c:43:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes] 43 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:43:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 43 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ | static 4 warnings generated. vim +/bpf_task_active_pid_ns +24 kernel/bpf-rvi/common_kfuncs.c 19 20 /* 21 * Loadavg related kfuncs 22 */ 23 > 24 __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) 25 { 26 return task_active_pid_ns(task); 27 } 28 > 29 __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) 30 { 31 struct pid_iter iter = {}; 32 u32 nr_running = 0, nr_threads = 0; 33 34 for_each_task_in_pidns(iter, ns) { 35 nr_threads++; 36 if (task_is_running(iter.task)) 37 nr_running++; 38 } 39 40 return (u64)nr_running << 32 | nr_threads; 41 } 42 > 43 __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) 44 { 45 return idr_get_cursor(&ns->idr) - 1; 46 } 47 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] arch/arm64/kernel/bpf-rvi.c:8:6: warning: no previous prototype for function 'bpf_arm64_cpu_have_feature'
by kernel test robot 15 Aug '25

15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 225346eb8c1a1c9cc44f816da80a5c12a0e93cba [2679/2679] bpf-rvi: arm64: Add bpf_arm64_cpu_have_feature() kfunc config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150054.NTqDP4S0-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150054.NTqDP4S0-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/202508150054.NTqDP4S0-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/arm64/kernel/bpf-rvi.c:8:6: warning: no previous prototype for function 'bpf_arm64_cpu_have_feature' [-Wmissing-prototypes] 8 | bool bpf_arm64_cpu_have_feature(unsigned int num) | ^ arch/arm64/kernel/bpf-rvi.c:8:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 8 | bool bpf_arm64_cpu_have_feature(unsigned int num) | ^ | static 1 warning generated. vim +/bpf_arm64_cpu_have_feature +8 arch/arm64/kernel/bpf-rvi.c 7 > 8 bool bpf_arm64_cpu_have_feature(unsigned int num) 9 { 10 return cpu_have_feature(num); 11 } 12 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2679/2679] block/blk-cgroup.c:2320:18: warning: no previous prototype for function 'bpf_blkcg_get_dev_iostat'
by kernel test robot 14 Aug '25

14 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 969159a7bdeceb8bf814c6e0bf3b5360d9d9b167 [2679/2679] bpf-rvi: blk-cgroup: Add bpf_blkcg_get_dev_iostat() kfunc config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250814/202508142302.3YamVK7A-lkp@…) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508142302.3YamVK7A-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/202508142302.3YamVK7A-lkp@intel.com/ All warnings (new ones prefixed by >>): >> block/blk-cgroup.c:2320:18: warning: no previous prototype for function 'bpf_blkcg_get_dev_iostat' [-Wmissing-prototypes] 2320 | __bpf_kfunc void bpf_blkcg_get_dev_iostat(struct blkcg *blkcg, int major, int minor, | ^ block/blk-cgroup.c:2320:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 2320 | __bpf_kfunc void bpf_blkcg_get_dev_iostat(struct blkcg *blkcg, int major, int minor, | ^ | static 1 warning generated. vim +/bpf_blkcg_get_dev_iostat +2320 block/blk-cgroup.c 2306 2307 /* 2308 * Basically inmitating: 2309 * 2310 * - v1: 2311 * - tg_print_rwstat_recursive() in block/blk-throttle.c 2312 * - bfqg_print_rwstat_recursive() in block/bfq-cgroup.c 2313 * - v2: 2314 * - blkcg_print_stat() 2315 * 2316 * without the final printing (e.g. the __blkg_prfill_rwstat() part). 2317 * 2318 * Note that a subsystem can only exist in either cgroup v1 or v2 at the same time. 2319 */ > 2320 __bpf_kfunc void bpf_blkcg_get_dev_iostat(struct blkcg *blkcg, int major, int minor, 2321 struct blkg_rw_iostat *iostat, bool is_v2) 2322 { 2323 struct blkcg_gq *blkg; 2324 char dev_name[64]; 2325 2326 if (!blkcg || !iostat) 2327 return; 2328 2329 if (is_v2) { 2330 if (blkcg == &blkcg_root) 2331 blkcg_fill_root_iostats(); 2332 else 2333 cgroup_rstat_flush_atomic(blkcg->css.cgroup); 2334 } 2335 2336 snprintf(dev_name, sizeof(dev_name), "%d:%d", major, minor); 2337 rcu_read_lock(); 2338 hlist_for_each_entry_rcu(blkg, &blkcg->blkg_list, blkcg_node) { 2339 if (strcmp(dev_name, blkg_dev_name(blkg))) 2340 continue; 2341 spin_lock_irq(&blkg->q->queue_lock); 2342 if (is_v2) 2343 blkcg_get_one_stat_v2(blkg, iostat); 2344 else 2345 blkcg_get_one_stat_v1(blkg, iostat); 2346 spin_unlock_irq(&blkg->q->queue_lock); 2347 break; 2348 } 2349 rcu_read_unlock(); 2350 } 2351 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
  • ← Newer
  • 1
  • 2
  • 3
  • 4
  • ...
  • 1981
  • Older →

HyperKitty Powered by HyperKitty