LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ryder Lee <ryder.lee@mediatek.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Felix Fietkau <nbd@nbd.name>
Subject: drivers/net/wireless/mediatek/mt76/mt7915/init.c:134:58: sparse: sparse: incorrect type in argument 1 (different modifiers)
Date: Thu, 22 Jul 2021 17:01:02 +0800	[thread overview]
Message-ID: <202107221756.Vwo3fzCT-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3d5895cd351757f69c9a66fb5fc8cf19f454d773
commit: 34b877d972bec8cbf397a57393317672cf92996f mt76: mt7915: add thermal cooling device support
date:   5 weeks ago
config: alpha-randconfig-s031-20210722 (attached as .config)
compiler: alpha-linux-gcc (GCC) 10.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.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34b877d972bec8cbf397a57393317672cf92996f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 34b877d972bec8cbf397a57393317672cf92996f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha 

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/init.c:134:58: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected char *type @@     got char const * @@
   drivers/net/wireless/mediatek/mt76/mt7915/init.c:134:58: sparse:     expected char *type
   drivers/net/wireless/mediatek/mt76/mt7915/init.c:134:58: sparse:     got char const *

vim +134 drivers/net/wireless/mediatek/mt76/mt7915/init.c

   127	
   128	static int mt7915_thermal_init(struct mt7915_phy *phy)
   129	{
   130		struct wiphy *wiphy = phy->mt76->hw->wiphy;
   131		struct thermal_cooling_device *cdev;
   132		struct device *hwmon;
   133	
 > 134		cdev = thermal_cooling_device_register(wiphy_name(wiphy), phy,
   135						       &mt7915_thermal_ops);
   136		if (!IS_ERR(cdev)) {
   137			if (sysfs_create_link(&wiphy->dev.kobj, &cdev->device.kobj,
   138					      "cooling_device") < 0)
   139				thermal_cooling_device_unregister(cdev);
   140			else
   141				phy->cdev = cdev;
   142		}
   143	
   144		if (!IS_REACHABLE(CONFIG_HWMON))
   145			return 0;
   146	
   147		hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev,
   148							       wiphy_name(wiphy), phy,
   149							       mt7915_hwmon_groups);
   150		if (IS_ERR(hwmon))
   151			return PTR_ERR(hwmon);
   152	
   153		return 0;
   154	}
   155	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32118 bytes --]

                 reply	other threads:[~2021-07-22  9:01 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=202107221756.Vwo3fzCT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nbd@nbd.name \
    --cc=ryder.lee@mediatek.com \
    --subject='Re: drivers/net/wireless/mediatek/mt76/mt7915/init.c:134:58: sparse: sparse: incorrect type in argument 1 (different modifiers)' \
    /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

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).