tree:
https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: a8a2b9ee4bec0b29d031324160b7f11af42a563a
commit: 44980ad6bb897f146cdf6e8133b20e99eaa4db91 [6973/16543] MLK-23251-01: net: stmac:
tsn: add tc mqprio support
config: x86_64-randconfig-a004-20210114 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
6077d55381a6aa3e947ef7abdc36a7515c598c8a)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/Freescale/linux-fslc/commit/44980ad6bb897f146cdf6e8133...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 44980ad6bb897f146cdf6e8133b20e99eaa4db91
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/stmicro/stmmac/stmmac_main.c:4112:5:
warning: no previous prototype for function 'stmmactc_setup_mqprio'
[-Wmissing-prototypes]
int stmmactc_setup_mqprio(struct net_device *ndev, void
*type_data)
^
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:4112:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
int stmmactc_setup_mqprio(struct net_device *ndev, void *type_data)
^
static
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3442:19: warning: unused function
'stmmac_rx_threshold_count' [-Wunused-function]
static inline int stmmac_rx_threshold_count(struct stmmac_rx_queue *rx_q)
^
2 warnings generated.
vim +/stmmactc_setup_mqprio +4112 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
4111
4112 int stmmactc_setup_mqprio(struct net_device *ndev, void
*type_data)
4113 {
4114 struct tc_mqprio_qopt *mqprio = type_data;
4115 u8 num_tc;
4116 int i;
4117
4118 num_tc = mqprio->num_tc;
4119 netif_set_real_num_tx_queues(ndev, num_tc);
4120 netdev_set_num_tc(ndev, num_tc);
4121 for (i = 0; i < num_tc; i++)
4122 netdev_set_tc_queue(ndev, i, 1, i);
4123
4124 return 0;
4125 }
4126
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org