mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Deren Wu <deren.wu@mediatek.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Felix Fietkau <nbd@nbd.name>, Sean Wang <sean.wang@mediatek.com>,
	Quan Zhou <quan.zhou@mediatek.com>,
	Ming Yen Hsieh <mingyen.hsieh@mediatek.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
Date: Sun, 5 Jun 2022 06:20:34 +0800	[thread overview]
Message-ID: <202206050617.FMBZUzPN-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2022-06-04 22:21 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=202206050617.FMBZUzPN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=deren.wu@mediatek.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingyen.hsieh@mediatek.com \
    --cc=nbd@nbd.name \
    --cc=quan.zhou@mediatek.com \
    --cc=sean.wang@mediatek.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

all inboxes | Powered by JetHome®