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
- 49 participants
- 19866 discussions

[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:250:27: warning: no previous prototype for function 'bpf_mem_commit_limit'
by kernel test robot 16 Aug '25
by kernel test robot 16 Aug '25
16 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: 7aa850a9126f0acd994e09afe54bb0200214e068 [2679/2679] bpf-rvi: Add bpf_mem_commit_limit & bpf_mem_committed kfunc
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250816/202508160141.44QSK5Us-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/20250816/202508160141.44QSK5Us-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/202508160141.44QSK5Us-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:130:26: warning: no previous prototype for function 'bpf_nr_running' [-Wmissing-prototypes]
130 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:130:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
130 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:135:32: warning: no previous prototype for function 'bpf_nr_context_switches' [-Wmissing-prototypes]
135 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:135:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
135 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:140:26: warning: no previous prototype for function 'bpf_nr_iowait' [-Wmissing-prototypes]
140 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:140:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
140 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:146:26: warning: no previous prototype for function 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes]
146 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:146:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
146 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:151:27: warning: no previous prototype for function 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes]
151 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:151:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
151 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:156:18: warning: no previous prototype for function 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes]
156 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:156:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
156 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:165:27: warning: no previous prototype for function 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
165 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:165:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
165 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:170:27: warning: no previous prototype for function 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
170 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:170:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
170 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:175:27: warning: no previous prototype for function 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
175 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:175:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
175 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:181:27: warning: no previous prototype for function 'bpf_mem_totalcma' [-Wmissing-prototypes]
181 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:181:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
181 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:186:27: warning: no previous prototype for function 'bpf_mem_freecma' [-Wmissing-prototypes]
186 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:186:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
186 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:201:17: warning: no previous prototype for function 'bpf_hugetlb_report_meminfo' [-Wmissing-prototypes]
201 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
kernel/bpf-rvi/common_kfuncs.c:201:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
201 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:239:27: warning: no previous prototype for function 'bpf_mem_failure' [-Wmissing-prototypes]
239 | __bpf_kfunc unsigned long bpf_mem_failure(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:239:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
239 | __bpf_kfunc unsigned long bpf_mem_failure(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:245:27: warning: no previous prototype for function 'bpf_mem_percpu' [-Wmissing-prototypes]
245 | __bpf_kfunc unsigned long bpf_mem_percpu(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:245:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
245 | __bpf_kfunc unsigned long bpf_mem_percpu(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:250:27: warning: no previous prototype for function 'bpf_mem_commit_limit' [-Wmissing-prototypes]
250 | __bpf_kfunc unsigned long bpf_mem_commit_limit(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:250:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
250 | __bpf_kfunc unsigned long bpf_mem_commit_limit(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:254:27: warning: no previous prototype for function 'bpf_mem_committed' [-Wmissing-prototypes]
254 | __bpf_kfunc unsigned long bpf_mem_committed(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:254:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
254 | __bpf_kfunc unsigned long bpf_mem_committed(void)
| ^
| static
25 warnings generated.
vim +/bpf_mem_commit_limit +250 kernel/bpf-rvi/common_kfuncs.c
249
> 250 __bpf_kfunc unsigned long bpf_mem_commit_limit(void)
251 {
252 return vm_commit_limit();
253 }
> 254 __bpf_kfunc unsigned long bpf_mem_committed(void)
255 {
256 return vm_memory_committed();
257 }
258
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2680/2680] drivers/scsi/linkdata/ps3stor/ps3_qos.c:3023:6: error: no previous prototype for function 'ps3_hba_qos_waitq_poll'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
Hi openeuler-ci-bot,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: 663a9a1c191fd26f1d8cb44edb6e0e50dd0536b2 [2680/2680] !14287 [OLK-6.6] SCSI: Support Linkdata HBA/RAID Controllers
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508152350.rU9jJByp-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/202508152350.rU9jJByp-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/202508152350.rU9jJByp-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/scsi/linkdata/ps3stor/ps3_qos.c:211:1: error: no previous prototype for function 'ps3_qos_cmd_waitq_get' [-Werror,-Wmissing-prototypes]
211 | ps3_qos_cmd_waitq_get(struct ps3_qos_tg_context *qos_tg_ctx,
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:210:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
210 | struct qos_wait_queue *
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:335:15: error: no previous prototype for function 'ps3_qos_vd_cmdword_get' [-Werror,-Wmissing-prototypes]
335 | unsigned char ps3_qos_vd_cmdword_get(struct ps3_cmd *cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:335:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
335 | unsigned char ps3_qos_vd_cmdword_get(struct ps3_cmd *cmd)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:351:15: error: no previous prototype for function 'ps3_qos_exclusive_cmdword_get' [-Werror,-Wmissing-prototypes]
351 | unsigned char ps3_qos_exclusive_cmdword_get(struct ps3_cmd *cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:351:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
351 | unsigned char ps3_qos_exclusive_cmdword_get(struct ps3_cmd *cmd)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:363:15: error: no previous prototype for function 'ps3_qos_tg_decision' [-Werror,-Wmissing-prototypes]
363 | unsigned char ps3_qos_tg_decision(struct ps3_cmd *cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:363:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
363 | unsigned char ps3_qos_tg_decision(struct ps3_cmd *cmd)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:749:15: error: no previous prototype for function 'ps3_qos_all_pd_rc_get' [-Werror,-Wmissing-prototypes]
749 | unsigned char ps3_qos_all_pd_rc_get(struct ps3_cmd *cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:749:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
749 | unsigned char ps3_qos_all_pd_rc_get(struct ps3_cmd *cmd)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:876:6: error: no previous prototype for function 'ps3_pd_quota_waitq_clear_all' [-Werror,-Wmissing-prototypes]
876 | void ps3_pd_quota_waitq_clear_all(struct ps3_qos_pd_mgr *qos_pd_mgr,
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:876:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
876 | void ps3_pd_quota_waitq_clear_all(struct ps3_qos_pd_mgr *qos_pd_mgr,
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:892:6: error: no previous prototype for function 'ps3_pd_quota_waitq_clean' [-Werror,-Wmissing-prototypes]
892 | void ps3_pd_quota_waitq_clean(struct ps3_qos_pd_mgr *qos_pd_mgr,
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:892:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
892 | void ps3_pd_quota_waitq_clean(struct ps3_qos_pd_mgr *qos_pd_mgr,
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:1058:6: error: no previous prototype for function 'ps3_qos_pd_waitq_ratio_update' [-Werror,-Wmissing-prototypes]
1058 | void ps3_qos_pd_waitq_ratio_update(struct ps3_qos_pd_mgr *qos_pd_mgr)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:1058:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1058 | void ps3_qos_pd_waitq_ratio_update(struct ps3_qos_pd_mgr *qos_pd_mgr)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2019:15: error: no previous prototype for function 'ps3_hba_qos_decision' [-Werror,-Wmissing-prototypes]
2019 | unsigned char ps3_hba_qos_decision(struct ps3_cmd *cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2019:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2019 | unsigned char ps3_hba_qos_decision(struct ps3_cmd *cmd)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2040:6: error: no previous prototype for function 'ps3_hba_qos_waitq_notify' [-Werror,-Wmissing-prototypes]
2040 | void ps3_hba_qos_waitq_notify(struct ps3_instance *instance)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2040:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2040 | void ps3_hba_qos_waitq_notify(struct ps3_instance *instance)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2100:6: error: no previous prototype for function 'ps3_cmd_waitq_abort' [-Werror,-Wmissing-prototypes]
2100 | bool ps3_cmd_waitq_abort(struct ps3_cmd *aborted_cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2100:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2100 | bool ps3_cmd_waitq_abort(struct ps3_cmd *aborted_cmd)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2463:6: error: no previous prototype for function 'ps3_hba_qos_waitq_clear_all' [-Werror,-Wmissing-prototypes]
2463 | void ps3_hba_qos_waitq_clear_all(struct ps3_instance *instance, int resp_status)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2463:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2463 | void ps3_hba_qos_waitq_clear_all(struct ps3_instance *instance, int resp_status)
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2827:6: error: no previous prototype for function 'ps3_hba_qos_vd_init' [-Werror,-Wmissing-prototypes]
2827 | void ps3_hba_qos_vd_init(struct ps3_instance *instance,
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2827:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2827 | void ps3_hba_qos_vd_init(struct ps3_instance *instance,
| ^
| static
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2936:6: error: no previous prototype for function 'ps3_hba_qos_vd_reset' [-Werror,-Wmissing-prototypes]
2936 | void ps3_hba_qos_vd_reset(struct ps3_instance *instance, unsigned short disk_id)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:2936:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2936 | void ps3_hba_qos_vd_reset(struct ps3_instance *instance, unsigned short disk_id)
| ^
| static
>> drivers/scsi/linkdata/ps3stor/ps3_qos.c:3023:6: error: no previous prototype for function 'ps3_hba_qos_waitq_poll' [-Werror,-Wmissing-prototypes]
3023 | void ps3_hba_qos_waitq_poll(struct ps3_instance *instance)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:3023:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
3023 | void ps3_hba_qos_waitq_poll(struct ps3_instance *instance)
| ^
| static
>> drivers/scsi/linkdata/ps3stor/ps3_qos.c:3279:15: error: no previous prototype for function 'ps3_raid_qos_decision' [-Werror,-Wmissing-prototypes]
3279 | unsigned char ps3_raid_qos_decision(struct ps3_cmd *cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:3279:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
3279 | unsigned char ps3_raid_qos_decision(struct ps3_cmd *cmd)
| ^
| static
>> drivers/scsi/linkdata/ps3stor/ps3_qos.c:3334:6: error: no previous prototype for function 'ps3_qos_mgrq_resend' [-Werror,-Wmissing-prototypes]
3334 | void ps3_qos_mgrq_resend(struct ps3_qos_softq_mgr *softq_mgr)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:3334:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
3334 | void ps3_qos_mgrq_resend(struct ps3_qos_softq_mgr *softq_mgr)
| ^
| static
>> drivers/scsi/linkdata/ps3stor/ps3_qos.c:3478:6: error: no previous prototype for function 'ps3_raid_qos_waitq_notify' [-Werror,-Wmissing-prototypes]
3478 | void ps3_raid_qos_waitq_notify(struct ps3_instance *instance)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:3478:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
3478 | void ps3_raid_qos_waitq_notify(struct ps3_instance *instance)
| ^
| static
>> drivers/scsi/linkdata/ps3stor/ps3_qos.c:3821:15: error: no previous prototype for function 'ps3_raid_qos_waitq_abort' [-Werror,-Wmissing-prototypes]
3821 | unsigned char ps3_raid_qos_waitq_abort(struct ps3_cmd *cmd)
| ^
drivers/scsi/linkdata/ps3stor/ps3_qos.c:3821:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
3821 | unsigned char ps3_raid_qos_waitq_abort(struct ps3_cmd *cmd)
| ^
| static
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--
>> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1958:1: error: unused function 'ps3_scsih_dev_id_get' [-Werror,-Wunused-function]
1958 | ps3_scsih_dev_id_get(const struct scsi_cmnd *s_cmd)
| ^~~~~~~~~~~~~~~~~~~~
1 error generated.
--
>> drivers/scsi/linkdata/ps3stor/ps3_irq.c:21:27: error: unused variable 'PS3_INTERRUPT_CMD_DISABLE_ALL_MASK' [-Werror,-Wunused-const-variable]
21 | static const unsigned int PS3_INTERRUPT_CMD_DISABLE_ALL_MASK = 0x02;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/scsi/linkdata/ps3stor/ps3_irq.c:22:27: error: unused variable 'PS3_INTERRUPT_CMD_ENABLE_MSIX' [-Werror,-Wunused-const-variable]
22 | static const unsigned int PS3_INTERRUPT_CMD_ENABLE_MSIX = 0x01;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/scsi/linkdata/ps3stor/ps3_irq.c:23:27: error: unused variable 'PS3_INTERRUPT_MASK_DISABLE' [-Werror,-Wunused-const-variable]
23 | static const unsigned int PS3_INTERRUPT_MASK_DISABLE = 0x00000002;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/scsi/linkdata/ps3stor/ps3_irq.c:24:27: error: unused variable 'PS3_INTERRUPT_STATUS_EXIST_IRQ' [-Werror,-Wunused-const-variable]
24 | static const unsigned int PS3_INTERRUPT_STATUS_EXIST_IRQ = 0x00000001;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/scsi/linkdata/ps3stor/ps3_irq.c:25:27: error: unused variable 'PS3_INTERRUPT_CLEAR_IRQ' [-Werror,-Wunused-const-variable]
25 | static const unsigned int PS3_INTERRUPT_CLEAR_IRQ = 0x00000001;
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/scsi/linkdata/ps3stor/ps3_irq.c:27:27: error: unused variable 'PS3_SSD_IOPS_MSIX_VECTORS' [-Werror,-Wunused-const-variable]
27 | static const unsigned int PS3_SSD_IOPS_MSIX_VECTORS = 8;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/scsi/linkdata/ps3stor/ps3_irq.c:28:27: error: unused variable 'PS3_HDD_IOPS_MSIX_VECTORS' [-Werror,-Wunused-const-variable]
28 | static const unsigned int PS3_HDD_IOPS_MSIX_VECTORS = 8;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
7 errors generated.
--
>> drivers/scsi/linkdata/ps3stor/./linux/ps3_driver_log.c:41:19: error: unused function 'time_for_log' [-Werror,-Wunused-function]
41 | static inline int time_for_log(char *buff, int buf_len)
| ^~~~~~~~~~~~
>> drivers/scsi/linkdata/ps3stor/./linux/ps3_driver_log.c:65:19: error: unused function 'time_for_file_name' [-Werror,-Wunused-function]
65 | static inline int time_for_file_name(char *buff, int buf_len)
| ^~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/ps3_hba_qos_waitq_poll +3023 drivers/scsi/linkdata/ps3stor/ps3_qos.c
97a2bb6ece556f liujie_answer 2024-12-24 3022
97a2bb6ece556f liujie_answer 2024-12-24 @3023 void ps3_hba_qos_waitq_poll(struct ps3_instance *instance)
97a2bb6ece556f liujie_answer 2024-12-24 3024 {
97a2bb6ece556f liujie_answer 2024-12-24 3025 if (!ps3_qos_tg_notify_timeout(instance)) {
97a2bb6ece556f liujie_answer 2024-12-24 3026 if (!ps3_qos_vd_notify_timeout(instance))
97a2bb6ece556f liujie_answer 2024-12-24 3027 ps3_qos_pd_notify_timeout(instance);
97a2bb6ece556f liujie_answer 2024-12-24 3028 }
97a2bb6ece556f liujie_answer 2024-12-24 3029 }
97a2bb6ece556f liujie_answer 2024-12-24 3030
:::::: The code at line 3023 was first introduced by commit
:::::: 97a2bb6ece556f3882263ee8df2b77f10c511311 SCSI: Linkdata: Supports Linkdata HBA/RAID Controllers
:::::: TO: liujie_answer <liujie5(a)linkdatatechnology.com>
:::::: CC: liujie_answer <liujie5(a)linkdatatechnology.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:244:27: warning: no previous prototype for function 'bpf_mem_percpu'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: af34a7a840fd24a050a5fee8ea4dcfad963f3abc [2679/2679] bpf-rvi: Add bpf_mem_percpu kfunc
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508152311.kWn09op7-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/202508152311.kWn09op7-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/202508152311.kWn09op7-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:124:27: warning: no previous prototype for function 'bpf_get_total_forks' [-Wmissing-prototypes]
124 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:124:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
124 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:129:26: warning: no previous prototype for function 'bpf_nr_running' [-Wmissing-prototypes]
129 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:129:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
129 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:134:32: warning: no previous prototype for function 'bpf_nr_context_switches' [-Wmissing-prototypes]
134 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:134:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
134 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:139:26: warning: no previous prototype for function 'bpf_nr_iowait' [-Wmissing-prototypes]
139 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:139:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
139 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:145:26: warning: no previous prototype for function 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes]
145 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:145:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
145 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:150:27: warning: no previous prototype for function 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes]
150 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:150:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
150 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:155:18: warning: no previous prototype for function 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes]
155 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:155:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
155 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:164:27: warning: no previous prototype for function 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
164 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:164:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
164 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:169:27: warning: no previous prototype for function 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
169 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:169:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
169 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:174:27: warning: no previous prototype for function 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
174 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:174:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
174 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:180:27: warning: no previous prototype for function 'bpf_mem_totalcma' [-Wmissing-prototypes]
180 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:180:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
180 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:185:27: warning: no previous prototype for function 'bpf_mem_freecma' [-Wmissing-prototypes]
185 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:185:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
185 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:200:17: warning: no previous prototype for function 'bpf_hugetlb_report_meminfo' [-Wmissing-prototypes]
200 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
kernel/bpf-rvi/common_kfuncs.c:200:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
200 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:238:27: warning: no previous prototype for function 'bpf_mem_failure' [-Wmissing-prototypes]
238 | __bpf_kfunc unsigned long bpf_mem_failure(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:238:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
238 | __bpf_kfunc unsigned long bpf_mem_failure(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:244:27: warning: no previous prototype for function 'bpf_mem_percpu' [-Wmissing-prototypes]
244 | __bpf_kfunc unsigned long bpf_mem_percpu(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:244:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
244 | __bpf_kfunc unsigned long bpf_mem_percpu(void)
| ^
| static
23 warnings generated.
vim +/bpf_mem_percpu +244 kernel/bpf-rvi/common_kfuncs.c
243
> 244 __bpf_kfunc unsigned long bpf_mem_percpu(void)
245 {
246 return pcpu_nr_pages();
247 }
248
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2667/2667] arch/arm64/kernel/cpufeature.c:2129:13: warning: 'enable_pseudo_nmi' defined but not used
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: c6ce2becb89528f83c1ad3c0607ad05baecebc0a [2667/2667] arm64/cpufeature: Fix pseudo nmi identifier undeclaration complilation error
config: arm64-randconfig-2004-20250811 (https://download.01.org/0day-ci/archive/20250815/202508151728.CMPxXZsv-lkp@…)
compiler: aarch64-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508151728.CMPxXZsv-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/202508151728.CMPxXZsv-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/arm64/kernel/cpufeature.c:2129:13: warning: 'enable_pseudo_nmi' defined but not used [-Wunused-variable]
2129 | static bool enable_pseudo_nmi;
| ^~~~~~~~~~~~~~~~~
vim +/enable_pseudo_nmi +2129 arch/arm64/kernel/cpufeature.c
3e6c69a058deaa5 Mark Brown 2019-12-09 2127
f72387e1f8bc992 Mark Brown 2022-11-03 2128 #if IS_ENABLED(CONFIG_ARM64_PSEUDO_NMI) || IS_ENABLED(CONFIG_ARM64_NMI)
bc3c03ccb4641fb Julien Thierry 2019-01-31 @2129 static bool enable_pseudo_nmi;
f72387e1f8bc992 Mark Brown 2022-11-03 2130 #endif
bc3c03ccb4641fb Julien Thierry 2019-01-31 2131
:::::: The code at line 2129 was first introduced by commit
:::::: bc3c03ccb4641fb940b27a0d369431876923a8fe arm64: Enable the support of pseudo-NMIs
:::::: TO: Julien Thierry <julien.thierry(a)arm.com>
:::::: CC: Catalin Marinas <catalin.marinas(a)arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:238:27: warning: no previous prototype for function 'bpf_mem_failure'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: 09893ff02def3af3147aff056dca7bee71c432f0 [2679/2679] bpf-rvi: Add bpf_mem_failure kfunc
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508152209.qAp1xBAt-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/202508152209.qAp1xBAt-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/202508152209.qAp1xBAt-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:118:18: warning: no previous prototype for function 'bpf_get_boottime_timens' [-Wmissing-prototypes]
118 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
kernel/bpf-rvi/common_kfuncs.c:118:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
118 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:124:27: warning: no previous prototype for function 'bpf_get_total_forks' [-Wmissing-prototypes]
124 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:124:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
124 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:129:26: warning: no previous prototype for function 'bpf_nr_running' [-Wmissing-prototypes]
129 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:129:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
129 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:134:32: warning: no previous prototype for function 'bpf_nr_context_switches' [-Wmissing-prototypes]
134 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:134:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
134 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:139:26: warning: no previous prototype for function 'bpf_nr_iowait' [-Wmissing-prototypes]
139 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:139:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
139 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:145:26: warning: no previous prototype for function 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes]
145 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:145:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
145 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:150:27: warning: no previous prototype for function 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes]
150 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:150:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
150 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:155:18: warning: no previous prototype for function 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes]
155 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:155:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
155 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:164:27: warning: no previous prototype for function 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
164 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:164:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
164 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:169:27: warning: no previous prototype for function 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
169 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:169:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
169 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:174:27: warning: no previous prototype for function 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
174 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:174:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
174 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:180:27: warning: no previous prototype for function 'bpf_mem_totalcma' [-Wmissing-prototypes]
180 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:180:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
180 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:185:27: warning: no previous prototype for function 'bpf_mem_freecma' [-Wmissing-prototypes]
185 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:185:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
185 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:200:17: warning: no previous prototype for function 'bpf_hugetlb_report_meminfo' [-Wmissing-prototypes]
200 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
kernel/bpf-rvi/common_kfuncs.c:200:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
200 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:238:27: warning: no previous prototype for function 'bpf_mem_failure' [-Wmissing-prototypes]
238 | __bpf_kfunc unsigned long bpf_mem_failure(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:238:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
238 | __bpf_kfunc unsigned long bpf_mem_failure(void)
| ^
| static
22 warnings generated.
vim +/bpf_mem_failure +238 kernel/bpf-rvi/common_kfuncs.c
231
232 #ifdef CONFIG_MEMORY_FAILURE
233 __bpf_kfunc unsigned long bpf_mem_failure(void)
234 {
235 return atomic_long_read(&num_poisoned_pages) << (PAGE_SHIFT - 10);
236 }
237 #else
> 238 __bpf_kfunc unsigned long bpf_mem_failure(void)
239 {
240 return 0;
241 }
242 #endif
243
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:200:17: warning: no previous prototype for function 'bpf_hugetlb_report_meminfo'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: edd6acd9af851644d1673be6bebb16269c67e018 [2679/2679] bpf-rvi: Add bpf_hugetlb_report_meminfo kfunc
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508152019.hrE0RxXn-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/202508152019.hrE0RxXn-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/202508152019.hrE0RxXn-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:104:18: warning: no previous prototype for function 'bpf_seq_file_append' [-Wmissing-prototypes]
104 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src)
| ^
kernel/bpf-rvi/common_kfuncs.c:104:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
104 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:118:18: warning: no previous prototype for function 'bpf_get_boottime_timens' [-Wmissing-prototypes]
118 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
kernel/bpf-rvi/common_kfuncs.c:118:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
118 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:124:27: warning: no previous prototype for function 'bpf_get_total_forks' [-Wmissing-prototypes]
124 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:124:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
124 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:129:26: warning: no previous prototype for function 'bpf_nr_running' [-Wmissing-prototypes]
129 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:129:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
129 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:134:32: warning: no previous prototype for function 'bpf_nr_context_switches' [-Wmissing-prototypes]
134 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:134:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
134 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:139:26: warning: no previous prototype for function 'bpf_nr_iowait' [-Wmissing-prototypes]
139 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:139:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
139 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:145:26: warning: no previous prototype for function 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes]
145 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:145:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
145 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:150:27: warning: no previous prototype for function 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes]
150 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:150:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
150 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:155:18: warning: no previous prototype for function 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes]
155 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:155:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
155 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:164:27: warning: no previous prototype for function 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
164 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:164:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
164 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:169:27: warning: no previous prototype for function 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
169 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:169:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
169 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:174:27: warning: no previous prototype for function 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
174 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:174:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
174 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:180:27: warning: no previous prototype for function 'bpf_mem_totalcma' [-Wmissing-prototypes]
180 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:180:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
180 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:185:27: warning: no previous prototype for function 'bpf_mem_freecma' [-Wmissing-prototypes]
185 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:185:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
185 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:200:17: warning: no previous prototype for function 'bpf_hugetlb_report_meminfo' [-Wmissing-prototypes]
200 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
kernel/bpf-rvi/common_kfuncs.c:200:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
200 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
| ^
| static
21 warnings generated.
vim +/bpf_hugetlb_report_meminfo +200 kernel/bpf-rvi/common_kfuncs.c
198
199 #ifdef CONFIG_HUGETLB_PAGE
> 200 __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
201 {
202 struct hstate *h;
203 unsigned long total = 0;
204
205 if (!hugepages_supported())
206 return -1;
207
208 for_each_hstate(h) {
209 unsigned long count = h->nr_huge_pages;
210
211 total += huge_page_size(h) * count;
212
213 if (h == &default_hstate) {
214 hugepage_info->total = count;
215 hugepage_info->free = h->free_huge_pages;
216 hugepage_info->rsvd = h->resv_huge_pages;
217 hugepage_info->surp = h->surplus_huge_pages;
218 hugepage_info->size = huge_page_size(h) / SZ_1K;
219 }
220 }
221
222 hugepage_info->hugetlb = total / SZ_1K;
223 return 0;
224 }
225 #else
226 __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
227 {
228 return -1;
229 }
230 #endif
231
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2680/2680] drivers/net/ethernet/linkdata/sxe/sxepf/sxe_debugfs.c:432:6: error: no previous prototype for 'sxe_debugfs_entries_init'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
Hi liujie_answer,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: dd013ad487534c1838afc2f55efdb5daec15aace [2680/2680] Ethernet: Linkdata: Supports Linkdata ethernet Controllers
config: x86_64-buildonly-randconfig-006-20250815 (https://download.01.org/0day-ci/archive/20250815/202508152057.oL7JqxX1-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508152057.oL7JqxX1-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/202508152057.oL7JqxX1-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_debugfs.c:432:6: error: no previous prototype for 'sxe_debugfs_entries_init' [-Werror=missing-prototypes]
432 | void sxe_debugfs_entries_init(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_debugfs.c:459:6: error: no previous prototype for 'sxe_debugfs_entries_exit' [-Werror=missing-prototypes]
459 | void sxe_debugfs_entries_exit(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_debugfs.c:465:6: error: no previous prototype for 'sxe_debugfs_init' [-Werror=missing-prototypes]
465 | void sxe_debugfs_init(void)
| ^~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_debugfs.c:470:6: error: no previous prototype for 'sxe_debugfs_exit' [-Werror=missing-prototypes]
470 | void sxe_debugfs_exit(void)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:230:6: error: no previous prototype for 'sxe_hw_no_snoop_disable' [-Werror=missing-prototypes]
230 | void sxe_hw_no_snoop_disable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:262:6: error: no previous prototype for 'sxe_hw_uc_addr_pool_del' [-Werror=missing-prototypes]
262 | void sxe_hw_uc_addr_pool_del(struct sxe_hw *hw, u32 rar_idx, u32 pool_idx)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:283:5: error: no previous prototype for 'sxe_hw_uc_addr_pool_enable' [-Werror=missing-prototypes]
283 | s32 sxe_hw_uc_addr_pool_enable(struct sxe_hw *hw, u8 rar_idx, u8 pool_idx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:337:5: error: no previous prototype for 'sxe_hw_nic_reset' [-Werror=missing-prototypes]
337 | s32 sxe_hw_nic_reset(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:367:6: error: no previous prototype for 'sxe_hw_pf_rst_done_set' [-Werror=missing-prototypes]
367 | void sxe_hw_pf_rst_done_set(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:735:5: error: no previous prototype for 'sxe_hw_pending_irq_read_clear' [-Werror=missing-prototypes]
735 | u32 sxe_hw_pending_irq_read_clear(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:740:6: error: no previous prototype for 'sxe_hw_pending_irq_write_clear' [-Werror=missing-prototypes]
740 | void sxe_hw_pending_irq_write_clear(struct sxe_hw *hw, u32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:745:5: error: no previous prototype for 'sxe_hw_irq_cause_get' [-Werror=missing-prototypes]
745 | u32 sxe_hw_irq_cause_get(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:765:6: error: no previous prototype for 'sxe_hw_ring_irq_auto_disable' [-Werror=missing-prototypes]
765 | void sxe_hw_ring_irq_auto_disable(struct sxe_hw *hw, bool is_msix)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:775:6: error: no previous prototype for 'sxe_hw_irq_general_reg_set' [-Werror=missing-prototypes]
775 | void sxe_hw_irq_general_reg_set(struct sxe_hw *hw, u32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:780:5: error: no previous prototype for 'sxe_hw_irq_general_reg_get' [-Werror=missing-prototypes]
780 | u32 sxe_hw_irq_general_reg_get(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:790:6: error: no previous prototype for 'sxe_hw_event_irq_map' [-Werror=missing-prototypes]
790 | void sxe_hw_event_irq_map(struct sxe_hw *hw, u8 offset, u16 irq_idx)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:806:6: error: no previous prototype for 'sxe_hw_ring_irq_map' [-Werror=missing-prototypes]
806 | void sxe_hw_ring_irq_map(struct sxe_hw *hw, bool is_tx, u16 reg_idx,
| ^~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:823:6: error: no previous prototype for 'sxe_hw_ring_irq_interval_set' [-Werror=missing-prototypes]
823 | void sxe_hw_ring_irq_interval_set(struct sxe_hw *hw, u16 irq_idx, u32 interval)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:838:6: error: no previous prototype for 'sxe_hw_event_irq_auto_clear_set' [-Werror=missing-prototypes]
838 | void sxe_hw_event_irq_auto_clear_set(struct sxe_hw *hw, u32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:843:6: error: no previous prototype for 'sxe_hw_specific_irq_disable' [-Werror=missing-prototypes]
843 | void sxe_hw_specific_irq_disable(struct sxe_hw *hw, u32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:848:6: error: no previous prototype for 'sxe_hw_specific_irq_enable' [-Werror=missing-prototypes]
848 | void sxe_hw_specific_irq_enable(struct sxe_hw *hw, u32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:876:6: error: no previous prototype for 'sxe_hw_all_irq_disable' [-Werror=missing-prototypes]
876 | void sxe_hw_all_irq_disable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:994:5: error: no previous prototype for 'sxe_hw_link_speed_get' [-Werror=missing-prototypes]
994 | u32 sxe_hw_link_speed_get(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1014:6: error: no previous prototype for 'sxe_hw_link_speed_set' [-Werror=missing-prototypes]
1014 | void sxe_hw_link_speed_set(struct sxe_hw *hw, u32 speed)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1033:6: error: no previous prototype for 'sxe_hw_is_link_state_up' [-Werror=missing-prototypes]
1033 | bool sxe_hw_is_link_state_up(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1055:6: error: no previous prototype for 'sxe_hw_mac_pad_enable' [-Werror=missing-prototypes]
1055 | void sxe_hw_mac_pad_enable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1064:5: error: no previous prototype for 'sxe_hw_fc_enable' [-Werror=missing-prototypes]
1064 | s32 sxe_hw_fc_enable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1135:6: error: no previous prototype for 'sxe_fc_autoneg_localcap_set' [-Werror=missing-prototypes]
1135 | void sxe_fc_autoneg_localcap_set(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1164:5: error: no previous prototype for 'sxe_hw_pfc_enable' [-Werror=missing-prototypes]
1164 | s32 sxe_hw_pfc_enable(struct sxe_hw *hw, u8 tc_idx)
| ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1256:6: error: no previous prototype for 'sxe_hw_crc_configure' [-Werror=missing-prototypes]
1256 | void sxe_hw_crc_configure(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1264:6: error: no previous prototype for 'sxe_hw_loopback_switch' [-Werror=missing-prototypes]
1264 | void sxe_hw_loopback_switch(struct sxe_hw *hw, bool is_enable)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1276:6: error: no previous prototype for 'sxe_hw_mac_txrx_enable' [-Werror=missing-prototypes]
1276 | void sxe_hw_mac_txrx_enable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1285:6: error: no previous prototype for 'sxe_hw_mac_max_frame_set' [-Werror=missing-prototypes]
1285 | void sxe_hw_mac_max_frame_set(struct sxe_hw *hw, u32 max_frame)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1298:5: error: no previous prototype for 'sxe_hw_mac_max_frame_get' [-Werror=missing-prototypes]
1298 | u32 sxe_hw_mac_max_frame_get(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1330:6: error: no previous prototype for 'sxe_hw_fc_tc_high_water_mark_set' [-Werror=missing-prototypes]
1330 | void sxe_hw_fc_tc_high_water_mark_set(struct sxe_hw *hw, u8 tc_idx, u32 mark)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1335:6: error: no previous prototype for 'sxe_hw_fc_tc_low_water_mark_set' [-Werror=missing-prototypes]
1335 | void sxe_hw_fc_tc_low_water_mark_set(struct sxe_hw *hw, u8 tc_idx, u32 mark)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1340:6: error: no previous prototype for 'sxe_hw_is_fc_autoneg_disabled' [-Werror=missing-prototypes]
1340 | bool sxe_hw_is_fc_autoneg_disabled(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1345:6: error: no previous prototype for 'sxe_hw_fc_autoneg_disable_set' [-Werror=missing-prototypes]
1345 | void sxe_hw_fc_autoneg_disable_set(struct sxe_hw *hw, bool is_disabled)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1360:6: error: no previous prototype for 'sxe_hw_fc_requested_mode_set' [-Werror=missing-prototypes]
1360 | void sxe_hw_fc_requested_mode_set(struct sxe_hw *hw, enum sxe_fc_mode mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1388:5: error: no previous prototype for 'sxe_hw_rx_mode_get' [-Werror=missing-prototypes]
1388 | u32 sxe_hw_rx_mode_get(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1393:5: error: no previous prototype for 'sxe_hw_pool_rx_mode_get' [-Werror=missing-prototypes]
1393 | u32 sxe_hw_pool_rx_mode_get(struct sxe_hw *hw, u16 pool_idx)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1398:6: error: no previous prototype for 'sxe_hw_rx_mode_set' [-Werror=missing-prototypes]
1398 | void sxe_hw_rx_mode_set(struct sxe_hw *hw, u32 filter_ctrl)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1403:6: error: no previous prototype for 'sxe_hw_pool_rx_mode_set' [-Werror=missing-prototypes]
1403 | void sxe_hw_pool_rx_mode_set(struct sxe_hw *hw, u32 vmolr, u16 pool_idx)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1408:6: error: no previous prototype for 'sxe_hw_rx_lro_enable' [-Werror=missing-prototypes]
1408 | void sxe_hw_rx_lro_enable(struct sxe_hw *hw, bool is_enable)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1420:6: error: no previous prototype for 'sxe_hw_rx_nfs_filter_disable' [-Werror=missing-prototypes]
1420 | void sxe_hw_rx_nfs_filter_disable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1428:6: error: no previous prototype for 'sxe_hw_rx_udp_frag_checksum_disable' [-Werror=missing-prototypes]
1428 | void sxe_hw_rx_udp_frag_checksum_disable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1437:6: error: no previous prototype for 'sxe_hw_fc_mac_addr_set' [-Werror=missing-prototypes]
1437 | void sxe_hw_fc_mac_addr_set(struct sxe_hw *hw, u8 *mac_addr)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1449:5: error: no previous prototype for 'sxe_hw_uc_addr_add' [-Werror=missing-prototypes]
1449 | s32 sxe_hw_uc_addr_add(struct sxe_hw *hw, u32 rar_idx, u8 *addr, u32 pool_idx)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1484:5: error: no previous prototype for 'sxe_hw_uc_addr_del' [-Werror=missing-prototypes]
1484 | s32 sxe_hw_uc_addr_del(struct sxe_hw *hw, u32 index)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1510:6: error: no previous prototype for 'sxe_hw_mta_hash_table_set' [-Werror=missing-prototypes]
1510 | void sxe_hw_mta_hash_table_set(struct sxe_hw *hw, u8 index, u32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1515:6: error: no previous prototype for 'sxe_hw_mta_hash_table_update' [-Werror=missing-prototypes]
1515 | void sxe_hw_mta_hash_table_update(struct sxe_hw *hw, u8 reg_idx, u8 bit_idx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1525:5: error: no previous prototype for 'sxe_hw_mc_filter_get' [-Werror=missing-prototypes]
1525 | u32 sxe_hw_mc_filter_get(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1530:6: error: no previous prototype for 'sxe_hw_mc_filter_enable' [-Werror=missing-prototypes]
1530 | void sxe_hw_mc_filter_enable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1554:6: error: no previous prototype for 'sxe_hw_uc_addr_clear' [-Werror=missing-prototypes]
1554 | void sxe_hw_uc_addr_clear(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1587:6: error: no previous prototype for 'sxe_hw_vt_ctrl_cfg' [-Werror=missing-prototypes]
1587 | void sxe_hw_vt_ctrl_cfg(struct sxe_hw *hw, u8 default_pool)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1601:6: error: no previous prototype for 'sxe_hw_vt_disable' [-Werror=missing-prototypes]
1601 | void sxe_hw_vt_disable(struct sxe_hw *hw)
| ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_hw.c:1675:5: error: no previous prototype for 'sxe_hw_vlan_pool_filter_read' [-Werror=missing-prototypes]
1675 | u32 sxe_hw_vlan_pool_filter_read(struct sxe_hw *hw, u16 reg_index)
--
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_irq.c:136:5: error: no previous prototype for 'sxe_msi_irq_init' [-Werror=missing-prototypes]
136 | int sxe_msi_irq_init(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_irq.c:182:6: error: no previous prototype for 'sxe_disable_dcb' [-Werror=missing-prototypes]
182 | void sxe_disable_dcb(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_irq.c:212:6: error: no previous prototype for 'sxe_disable_rss' [-Werror=missing-prototypes]
212 | void sxe_disable_rss(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_irq.c:729:6: error: no previous prototype for 'sxe_lsc_irq_handler' [-Werror=missing-prototypes]
729 | void sxe_lsc_irq_handler(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_irq.c:745:6: error: no previous prototype for 'sxe_mailbox_irq_handler' [-Werror=missing-prototypes]
745 | void sxe_mailbox_irq_handler(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_rx_proc.c:1431:6: error: no previous prototype for 'sxe_headers_cleanup' [-Werror=missing-prototypes]
1431 | bool sxe_headers_cleanup(struct sxe_ring *rx_ring,
| ^~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_rx_proc.c:1569:6: error: no previous prototype for 'sxe_rx_buffer_page_offset_update' [-Werror=missing-prototypes]
1569 | void sxe_rx_buffer_page_offset_update(struct sxe_ring *rx_ring,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_main.c:70:6: error: no previous prototype for 'sxe_allow_inval_mac' [-Werror=missing-prototypes]
70 | bool sxe_allow_inval_mac(void)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_sriov.c: In function 'sxe_vf_uc_addr_del':
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_sriov.c:766:13: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
766 | s32 ret;
| ^~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_sriov.c: At top level:
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_sriov.c:1552:6: error: no previous prototype for 'sxe_set_vf_link_enable' [-Werror=missing-prototypes]
1552 | void sxe_set_vf_link_enable(struct sxe_adapter *adapter, s32 vf_idx, s32 state)
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_phy.c:733:5: error: no previous prototype for 'sxe_multispeed_sfp_link_configure' [-Werror=missing-prototypes]
733 | s32 sxe_multispeed_sfp_link_configure(struct sxe_adapter *adapter, u32 speed)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_ethtool.c:2022:5: error: no previous prototype for 'sxe_reg_test' [-Werror=missing-prototypes]
2022 | int sxe_reg_test(struct sxe_adapter *adapter)
| ^~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_ethtool.c:2644:5: error: no previous prototype for 'sxe_phys_id_set' [-Werror=missing-prototypes]
2644 | int sxe_phys_id_set(struct net_device *netdev, enum ethtool_phys_id_state state)
| ^~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxe/sxepf/sxe_ethtool.c: In function 'sxe_get_module_eeprom':
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_ethtool.c:2736:47: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
2736 | LOG_ERROR("read sfp failed\n");
| ^
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxe/sxepf/sxe_xdp.c:410:6: error: no previous prototype for 'sxe_txrx_ring_enable' [-Werror=missing-prototypes]
410 | void sxe_txrx_ring_enable(struct sxe_adapter *adapter, u32 ring_idx)
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_rx_proc.c:362:6: error: no previous prototype for 'sxevf_rx_ring_buffers_alloc' [-Werror=missing-prototypes]
362 | void sxevf_rx_ring_buffers_alloc(struct sxevf_ring *rx_ring, u16 cleaned_count)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c:88:6: error: no previous prototype for 'sxevf_tx_ring_free' [-Werror=missing-prototypes]
88 | void sxevf_tx_ring_free(struct sxevf_ring *ring)
| ^~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c:127:5: error: no previous prototype for 'sxevf_tx_ring_alloc' [-Werror=missing-prototypes]
127 | s32 sxevf_tx_ring_alloc(struct sxevf_ring *ring)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c: In function 'sxevf_xmit_pkt':
>> drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c:703:66: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
703 | ring->idx, SXEVF_TX_DESC_NEEDED);
| ^
drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c: In function 'sxevf_ring_xmit':
drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c:803:74: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
803 | LOG_ERROR("tx dma mapping err, ring idx=%u\n", ring->idx);
| ^
drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c: In function 'sxevf_xmit':
>> drivers/net/ethernet/linkdata/sxevf/sxevf/sxevf_tx_proc.c:838:71: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
838 | LOG_DEBUG("sxe xmit end, ring idx=%u\n", tx_ring->idx);
| ^
cc1: all warnings being treated as errors
..
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PTP_1588_CLOCK
Depends on [n]: NET [=y] && POSIX_TIMERS [=n]
Selected by [m]:
- SXE [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y]
- SXE_VF [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y]
vim +/sxe_debugfs_entries_init +432 drivers/net/ethernet/linkdata/sxe/sxepf/sxe_debugfs.c
431
> 432 void sxe_debugfs_entries_init(struct sxe_adapter *adapter)
433 {
434 struct dentry *dir;
435 const char *name = pci_name(adapter->pdev);
436
437 adapter->debugfs_entries = debugfs_create_dir(name, sxe_debugfs_root);
438 dir = debugfs_create_file("reg_ops", 0600, adapter->debugfs_entries,
439 adapter, &sxe_debugfs_reg_ops_fops);
440 if (!dir || dir == ERR_PTR(-ENODEV))
441 LOG_INFO_BDF("debugfs:reg_ops file create failed\n");
442
443 dir = debugfs_create_file("netdev_ops", 0600, adapter->debugfs_entries,
444 adapter, &sxe_debugfs_netdev_ops_fops);
445 if (!dir || dir == ERR_PTR(-ENODEV))
446 LOG_INFO_BDF("debugfs:netdev_ops file create failed\n");
447
448 dir = debugfs_create_file("hw_stats", 0400, adapter->debugfs_entries,
449 adapter, &sxe_debugfs_hw_stats_fops);
450 if (!dir || dir == ERR_PTR(-ENODEV))
451 LOG_INFO_BDF("debugfs:hw_stats file create failed\n");
452
453 dir = debugfs_create_file("sfp_info", 0400, adapter->debugfs_entries,
454 adapter, &sxe_debugfs_sfp_info_fops);
455 if (!dir || dir == ERR_PTR(-ENODEV))
456 LOG_INFO_BDF("debugfs:sfp_info file create failed\n");
457 }
458
> 459 void sxe_debugfs_entries_exit(struct sxe_adapter *adapter)
460 {
461 debugfs_remove_recursive(adapter->debugfs_entries);
462 adapter->debugfs_entries = NULL;
463 }
464
> 465 void sxe_debugfs_init(void)
466 {
467 sxe_debugfs_root = debugfs_create_dir(SXE_DRV_NAME, NULL);
468 }
469
> 470 void sxe_debugfs_exit(void)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:179:27: warning: no previous prototype for function 'bpf_mem_totalcma'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 2a82ebf963a58eaae57bc365d5d523592f13db7b
commit: 9c449e4d9af5b69a1b9fdae9e3f18dc1515635b8 [2679/2679] bpf-rvi: Add bpf_mem_{total,free}cma kfunc
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508151842.k7QexzPZ-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/202508151842.k7QexzPZ-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/202508151842.k7QexzPZ-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:83:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes]
83 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi)
| ^
kernel/bpf-rvi/common_kfuncs.c:83:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
83 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:93:27: warning: no previous prototype for function 'bpf_page_counter_read' [-Wmissing-prototypes]
93 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter)
| ^
kernel/bpf-rvi/common_kfuncs.c:93:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
93 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:103:18: warning: no previous prototype for function 'bpf_seq_file_append' [-Wmissing-prototypes]
103 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src)
| ^
kernel/bpf-rvi/common_kfuncs.c:103:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
103 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:117:18: warning: no previous prototype for function 'bpf_get_boottime_timens' [-Wmissing-prototypes]
117 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
kernel/bpf-rvi/common_kfuncs.c:117:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
117 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:123:27: warning: no previous prototype for function 'bpf_get_total_forks' [-Wmissing-prototypes]
123 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:123:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
123 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:128:26: warning: no previous prototype for function 'bpf_nr_running' [-Wmissing-prototypes]
128 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:128:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
128 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:133:32: warning: no previous prototype for function 'bpf_nr_context_switches' [-Wmissing-prototypes]
133 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:133:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
133 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:138:26: warning: no previous prototype for function 'bpf_nr_iowait' [-Wmissing-prototypes]
138 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:138:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
138 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:144:26: warning: no previous prototype for function 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes]
144 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:144:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
144 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:149:27: warning: no previous prototype for function 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes]
149 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:149:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
149 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:154:18: warning: no previous prototype for function 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes]
154 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:154:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
154 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:163:27: warning: no previous prototype for function 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
163 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:163:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
163 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:168:27: warning: no previous prototype for function 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
168 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:168:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
168 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:173:27: warning: no previous prototype for function 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
173 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:173:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
173 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:179:27: warning: no previous prototype for function 'bpf_mem_totalcma' [-Wmissing-prototypes]
179 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:179:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
179 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:184:27: warning: no previous prototype for function 'bpf_mem_freecma' [-Wmissing-prototypes]
184 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:184:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
184 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^
| static
20 warnings generated.
vim +/bpf_mem_totalcma +179 kernel/bpf-rvi/common_kfuncs.c
178
> 179 __bpf_kfunc unsigned long bpf_mem_totalcma(void)
180 {
181 return totalcma_pages;
182 }
183
> 184 __bpf_kfunc unsigned long bpf_mem_freecma(void)
185 {
186 return global_zone_page_state(NR_FREE_CMA_PAGES);
187 }
188
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:openEuler-1.0-LTS 1755/1755] kernel/futex.c:1209: warning: Function parameter or member 'ret' not described in 'wait_for_owner_exiting'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 8723dc57de6371f9cc8764e15d4cc9e57ae592ee
commit: 0b7ab5fb231754def820e514cc7607bbad377928 [1755/1755] futex: Prevent exit livelock
config: x86_64-buildonly-randconfig-2002-20250811 (https://download.01.org/0day-ci/archive/20250815/202508151048.nycUlzlC-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/202508151048.nycUlzlC-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/202508151048.nycUlzlC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/futex.c:1209: warning: Function parameter or member 'ret' not described in 'wait_for_owner_exiting'
vim +1209 kernel/futex.c
1201
1202 /**
1203 * wait_for_owner_exiting - Block until the owner has exited
1204 * @exiting: Pointer to the exiting task
1205 *
1206 * Caller must hold a refcount on @exiting.
1207 */
1208 static void wait_for_owner_exiting(int ret, struct task_struct *exiting)
> 1209 {
1210 if (ret != -EBUSY) {
1211 WARN_ON_ONCE(exiting);
1212 return;
1213 }
1214
1215 if (WARN_ON_ONCE(ret == -EBUSY && !exiting))
1216 return;
1217
1218 mutex_lock(&exiting->futex_exit_mutex);
1219 /*
1220 * No point in doing state checking here. If the waiter got here
1221 * while the task was in exec()->exec_futex_release() then it can
1222 * have any FUTEX_STATE_* value when the waiter has acquired the
1223 * mutex. OK, if running, EXITING or DEAD if it reached exit()
1224 * already. Highly unlikely and not a problem. Just one more round
1225 * through the futex maze.
1226 */
1227 mutex_unlock(&exiting->futex_exit_mutex);
1228
1229 put_task_struct(exiting);
1230 }
1231
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:162:27: warning: no previous prototype for function 'bpf_mem_file_hugepage'
by kernel test robot 15 Aug '25
by kernel test robot 15 Aug '25
15 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d
commit: d97bc9c8827bb5cd9f66dab10e0b505a879256e2 [2679/2679] bpf-rvi: Add bpf_mem_{file_{hugepage,pmdmapped},kreclaimable} kfunc
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508151431.mBUI7ayW-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/202508151431.mBUI7ayW-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/202508151431.mBUI7ayW-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:34:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes]
34 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task)
| ^
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 struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:39:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes]
39 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns)
| ^
kernel/bpf-rvi/common_kfuncs.c:39:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
39 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:53:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes]
53 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns)
| ^
kernel/bpf-rvi/common_kfuncs.c:53:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
53 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:82:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes]
82 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi)
| ^
kernel/bpf-rvi/common_kfuncs.c:82:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
82 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:92:27: warning: no previous prototype for function 'bpf_page_counter_read' [-Wmissing-prototypes]
92 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter)
| ^
kernel/bpf-rvi/common_kfuncs.c:92:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
92 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:102:18: warning: no previous prototype for function 'bpf_seq_file_append' [-Wmissing-prototypes]
102 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src)
| ^
kernel/bpf-rvi/common_kfuncs.c:102:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
102 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:116:18: warning: no previous prototype for function 'bpf_get_boottime_timens' [-Wmissing-prototypes]
116 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
kernel/bpf-rvi/common_kfuncs.c:116:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
116 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:122:27: warning: no previous prototype for function 'bpf_get_total_forks' [-Wmissing-prototypes]
122 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:122:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
122 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:127:26: warning: no previous prototype for function 'bpf_nr_running' [-Wmissing-prototypes]
127 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:127:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
127 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:132:32: warning: no previous prototype for function 'bpf_nr_context_switches' [-Wmissing-prototypes]
132 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:132:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
132 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:137:26: warning: no previous prototype for function 'bpf_nr_iowait' [-Wmissing-prototypes]
137 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:137:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
137 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:143:26: warning: no previous prototype for function 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes]
143 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:143:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
143 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:148:27: warning: no previous prototype for function 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes]
148 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:148:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
148 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^
| static
kernel/bpf-rvi/common_kfuncs.c:153:18: warning: no previous prototype for function 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes]
153 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
kernel/bpf-rvi/common_kfuncs.c:153:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
153 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:162:27: warning: no previous prototype for function 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
162 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:162:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
162 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:167:27: warning: no previous prototype for function 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
167 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:167:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
167 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^
| static
>> kernel/bpf-rvi/common_kfuncs.c:172:27: warning: no previous prototype for function 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
172 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
kernel/bpf-rvi/common_kfuncs.c:172:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
172 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^
| static
18 warnings generated.
vim +/bpf_mem_file_hugepage +162 kernel/bpf-rvi/common_kfuncs.c
157
158 /*
159 * Meminfo related kfuncs
160 */
161
> 162 __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
163 {
164 return global_node_page_state(NR_FILE_THPS);
165 }
166
> 167 __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
168 {
169 return global_node_page_state(NR_FILE_PMDMAPPED);
170 }
171
> 172 __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
173 {
174 return global_node_page_state_pages(NR_SLAB_RECLAIMABLE_B) +
175 global_node_page_state(NR_KERNEL_MISC_RECLAIMABLE);
176 }
177
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0