tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 398d837363b6cac5548eda808de1dfd5269a960a commit: fd8c1a2ddc2f28838e4a6a8be6a7d6dc95a678d3 [7031/7157] SCSI: hisi_raid: support SPxxx serial RAID/HBA controllers config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240330/202403301744.3A4FOOJB-lkp@i...) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 79ba323bdd0843275019e16b6e9b35133677c514) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240330/202403301744.3A4FOOJB-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/202403301744.3A4FOOJB-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'hdev' not described in 'hiraid_create_complete_queue' drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'qid' not described in 'hiraid_create_complete_queue' drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'hiraidq' not described in 'hiraid_create_complete_queue' drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'cq_vector' not described in 'hiraid_create_complete_queue'
drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: expecting prototype for hiraid_create_cq(). Prototype was for hiraid_create_complete_queue() instead
drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: Function parameter or member 'hdev' not described in 'hiraid_create_send_queue' drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: Function parameter or member 'qid' not described in 'hiraid_create_send_queue' drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: Function parameter or member 'hiraidq' not described in 'hiraid_create_send_queue'
drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: expecting prototype for hiraid_create_sq(). Prototype was for hiraid_create_send_queue() instead
vim +1832 drivers/scsi/hisi_raid/hiraid_main.c
1826 1827 /** 1828 * hiraid_create_cq - send cmd to controller for create controller cq 1829 */ 1830 static int hiraid_create_complete_queue(struct hiraid_dev *hdev, u16 qid, 1831 struct hiraid_queue *hiraidq, u16 cq_vector)
1832 {
1833 struct hiraid_admin_command admin_cmd; 1834 int flags = HIRAID_QUEUE_PHYS_CONTIG | HIRAID_CQ_IRQ_ENABLED; 1835 1836 memset(&admin_cmd, 0, sizeof(admin_cmd)); 1837 admin_cmd.create_cq.opcode = HIRAID_ADMIN_CREATE_CQ; 1838 admin_cmd.create_cq.prp1 = cpu_to_le64(hiraidq->cq_buffer_phy); 1839 admin_cmd.create_cq.cqid = cpu_to_le16(qid); 1840 admin_cmd.create_cq.qsize = cpu_to_le16(hiraidq->q_depth - 1); 1841 admin_cmd.create_cq.cq_flags = cpu_to_le16(flags); 1842 admin_cmd.create_cq.irq_vector = cpu_to_le16(cq_vector); 1843 1844 return hiraid_put_admin_sync_request(hdev, &admin_cmd, NULL, NULL, 0); 1845 } 1846 1847 /** 1848 * hiraid_create_sq - send cmd to controller for create controller sq 1849 */ 1850 static int hiraid_create_send_queue(struct hiraid_dev *hdev, u16 qid, 1851 struct hiraid_queue *hiraidq)
1852 {
1853 struct hiraid_admin_command admin_cmd; 1854 int flags = HIRAID_QUEUE_PHYS_CONTIG; 1855 1856 memset(&admin_cmd, 0, sizeof(admin_cmd)); 1857 admin_cmd.create_sq.opcode = HIRAID_ADMIN_CREATE_SQ; 1858 admin_cmd.create_sq.prp1 = cpu_to_le64(hiraidq->sq_buffer_phy); 1859 admin_cmd.create_sq.sqid = cpu_to_le16(qid); 1860 admin_cmd.create_sq.qsize = cpu_to_le16(hiraidq->q_depth - 1); 1861 admin_cmd.create_sq.sq_flags = cpu_to_le16(flags); 1862 admin_cmd.create_sq.cqid = cpu_to_le16(qid); 1863 1864 return hiraid_put_admin_sync_request(hdev, &admin_cmd, NULL, NULL, 0); 1865 } 1866