[openeuler:OLK-6.6 3124/3124] drivers/ub/ubase/ubase_ctrlq.c:875:6: warning: no previous prototype for function 'ubase_ctrlq_crq_handler'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66984acf4b16f28a2cc0d5d6186b4b6bbfd92e26 commit: d7ce08663cc5bc33993af7b046eb09e98640c404 [3124/3124] ub: ubase: Supports for ctrl queue management. config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251108/202511081833.oncKY6Q3-lkp@i...) 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/20251108/202511081833.oncKY6Q3-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202511081833.oncKY6Q3-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/ub/ubase/ubase_ctrlq.c:875:6: warning: no previous prototype for function 'ubase_ctrlq_crq_handler' [-Wmissing-prototypes] 875 | void ubase_ctrlq_crq_handler(struct ubase_dev *udev) | ^ drivers/ub/ubase/ubase_ctrlq.c:875:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 875 | void ubase_ctrlq_crq_handler(struct ubase_dev *udev) | ^ | static 1 warning generated.
vim +/ubase_ctrlq_crq_handler +875 drivers/ub/ubase/ubase_ctrlq.c 874
875 void ubase_ctrlq_crq_handler(struct ubase_dev *udev) 876 { 877 struct ubase_ctrlq_ring *crq = &udev->ctrlq.crq; 878 struct ub_entity *ue = to_ub_entity(udev->dev); 879 struct ubase_ctrlq_base_block head = {0}; 880 u8 bb_num; 881 u8 *addr; 882 u16 seq; 883 884 while (!ubase_ctrlq_crq_is_empty(udev, &udev->hw)) { 885 if (!test_bit(UBASE_CTRLQ_STATE_ENABLE, &udev->ctrlq.state)) { 886 ubase_warn(udev, "ctrlq is disabled in crq.\n"); 887 return; 888 } 889 890 addr = crq->base_addr + crq->ci * UBASE_CTRLQ_BB_LEN; 891 memcpy_fromio(&head, addr, UBASE_CTRLQ_HDR_LEN); 892 seq = le16_to_cpu(head.seq); 893 bb_num = head.bb_num; 894 895 if (unlikely(!bb_num || bb_num > UBASE_CTRLQ_MAX_BB)) { 896 ubase_err(udev, "ctrlq crq bb_num(%u) is invalid.\n", 897 bb_num); 898 ubase_ctrlq_reset_crq_ci(udev); 899 return; 900 } 901 902 if (!ubase_ctrlq_check_seq(udev, seq)) { 903 ubase_warn(udev, 904 "ctrlq recv invalid seq, seq = %u.\n", seq); 905 ubase_ctrlq_update_crq_ci(udev, bb_num); 906 continue; 907 } 908 909 if (le16_to_cpu(head.bus_ue_id) == ue->entity_idx) 910 ubase_ctrlq_handle_self_msg(udev, &head); 911 else 912 ubase_ctrlq_handle_other_msg(udev, &head); 913 914 ubase_ctrlq_update_crq_ci(udev, bb_num); 915 } 916 } 917
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot