From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/net/ethernet/intel/ice/ice_tc_lib.c:853:29: warning: Uninitialized variable: fltr->src_vsi [uninitvar]
Date: Sat, 07 May 2022 07:57:44 +0800 [thread overview]
Message-ID: <202205070748.dLsOS9IE-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2445 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Michal Swiatkowski <michal.swiatkowski@intel.com>
CC: Tony Nguyen <anthony.l.nguyen@intel.com>
CC: Wojciech Drewek <wojciech.drewek@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b97bac0756a81cda5afd45417a99b5bccdcff67
commit: 7fde6d8b445f3af9caa5f3c2be384c2f797e21c5 ice: ndo_setup_tc implementation for PR
date: 7 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 7 months ago
compiler: sparc-linux-gcc (GCC) 11.3.0
reproduce (cppcheck warning):
# apt-get install cppcheck
git checkout 7fde6d8b445f3af9caa5f3c2be384c2f797e21c5
cppcheck --quiet --enable=style,performance,portability --template=gcc FILE
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> drivers/net/ethernet/intel/ice/ice_tc_lib.c:853:29: warning: Uninitialized variable: fltr->src_vsi [uninitvar]
ice_add_switch_fltr(fltr->src_vsi, fltr);
^
vim +853 drivers/net/ethernet/intel/ice/ice_tc_lib.c
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 839
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 840 /**
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 841 * ice_replay_tc_fltrs - replay TC filters
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 842 * @pf: pointer to PF struct
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 843 */
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 844 void ice_replay_tc_fltrs(struct ice_pf *pf)
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 845 {
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 846 struct ice_tc_flower_fltr *fltr;
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 847 struct hlist_node *node;
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 848
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 849 hlist_for_each_entry_safe(fltr, node,
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 850 &pf->tc_flower_fltr_list,
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 851 tc_flower_node) {
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 852 fltr->extack = NULL;
7fde6d8b445f3a Michal Swiatkowski 2021-08-06 @853 ice_add_switch_fltr(fltr->src_vsi, fltr);
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-05-06 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-06 23:57 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-08 7:46 drivers/net/ethernet/intel/ice/ice_tc_lib.c:853:29: warning: Uninitialized variable: fltr->src_vsi [uninitvar] 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=202205070748.dLsOS9IE-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@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.