tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: be0f563c86400c13b89cfd69a1cd7ca33f21ed54
commit: c2198809408cf67767651a83f3024c6340602479 [6901/12652] net: stmmac: clean all
pending Tx buffers during suspend
config: x86_64-randconfig-r006-20201111 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
874b0a0b9db93f5d3350ffe6b5efda2d908415d0)
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/intel/linux-intel-lts/commit/c2198809408cf67767651a83f...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout c2198809408cf67767651a83f3024c6340602479
# 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:802:3: warning: variable
'sec_inc' is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
stmmac_config_sub_second_increment(priv,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/hwif.h:666:2: note: expanded from macro
'stmmac_config_sub_second_increment'
stmmac_do_void_callback(__priv, ptp, config_sub_second_increment, __args)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/hwif.h:14:6: note: expanded from macro
'stmmac_do_void_callback'
if ((__priv)->hw->__module &&
(__priv)->hw->__module->__cname) { \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:807:33: note: uninitialized use
occurs here
temp = div_u64(1000000000ULL, sec_inc);
^~~~~~~
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:802:3: note: remove the 'if'
if its condition is always true
stmmac_config_sub_second_increment(priv,
^
drivers/net/ethernet/stmicro/stmmac/hwif.h:666:2: note: expanded from macro
'stmmac_config_sub_second_increment'
stmmac_do_void_callback(__priv, ptp, config_sub_second_increment, __args)
^
drivers/net/ethernet/stmicro/stmmac/hwif.h:14:2: note: expanded from macro
'stmmac_do_void_callback'
if ((__priv)->hw->__module &&
(__priv)->hw->__module->__cname) { \
^
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:802:3: warning: variable
'sec_inc' is used uninitialized whenever '&&' condition is false
[-Wsometimes-uninitialized]
stmmac_config_sub_second_increment(priv,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/hwif.h:666:2: note: expanded from macro
'stmmac_config_sub_second_increment'
stmmac_do_void_callback(__priv, ptp, config_sub_second_increment, __args)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/hwif.h:14:6: note: expanded from macro
'stmmac_do_void_callback'
if ((__priv)->hw->__module &&
(__priv)->hw->__module->__cname) { \
^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:807:33: note: uninitialized use
occurs here
temp = div_u64(1000000000ULL, sec_inc);
^~~~~~~
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:802:3: note: remove the
'&&' if its condition is always true
stmmac_config_sub_second_increment(priv,
^
drivers/net/ethernet/stmicro/stmmac/hwif.h:666:2: note: expanded from macro
'stmmac_config_sub_second_increment'
stmmac_do_void_callback(__priv, ptp, config_sub_second_increment, __args)
^
drivers/net/ethernet/stmicro/stmmac/hwif.h:14:6: note: expanded from macro
'stmmac_do_void_callback'
if ((__priv)->hw->__module &&
(__priv)->hw->__module->__cname) { \
^
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:767:13: note: initialize the variable
'sec_inc' to silence this warning
u32 sec_inc;
^
= 0
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1403:6: warning: no previous
prototype for function 'stmmac_alloc_rx_buffers' [-Wmissing-prototypes]
bool stmmac_alloc_rx_buffers(struct stmmac_rx_queue *rx_q, u32 count)
^
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1403:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
bool stmmac_alloc_rx_buffers(struct stmmac_rx_queue *rx_q, u32 count)
^
static
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5615:5: warning: no previous
prototype for function 'stmmac_xdp_xmit' [-Wmissing-prototypes]
int stmmac_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames,
^
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5615:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
int stmmac_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames,
^
static
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6293:6:
warning: no previous prototype for function 'stmmac_clean_all_tx_rings'
[-Wmissing-prototypes]
void stmmac_clean_all_tx_rings(struct stmmac_priv *priv)
^
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6293:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
void stmmac_clean_all_tx_rings(struct stmmac_priv *priv)
^
static
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:4232:19: warning: unused function
'stmmac_rx_threshold_count' [-Wunused-function]
static inline int stmmac_rx_threshold_count(struct stmmac_rx_queue *rx_q)
^
6 warnings generated.
vim +/stmmac_clean_all_tx_rings +6293 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
6292
6293 void stmmac_clean_all_tx_rings(struct stmmac_priv *priv)
6294 {
6295 u32 tx_count = priv->plat->tx_queues_to_use;
6296 u32 queue;
6297
6298 for (queue = 0; queue < tx_count; queue++) {
6299 struct stmmac_tx_queue *tx_q = get_tx_queue(priv, queue);
6300
6301 stmmac_clean_tx_queue(priv, tx_q);
6302 }
6303 }
6304
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org