From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH RESEND-2 RFC net-next 12/18] devlink: Introduce rate nodes
Date: Thu, 22 Apr 2021 05:31:58 +0800 [thread overview]
Message-ID: <202104220528.7vTyMRyR-lkp@intel.com> (raw)
In-Reply-To: <1619020385-20220-13-git-send-email-dlinkin@nvidia.com>
[-- Attachment #1: Type: text/plain, Size: 3782 bytes --]
Hi,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/dlinkin-nvidia-com/devlink-rate-objects-API/20210421-235552
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git a926c025d56bb1acd8a192fca0e307331ee91b30
config: arm-randconfig-r036-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/ddc9bb1d01c107824714706f9fbd6264b8eb4b38
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review dlinkin-nvidia-com/devlink-rate-objects-API/20210421-235552
git checkout ddc9bb1d01c107824714706f9fbd6264b8eb4b38
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> net/core/devlink.c:1588:12: warning: variable 'err' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if (devlink_rate_is_node(devlink_rate))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/core/devlink.c:1591:7: note: uninitialized use occurs here
if (err)
^~~
net/core/devlink.c:1588:8: note: remove the 'if' if its condition is always true
else if (devlink_rate_is_node(devlink_rate))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/core/devlink.c:1581:9: note: initialize the variable 'err' to silence this warning
int err;
^
= 0
1 warning generated.
vim +1588 net/core/devlink.c
1574
1575 static int devlink_nl_rate_set(struct devlink_rate *devlink_rate,
1576 const struct devlink_ops *ops,
1577 struct genl_info *info)
1578 {
1579 struct nlattr **attrs = info->attrs;
1580 u64 rate;
1581 int err;
1582
1583 if (attrs[DEVLINK_ATTR_RATE_TX_SHARE]) {
1584 rate = nla_get_u64(attrs[DEVLINK_ATTR_RATE_TX_SHARE]);
1585 if (devlink_rate_is_leaf(devlink_rate))
1586 err = ops->rate_leaf_tx_share_set(devlink_rate, devlink_rate->priv,
1587 rate, info->extack);
> 1588 else if (devlink_rate_is_node(devlink_rate))
1589 err = ops->rate_node_tx_share_set(devlink_rate, devlink_rate->priv,
1590 rate, info->extack);
1591 if (err)
1592 return err;
1593 devlink_rate->tx_share = rate;
1594 }
1595
1596 if (attrs[DEVLINK_ATTR_RATE_TX_MAX]) {
1597 rate = nla_get_u64(attrs[DEVLINK_ATTR_RATE_TX_MAX]);
1598 if (devlink_rate_is_leaf(devlink_rate))
1599 err = ops->rate_leaf_tx_max_set(devlink_rate, devlink_rate->priv,
1600 rate, info->extack);
1601 else if (devlink_rate_is_node(devlink_rate))
1602 err = ops->rate_node_tx_max_set(devlink_rate, devlink_rate->priv,
1603 rate, info->extack);
1604 if (err)
1605 return err;
1606 devlink_rate->tx_max = rate;
1607 }
1608
1609 return 0;
1610 }
1611
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34045 bytes --]
next prev parent reply other threads:[~2021-04-21 21:31 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-21 15:52 [PATCH RESEND-2 RFC net-next 00/18] devlink: rate objects API dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 01/18] netdevsim: Add max_vfs to bus_dev dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 02/18] netdevsim: Disable VFs on nsim_dev_reload_destroy() call dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 03/18] netdevsim: Implement port types and indexing dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 04/18] netdevsim: Implement VFs dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 05/18] netdevsim: Implement legacy/switchdev mode for VFs dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 06/18] devlink: Introduce rate object dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 07/18] netdevsim: Register devlink rate leaf objects per VF dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 08/18] selftest: netdevsim: Add devlink rate test dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 09/18] devlink: Allow setting tx rate for devlink rate leaf objects dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 10/18] netdevsim: Implement devlink rate leafs tx rate support dlinkin
2021-04-22 12:30 ` kernel test robot
2021-04-22 15:18 ` kernel test robot
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 11/18] selftest: netdevsim: Add devlink port shared/max tx rate test dlinkin
2021-04-21 15:52 ` [PATCH RESEND-2 RFC net-next 12/18] devlink: Introduce rate nodes dlinkin
2021-04-21 21:31 ` kernel test robot [this message]
2021-04-21 21:32 ` kernel test robot
2021-04-23 9:37 ` Dan Carpenter
2021-04-23 9:37 ` Dan Carpenter
2021-04-23 10:26 ` Dmytro Linkin
2021-04-21 15:53 ` [PATCH RESEND-2 RFC net-next 13/18] netdevsim: Implement support for devlink " dlinkin
2021-04-21 15:53 ` [PATCH RESEND-2 RFC net-next 14/18] selftest: netdevsim: Add devlink rate nodes test dlinkin
2021-04-21 15:53 ` [PATCH RESEND-2 RFC net-next 15/18] devlink: Allow setting parent node of rate objects dlinkin
2021-04-21 15:53 ` [PATCH RESEND-2 RFC net-next 16/18] netdevsim: " dlinkin
2021-04-21 15:53 ` [PATCH RESEND-2 RFC net-next 17/18] selftest: netdevsim: Add devlink rate grouping test dlinkin
2021-04-21 15:53 ` [PATCH RESEND-2 RFC net-next 18/18] Documentation: devlink rate objects dlinkin
-- strict thread matches above, loose matches on Subject: below --
2021-04-21 22:27 [PATCH RESEND-2 RFC net-next 12/18] devlink: Introduce rate nodes kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202104220528.7vTyMRyR-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.