[gabbayo:habanalabs-next 33/38] drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c:72:6: warning: variable 'rc' set but not used
kbuild test robot
lkp at intel.com
Tue May 19 10:06:46 UTC 2020
tree: git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head: addd4be0a770e4cf5607310459cb7c8d11c8ae57
commit: f0fdc034c52b87d1c11bc28e2affd9d5a41a419b [33/38] habanalabs: add hwmgr module for gaudi
config: m68k-randconfig-r012-20200519 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout f0fdc034c52b87d1c11bc28e2affd9d5a41a419b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp at intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c: In function 'clk_max_freq_mhz_store':
>> drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c:72:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
72 | int rc;
| ^~
vim +/rc +72 drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c
66
67 static ssize_t clk_max_freq_mhz_store(struct device *dev,
68 struct device_attribute *attr, const char *buf, size_t count)
69 {
70 struct hl_device *hdev = dev_get_drvdata(dev);
71 struct gaudi_device *gaudi = hdev->asic_specific;
> 72 int rc;
73 u64 value;
74
75 if (hl_device_disabled_or_in_reset(hdev)) {
76 count = -ENODEV;
77 goto fail;
78 }
79
80 rc = kstrtoull(buf, 0, &value);
81
82 gaudi->max_freq_value = value * 1000 * 1000;
83
84 hl_set_frequency(hdev, MME_PLL, gaudi->max_freq_value);
85
86 fail:
87 return count;
88 }
89
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 34854 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200519/b01e05a3/attachment-0001.gz>
More information about the dri-devel
mailing list