tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 541ec9a6995c3dd881d6f0b63cc714a08ded457d
commit: e8b4dc77fb9d30b4574ed7219358cec731d286c9 [10192/10213] net: ethernet: ti:
am65-cpsw-qos: iet: allow to set addfragsize
config: arm64-allyesconfig
(
https://download.01.org/0day-ci/archive/20211209/202112090247.p3e1Xg7B-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.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 remote add ti
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout e8b4dc77fb9d30b4574ed7219358cec731d286c9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=arm64 SHELL=/bin/bash drivers/net/ethernet/ti/
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 >>):
drivers/net/ethernet/ti/am65-debugfs.c: In function 'iet_addfragsize_set':
> drivers/net/ethernet/ti/am65-debugfs.c:150:34: warning: variable
'common' set but not used [-Wunused-but-set-variable]
150 |
struct am65_cpsw_common *common;
| ^~~~~~
vim +/common +150 drivers/net/ethernet/ti/am65-debugfs.c
144
145 static int
146 iet_addfragsize_set(void *data, u64 val)
147 {
148 struct am65_cpsw_iet *iet;
149 struct am65_cpsw_port *port = data;
150 struct am65_cpsw_common *common;
151 int ret = 0;
152
153 if (val > 512)
154 return -EINVAL;
155
156 if (!rtnl_trylock())
157 return restart_syscall();
158
159 common = port->common;
160 iet = &port->qos.iet;
161
162 /* hw addfragsize is in 64 octet units*/
163 iet->addfragsize = (val >> 6) - 1;
164
165 rtnl_unlock();
166 return ret;
167 }
168
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org