[xilinx-xlnx:xlnx_rebase_v5.15_LTS 504/1129] drivers/uio/uio_xilinx_ai_engine.c:39:13: warning: variable 'irq' set but not used
kernel test robot
lkp at intel.com
Sat May 7 04:59:47 PDT 2022
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head: 3076249fc30bf463f8390f89009de928ad3e95ff
commit: b5ba2242e583191fd0b0c75c614c87ae02a06cf3 [504/1129] uio: Add the UIO driver for AI engine
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220507/202205071959.uBR9LF9I-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Xilinx/linux-xlnx/commit/b5ba2242e583191fd0b0c75c614c87ae02a06cf3
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
git checkout b5ba2242e583191fd0b0c75c614c87ae02a06cf3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/xlnx/ drivers/media/i2c/ drivers/media/mc/ drivers/media/platform/xilinx/ drivers/net/ethernet/xilinx/ drivers/phy/xilinx/ drivers/staging/ drivers/uio/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/uio/uio_xilinx_ai_engine.c: In function 'xilinx_ai_engine_debugfs_write':
>> drivers/uio/uio_xilinx_ai_engine.c:39:13: warning: variable 'irq' set but not used [-Wunused-but-set-variable]
39 | int irq, ret;
| ^~~
vim +/irq +39 drivers/uio/uio_xilinx_ai_engine.c
33
34 static ssize_t xilinx_ai_engine_debugfs_write(struct file *f,
35 const char __user *buf,
36 size_t size, loff_t *pos)
37 {
38 struct irq_domain *irq_sim_domain = file_inode(f)->i_private;
> 39 int irq, ret;
40
41 irq = irq_find_mapping(irq_sim_domain, 1);
42 ret = irq_set_irqchip_state(1, IRQCHIP_STATE_PENDING, true);
43 if (ret)
44 return ret;
45
46 return size;
47 }
48
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the linux-arm-kernel
mailing list