From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/net/wireless/realtek/rtw89/rtw8852a.c:1820 rtw8852a_btc_set_wl_txpwr_ctrl() error: uninitialized symbol '_cur'.
Date: Sun, 12 Dec 2021 10:30:13 +0800 [thread overview]
Message-ID: <202112121053.PakchGHm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3614 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: "Ping-Ke Shih" <pkshih@realtek.com>
CC: Kalle Valo <kvalo@codeaurora.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bbdff6d583be718935b613ab2a966cddaadf661f
commit: e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd rtw89: add Realtek 802.11ax driver
date: 9 weeks ago
:::::: branch date: 5 hours ago
:::::: commit date: 9 weeks ago
config: i386-randconfig-m031-20211211 (https://download.01.org/0day-ci/archive/20211212/202112121053.PakchGHm-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
drivers/net/wireless/realtek/rtw89/rtw8852a.c:1820 rtw8852a_btc_set_wl_txpwr_ctrl() error: uninitialized symbol '_cur'.
Old smatch warnings:
drivers/net/wireless/realtek/rtw89/rtw8852a.c:1821 rtw8852a_btc_set_wl_txpwr_ctrl() error: uninitialized symbol '_cur'.
vim +/_cur +1820 drivers/net/wireless/realtek/rtw89/rtw8852a.c
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1794
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1795 static void
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1796 rtw8852a_btc_set_wl_txpwr_ctrl(struct rtw89_dev *rtwdev, u32 txpwr_val)
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1797 {
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1798 const u32 __btc_cr_all_time = R_AX_PWR_RATE_CTRL;
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1799 const u32 __btc_cr_gnt_bt = R_AX_PWR_COEXT_CTRL;
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1800
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1801 #define __do_clr(_chk) ((_chk) == GENMASK(15, 0))
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1802 #define __handle(_case) \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1803 do { \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1804 const u32 _reg = __btc_cr_ ## _case; \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1805 u32 _val = __btc_ctrl_val_ ## _case(txpwr_val); \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1806 u32 _cur, _wrt; \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1807 rtw89_debug(rtwdev, RTW89_DBG_TXPWR, \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1808 "btc ctrl %s: 0x%x\n", #_case, _val); \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1809 rtw89_mac_txpwr_read32(rtwdev, RTW89_PHY_0, _reg, &_cur);\
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1810 rtw89_debug(rtwdev, RTW89_DBG_TXPWR, \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1811 "btc ctrl ori 0x%x: 0x%x\n", _reg, _cur); \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1812 _wrt = __do_clr(_val) ? \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1813 __btc_ctrl_rst_ ## _case(_cur) : \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1814 __btc_ctrl_gen_ ## _case(_cur, _val); \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1815 rtw89_mac_txpwr_write32(rtwdev, RTW89_PHY_0, _reg, _wrt);\
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1816 rtw89_debug(rtwdev, RTW89_DBG_TXPWR, \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1817 "btc ctrl set 0x%x: 0x%x\n", _reg, _wrt); \
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1818 } while (0)
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1819
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 @1820 __handle(all_time);
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1821 __handle(gnt_bt);
e3ec7017f6a20d Ping-Ke Shih 2021-10-11 1822
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
reply other threads:[~2021-12-12 2:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202112121053.PakchGHm-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.