[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206050617.FMBZUzPN-lkp@intel.com>
Date: Sun, 5 Jun 2022 06:20:34 +0800
From: kernel test robot <lkp@...el.com>
To: Deren Wu <deren.wu@...iatek.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Felix Fietkau <nbd@....name>,
Sean Wang <sean.wang@...iatek.com>,
Quan Zhou <quan.zhou@...iatek.com>,
Ming Yen Hsieh <mingyen.hsieh@...iatek.com>
Subject: [nbd168-wireless:mt76 5/13]
drivers/net/wireless/mediatek/mt76/mt7921/acpi_sar.c:64:68: sparse: sparse:
Using plain integer as NULL pointer
tree: https://github.com/nbd168/wireless mt76
head: bf744ed33b209f6d8de1b2a5b806c5fe38cd1e7c
commit: ab79a7d7a96f3325a120b6658ea9d8a3eaa2eb09 [5/13] mt76: mt7921: introduce ACPI SAR support
config: ia64-randconfig-s031-20220605 (https://download.01.org/0day-ci/archive/20220605/202206050617.FMBZUzPN-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.3.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-18-g56afb504-dirty
# https://github.com/nbd168/wireless/commit/ab79a7d7a96f3325a120b6658ea9d8a3eaa2eb09
git remote add nbd168-wireless https://github.com/nbd168/wireless
git fetch --no-tags nbd168-wireless mt76
git checkout ab79a7d7a96f3325a120b6658ea9d8a3eaa2eb09
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/net/wireless/mediatek/mt76/mt7921/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/mediatek/mt76/mt7921/acpi_sar.c:64:68: sparse: sparse: Using plain integer as NULL pointer
vim +64 drivers/net/wireless/mediatek/mt76/mt7921/acpi_sar.c
59
60 /* MTCL : Country List Table for 6G band */
61 static int
62 mt7921_asar_acpi_read_mtcl(struct mt7921_dev *dev, u8 **table, u8 *version)
63 {
> 64 *version = (mt7921_acpi_read(dev, MT7921_ACPI_MTCL, table, 0) < 0)
65 ? 1 : 2;
66 return 0;
67 }
68
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists