[xlnx:master 12/20] drivers/misc/xilinx-ai-engine/ai-engine-fpga.c:21:2: note: in expansion of macro 'mutex_lock_interruptible'
From: kernel test robot <hidden>
Date: 2020-06-18 19:49:22
Also in:
oe-kbuild-all
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: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): git checkout e24d5dbb603552c4cb9c9e946c78055a60f83d85 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/linux/kernfs.h:12, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/cdev.h:5, from drivers/misc/xilinx-ai-engine/ai-engine-internal.h:12, from drivers/misc/xilinx-ai-engine/ai-engine-fpga.c:8: drivers/misc/xilinx-ai-engine/ai-engine-fpga.c: In function 'aie_fpga_bridge_enable_set': include/linux/mutex.h:154:40: warning: ignoring return value of 'mutex_lock_interruptible_nested', declared with attribute warn_unused_result [-Wunused-result] 154 | #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
quoted
drivers/misc/xilinx-ai-engine/ai-engine-fpga.c:21:2: note: in expansion of macro 'mutex_lock_interruptible'
21 | mutex_lock_interruptible(&apart->mlock);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/xilinx-ai-engine/ai-engine-fpga.c: In function 'aie_fpga_bridge_enable_show':
include/linux/mutex.h:154:40: warning: ignoring return value of 'mutex_lock_interruptible_nested', declared with attribute warn_unused_result [-Wunused-result]
154 | #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/xilinx-ai-engine/ai-engine-fpga.c:35:2: note: in expansion of macro 'mutex_lock_interruptible'
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 Attachments
- .config.gz [application/gzip] 70364 bytes
- (unnamed) [text/plain] 176 bytes · preview