* [linux-next:master 10189/12471] drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:111:9: sparse: sparse: dubious: x | !y
@ 2021-10-28 17:54 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-28 17:54 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4474 bytes --]
CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Shayne Chen <shayne.chen@mediatek.com>
CC: Felix Fietkau <nbd@nbd.name>
CC: Ryder Lee <ryder.lee@mediatek.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 503f375baa99edff894eb1a534d2ac0b4f799573
commit: 90f5daea758abcc4722f4304ed5fccbbc80a59c2 [10189/12471] mt76: mt7915: add debugfs knobs for MCU utilization
:::::: branch date: 6 hours ago
:::::: commit date: 5 days ago
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=90f5daea758abcc4722f4304ed5fccbbc80a59c2
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 90f5daea758abcc4722f4304ed5fccbbc80a59c2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/wireless/mediatek/mt76/mt7915/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:111:9: sparse: sparse: dubious: x | !y
vim +111 drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
e57b7901469fc0 Ryder Lee 2020-04-25 80
e57b7901469fc0 Ryder Lee 2020-04-25 81 DEFINE_DEBUGFS_ATTRIBUTE(fops_radar_trigger, NULL,
e57b7901469fc0 Ryder Lee 2020-04-25 82 mt7915_radar_trigger, "%lld\n");
e57b7901469fc0 Ryder Lee 2020-04-25 83
5517f78b0063d0 Ryder Lee 2020-04-25 84 static int
9b121acd4e853c Shayne Chen 2021-10-22 85 mt7915_fw_debug_wm_set(void *data, u64 val)
5517f78b0063d0 Ryder Lee 2020-04-25 86 {
5517f78b0063d0 Ryder Lee 2020-04-25 87 struct mt7915_dev *dev = data;
5517f78b0063d0 Ryder Lee 2020-04-25 88 enum {
5517f78b0063d0 Ryder Lee 2020-04-25 89 DEBUG_TXCMD = 62,
5517f78b0063d0 Ryder Lee 2020-04-25 90 DEBUG_CMD_RPT_TX,
5517f78b0063d0 Ryder Lee 2020-04-25 91 DEBUG_CMD_RPT_TRIG,
5517f78b0063d0 Ryder Lee 2020-04-25 92 DEBUG_SPL,
5517f78b0063d0 Ryder Lee 2020-04-25 93 DEBUG_RPT_RX,
5517f78b0063d0 Ryder Lee 2020-04-25 94 } debug;
9b121acd4e853c Shayne Chen 2021-10-22 95 int ret;
5517f78b0063d0 Ryder Lee 2020-04-25 96
9b121acd4e853c Shayne Chen 2021-10-22 97 dev->fw_debug_wm = val ? MCU_FW_LOG_TO_HOST : 0;
5517f78b0063d0 Ryder Lee 2020-04-25 98
9b121acd4e853c Shayne Chen 2021-10-22 99 ret = mt7915_mcu_fw_log_2_host(dev, MCU_FW_LOG_WM, dev->fw_debug_wm);
9b121acd4e853c Shayne Chen 2021-10-22 100 if (ret)
9b121acd4e853c Shayne Chen 2021-10-22 101 return ret;
5517f78b0063d0 Ryder Lee 2020-04-25 102
9b121acd4e853c Shayne Chen 2021-10-22 103 for (debug = DEBUG_TXCMD; debug <= DEBUG_RPT_RX; debug++) {
9b121acd4e853c Shayne Chen 2021-10-22 104 ret = mt7915_mcu_fw_dbg_ctrl(dev, debug, !!dev->fw_debug_wm);
9b121acd4e853c Shayne Chen 2021-10-22 105 if (ret)
9b121acd4e853c Shayne Chen 2021-10-22 106 return ret;
9b121acd4e853c Shayne Chen 2021-10-22 107 }
5517f78b0063d0 Ryder Lee 2020-04-25 108
90f5daea758abc Shayne Chen 2021-10-22 109 /* WM CPU info record control */
90f5daea758abc Shayne Chen 2021-10-22 110 mt76_clear(dev, MT_CPU_UTIL_CTRL, BIT(0));
90f5daea758abc Shayne Chen 2021-10-22 @111 mt76_wr(dev, MT_DIC_CMD_REG_CMD, BIT(2) | BIT(13) | !dev->fw_debug_wm);
90f5daea758abc Shayne Chen 2021-10-22 112 mt76_wr(dev, MT_MCU_WM_CIRQ_IRQ_MASK_CLR_ADDR, BIT(5));
90f5daea758abc Shayne Chen 2021-10-22 113 mt76_wr(dev, MT_MCU_WM_CIRQ_IRQ_SOFT_ADDR, BIT(5));
90f5daea758abc Shayne Chen 2021-10-22 114
5517f78b0063d0 Ryder Lee 2020-04-25 115 return 0;
5517f78b0063d0 Ryder Lee 2020-04-25 116 }
5517f78b0063d0 Ryder Lee 2020-04-25 117
---
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: 79231 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-28 17:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 17:54 [linux-next:master 10189/12471] drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:111:9: sparse: sparse: dubious: x | !y kernel test robot
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.