[avpatel:riscv_trace_support_v4 51/66] arch/riscv/include/asm/sbi.h:826:18: warning: 'struct sbi_mpxy_notification_data' declared inside parameter list will not be visible outside of this definition or declaration
kernel test robot <[email protected]> Thu, 30 Jul 2026 09:30:59 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/avpatel/linux.git riscv_trace_support_v4 head: 19d7863d5c8c0f96c1ff517918afda2aa9e34a58 commit: 4ed294505c85440de3e3bb514980b2996f061dea [51/66] RISC-V: Move common MPXY helper routines to arch/riscv config: riscv-randconfig-002-20260730 (https://download.01.org/0day-ci/archive/20260730/[email protected]/config) compiler: riscv64-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260730/[email protected]/reproduce) 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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): In file included from arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h:12, from arch/riscv/include/asm/kvm_host.h:25, from arch/riscv/kernel/asm-offsets.c:13: arch/riscv/include/asm/sbi.h:799:5: warning: no previous prototype for 'sbi_mpxy_read_attrs' [-Wmissing-prototypes] 799 | int sbi_mpxy_read_attrs(u32 channel_id, u32 base_attrid, u32 attr_count, | ^~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:805:5: warning: no previous prototype for 'sbi_mpxy_write_attrs' [-Wmissing-prototypes] 805 | int sbi_mpxy_write_attrs(u32 channel_id, u32 base_attrid, u32 attr_count, | ^~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:811:5: warning: no previous prototype for 'sbi_mpxy_send_message_with_resp' [-Wmissing-prototypes] 811 | int sbi_mpxy_send_message_with_resp(u32 channel_id, u32 msg_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:819:5: warning: no previous prototype for 'sbi_mpxy_send_message_without_resp' [-Wmissing-prototypes] 819 | int sbi_mpxy_send_message_without_resp(u32 channel_id, u32 msg_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> arch/riscv/include/asm/sbi.h:826:18: warning: 'struct sbi_mpxy_notification_data' declared inside parameter list will not be visible outside of this definition or declaration 826 | struct sbi_mpxy_notification_data *notif_data, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:825:5: warning: no previous prototype for 'sbi_mpxy_get_notifications' [-Wmissing-prototypes] 825 | int sbi_mpxy_get_notifications(u32 channel_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h:12, from arch/riscv/include/asm/kvm_host.h:25, from arch/riscv/kernel/asm-offsets.c:13: arch/riscv/include/asm/sbi.h:799:5: warning: no previous prototype for 'sbi_mpxy_read_attrs' [-Wmissing-prototypes] 799 | int sbi_mpxy_read_attrs(u32 channel_id, u32 base_attrid, u32 attr_count, | ^~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:805:5: warning: no previous prototype for 'sbi_mpxy_write_attrs' [-Wmissing-prototypes] 805 | int sbi_mpxy_write_attrs(u32 channel_id, u32 base_attrid, u32 attr_count, | ^~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:811:5: warning: no previous prototype for 'sbi_mpxy_send_message_with_resp' [-Wmissing-prototypes] 811 | int sbi_mpxy_send_message_with_resp(u32 channel_id, u32 msg_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:819:5: warning: no previous prototype for 'sbi_mpxy_send_message_without_resp' [-Wmissing-prototypes] 819 | int sbi_mpxy_send_message_without_resp(u32 channel_id, u32 msg_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> arch/riscv/include/asm/sbi.h:826:18: warning: 'struct sbi_mpxy_notification_data' declared inside parameter list will not be visible outside of this definition or declaration 826 | struct sbi_mpxy_notification_data *notif_data, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:825:5: warning: no previous prototype for 'sbi_mpxy_get_notifications' [-Wmissing-prototypes] 825 | int sbi_mpxy_get_notifications(u32 channel_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ vim +826 arch/riscv/include/asm/sbi.h 824 825 int sbi_mpxy_get_notifications(u32 channel_id, > 826 struct sbi_mpxy_notification_data *notif_data, 827 unsigned long *events_data_len) 828 { 829 return -ENODEV; 830 } 831 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki