tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 5a1d9701155c6908c76c68951170f10279685143 commit: bacc47789eb5be49559f82859f5e4f0f25122af6 [29981/30000] driver:misc:sdma-dae: add debugfs of sdma-dae config: arm64-randconfig-002-20240914 (https://download.01.org/0day-ci/archive/20240914/202409140941.IxieoOe3-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240914/202409140941.IxieoOe3-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/202409140941.IxieoOe3-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/misc/sdma-dae/sdma_dbg.c:6: drivers/misc/sdma-dae/sdma_hal.h: In function 'sdma_channel_clear_ioe_status': drivers/misc/sdma-dae/sdma_hal.h:227:32: warning: variable 'reg_val' set but not used [-Wunused-but-set-variable] 227 | union sdmam_irq_status reg_val = {0}; | ^~~~~~~ drivers/misc/sdma-dae/sdma_dbg.c: In function 'sdma_debugfs_stats_show':
drivers/misc/sdma-dae/sdma_dbg.c:84:13: warning: variable 'exclusive_chn_num' set but not used [-Wunused-but-set-variable]
84 | u32 exclusive_chn_num; | ^~~~~~~~~~~~~~~~~
vim +/exclusive_chn_num +84 drivers/misc/sdma-dae/sdma_dbg.c
75 76 static int sdma_debugfs_stats_show(struct seq_file *f, void *data SDMA_UNUSED) 77 { 78 u32 num = dbg_g_info.core_dev->sdma_device_num; 79 struct hisi_sdma_chn_num chn_num; 80 struct hisi_sdma_channel *pchan; 81 struct hisi_sdma_device *dev; 82 u32 exclusive_chn_used_nr; 83 u32 share_chn_used_nr;
84 u32 exclusive_chn_num;
85 u32 chn_idx; 86 u32 i; 87 88 split_line(f); 89 seq_printf(f, "SDMA Devices Num = %u\n", num); 90 if (num == 0) 91 return 0; 92 93 for (i = 0; i < num; i++) { 94 spin_lock(&dbg_g_info.core_dev->device_lock); 95 dev = dbg_g_info.core_dev->sdma_devices[i]; 96 if (!dev) { 97 seq_puts(f, "sdma_devices already released!\n"); 98 spin_unlock(&dbg_g_info.core_dev->device_lock); 99 return -ENXIO; 100 } 101 chn_num = sdma_chn_info(f, dev); 102 exclusive_chn_num = chn_num.total_chn_num - chn_num.share_chn_num; 103 exclusive_chn_used_nr = dev->nr_channel_used; 104 seq_printf(f, "Used exclusive chn total num = %u\n", exclusive_chn_used_nr); 105 seq_puts(f, "\n"); 106 split_line(f); 107 share_chn_used_nr = 0; 108 chn_idx = 0; 109 seq_printf(f, "SDMA[%u] Used share chn id:\n", i); 110 while (chn_idx < chn_num.share_chn_num) { 111 pchan = dev->channels + chn_idx; 112 if (pchan->cnt_used != 0) { 113 share_chn_used_nr++; 114 seq_printf(f, "%u\t", chn_idx); 115 } 116 ++chn_idx; 117 } 118 seq_printf(f, "\nSDMA[%u] Used share chn total num = %u\n", i, share_chn_used_nr); 119 split_line(f); 120 sdma_scan_channel_status(f, dev, chn_num.share_chn_num); 121 spin_unlock(&dbg_g_info.core_dev->device_lock); 122 } 123 124 return 0; 125 } 126