tree:
https://github.com/Xilinx/linux-xlnx master
head: 319e5bc767fe351a63744daa9cdd69b1915956d0
commit: e24d5dbb603552c4cb9c9e946c78055a60f83d85 [12/20] misc: ai-engine: Add FPGA bridge
to AI engine partition
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.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
git checkout e24d5dbb603552c4cb9c9e946c78055a60f83d85
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/misc/xilinx-ai-engine/ai-engine-fpga.c: In function
'aie_fpga_bridge_enable_set':
> drivers/misc/xilinx-ai-engine/ai-engine-fpga.c:21:2: warning:
ignoring return value of 'mutex_lock_interruptible', declared with attribute
warn_unused_result [-Wunused-result]
21 |
mutex_lock_interruptible(&apart->mlock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/xilinx-ai-engine/ai-engine-fpga.c: In function
'aie_fpga_bridge_enable_show':
drivers/misc/xilinx-ai-engine/ai-engine-fpga.c:35:2: warning: ignoring return value of
'mutex_lock_interruptible', declared with attribute warn_unused_result
[-Wunused-result]
35 | mutex_lock_interruptible(&apart->mlock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/mutex_lock_interruptible +21 drivers/misc/xilinx-ai-engine/ai-engine-fpga.c
9
10 static int aie_fpga_bridge_enable_set(struct fpga_bridge *bridge, bool enable)
11 {
12 struct aie_partition *apart = bridge->priv;
13
14 /*
15 * TBD:
16 * "Enable" should enable the SHIM tile configuration.
17 * "Disable" should should disable SHIM DMAs, and wait
18 * until SHIM DMA stops, and disable SHIM
19 * to PL streams within partition.
20 */
21 mutex_lock_interruptible(&apart->mlock);
22 if
(enable)
23 apart->status |= XAIE_PART_STATUS_BRIDGE_ENABLED;
24 else
25 apart->status &= ~XAIE_PART_STATUS_BRIDGE_ENABLED;
26 mutex_unlock(&apart->mlock);
27 return 0;
28 }
29
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org