From: kernel test robot <lkp@intel.com>
To: Philipp Hortmann <philipp.g.hortmann@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 4/8] staging: rtl8192e: Use standard function in rtllib_rx_check_duplicate()
Date: Tue, 12 Sep 2023 09:09:13 +0800 [thread overview]
Message-ID: <202309120956.6aSRBSxJ-lkp@intel.com> (raw)
In-Reply-To: <c636aadd4cf4898c57c348a1d789790c5a459749.1694282907.git.philipp.g.hortmann@gmail.com>
Hi Philipp,
kernel test robot noticed the following build warnings:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/Philipp-Hortmann/staging-rtl8192e-Remove-useless-equation-in-debug-output/20230910-022154
base: staging/staging-testing
patch link: https://lore.kernel.org/r/c636aadd4cf4898c57c348a1d789790c5a459749.1694282907.git.philipp.g.hortmann%40gmail.com
patch subject: [PATCH 4/8] staging: rtl8192e: Use standard function in rtllib_rx_check_duplicate()
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20230912/202309120956.6aSRBSxJ-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230912/202309120956.6aSRBSxJ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309120956.6aSRBSxJ-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/staging/rtl8192e/rtllib_rx.c:925:9: warning: variable 'fc' is uninitialized when used here [-Wuninitialized]
if ((fc & (1 << 11)) && (frag == pRxTS->rx_last_frag_num) &&
^~
drivers/staging/rtl8192e/rtllib_rx.c:906:8: note: initialize the variable 'fc' to silence this warning
u16 fc, sc;
^
= 0
1 warning generated.
vim +/fc +925 drivers/staging/rtl8192e/rtllib_rx.c
94a799425eee82 Larry Finger 2011-08-23 901
49aab5fd9df153 Larry Finger 2011-08-25 902 static int rtllib_rx_check_duplicate(struct rtllib_device *ieee,
49aab5fd9df153 Larry Finger 2011-08-25 903 struct sk_buff *skb, u8 multicast)
94a799425eee82 Larry Finger 2011-08-23 904 {
94a799425eee82 Larry Finger 2011-08-23 905 struct rtllib_hdr_4addr *hdr = (struct rtllib_hdr_4addr *)skb->data;
94a799425eee82 Larry Finger 2011-08-23 906 u16 fc, sc;
ffed9955529a37 Philipp Hortmann 2023-09-09 907 u8 frag;
94a799425eee82 Larry Finger 2011-08-23 908
94a799425eee82 Larry Finger 2011-08-23 909 sc = le16_to_cpu(hdr->seq_ctl);
94a799425eee82 Larry Finger 2011-08-23 910 frag = WLAN_GET_SEQ_FRAG(sc);
94a799425eee82 Larry Finger 2011-08-23 911
ccdbe14b77a5e3 Philipp Hortmann 2022-11-13 912 if (!ieee->ht_info->cur_rx_reorder_enable ||
94a799425eee82 Larry Finger 2011-08-23 913 !ieee->current_network.qos_data.active ||
94a799425eee82 Larry Finger 2011-08-23 914 !IsDataFrame(skb->data) ||
94a799425eee82 Larry Finger 2011-08-23 915 IsLegacyDataFrame(skb->data)) {
ffed9955529a37 Philipp Hortmann 2023-09-09 916 if (!ieee80211_is_beacon(hdr->frame_ctl)) {
db8971b618ed96 Larry Finger 2011-08-25 917 if (is_duplicate_packet(ieee, hdr))
94a799425eee82 Larry Finger 2011-08-23 918 return -1;
94a799425eee82 Larry Finger 2011-08-23 919 }
94a799425eee82 Larry Finger 2011-08-23 920 } else {
2c47ae282a4bba Larry Finger 2011-07-18 921 struct rx_ts_record *pRxTS = NULL;
3a6b70c3f3558a Matthew Casey 2014-08-22 922
74724de1c40192 Larry Finger 2011-07-18 923 if (GetTs(ieee, (struct ts_common_info **)&pRxTS, hdr->addr2,
94a799425eee82 Larry Finger 2011-08-23 924 (u8)Frame_QoSTID((u8 *)(skb->data)), RX_DIR, true)) {
3b32b210c0717d William Durand 2021-03-01 @925 if ((fc & (1 << 11)) && (frag == pRxTS->rx_last_frag_num) &&
6d852649821da7 William Durand 2021-03-01 926 (WLAN_GET_SEQ_SEQ(sc) == pRxTS->rx_last_seq_num))
94a799425eee82 Larry Finger 2011-08-23 927 return -1;
3b32b210c0717d William Durand 2021-03-01 928 pRxTS->rx_last_frag_num = frag;
6d852649821da7 William Durand 2021-03-01 929 pRxTS->rx_last_seq_num = WLAN_GET_SEQ_SEQ(sc);
94a799425eee82 Larry Finger 2011-08-23 930 } else {
11e672c3e2d2a1 Mateusz Kulikowski 2015-05-31 931 netdev_warn(ieee->dev, "%s(): No TS! Skip the check!\n",
11e672c3e2d2a1 Mateusz Kulikowski 2015-05-31 932 __func__);
94a799425eee82 Larry Finger 2011-08-23 933 return -1;
94a799425eee82 Larry Finger 2011-08-23 934 }
94a799425eee82 Larry Finger 2011-08-23 935 }
94a799425eee82 Larry Finger 2011-08-23 936
94a799425eee82 Larry Finger 2011-08-23 937 return 0;
94a799425eee82 Larry Finger 2011-08-23 938 }
db8971b618ed96 Larry Finger 2011-08-25 939
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-09-12 1:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-09 18:19 [PATCH 0/8] staging: rtl8192e: Use standard functions like ieee80211_is_beacon() Philipp Hortmann
2023-09-09 18:19 ` [PATCH 1/8] staging: rtl8192e: Remove useless equation in debug output Philipp Hortmann
2023-09-09 18:19 ` [PATCH 2/8] staging: rtl8192e: Use standard ieee80211 function in rtllib_rx_mgt() Philipp Hortmann
2023-09-09 18:19 ` [PATCH 3/8] staging: rtl8192e: Use standard function in rtllib_process_probe_response() Philipp Hortmann
2023-09-09 18:19 ` [PATCH 4/8] staging: rtl8192e: Use standard function in rtllib_rx_check_duplicate() Philipp Hortmann
2023-09-12 1:09 ` kernel test robot [this message]
2023-09-09 18:20 ` [PATCH 5/8] staging: rtl8192e: Use standard function in softmac_mgmt_xmit() Philipp Hortmann
2023-09-09 18:20 ` [PATCH 6/8] staging: rtl8192e: Replace rtl92e_disable_irq with rtl92e_irq_disable Philipp Hortmann
2023-09-09 18:20 ` [PATCH 7/8] staging: rtl8192e: Replace rtl92e_enable_irq with rtl92e_irq_enable Philipp Hortmann
2023-09-09 18:20 ` [PATCH 8/8] staging: rtl8192e: Remove rtllib_get_payload() Philipp Hortmann
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=202309120956.6aSRBSxJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=philipp.g.hortmann@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).