linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Cc: kbuild-all@lists.01.org,
	"Linux Memory Management List" <linux-mm@kvack.org>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Subject: [linux-next:master 4968/10499] drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse: sparse: incorrect type in initializer (different base types)
Date: Thu, 8 Apr 2021 20:18:37 +0800	[thread overview]
Message-ID: <202104082033.4h7sFd4c-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   5103a5be098c0dae5d4b057520d7e9f4c5570979
commit: 79caa362eab6569297210eda375d6ea358a81161 [4968/10499] pwm: Add Raspberry Pi Firmware based PWM bus
config: powerpc-randconfig-s031-20210408 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.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-279-g6d5d9b42-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=79caa362eab6569297210eda375d6ea358a81161
        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 79caa362eab6569297210eda375d6ea358a81161
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc 

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/pwm/pwm-raspberrypi-poe.c:69:24: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le32 [usertype] reg @@     got unsigned int [usertype] reg @@
   drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse:     expected restricted __le32 [usertype] reg
   drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse:     got unsigned int [usertype] reg

vim +69 drivers/pwm/pwm-raspberrypi-poe.c

    64	
    65	static int raspberrypi_pwm_get_property(struct rpi_firmware *firmware,
    66						u32 reg, u32 *val)
    67	{
    68		struct raspberrypi_pwm_prop msg = {
  > 69			.reg = reg
    70		};
    71		int ret;
    72	
    73		ret = rpi_firmware_property(firmware, RPI_FIRMWARE_GET_POE_HAT_VAL,
    74					    &msg, sizeof(msg));
    75		if (ret)
    76			return ret;
    77		if (msg.ret)
    78			return -EIO;
    79	
    80		*val = le32_to_cpu(msg.val);
    81	
    82		return 0;
    83	}
    84	

---
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: 34771 bytes --]

                 reply	other threads:[~2021-04-08 12:19 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=202104082033.4h7sFd4c-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=nsaenzjulienne@suse.de \
    --cc=u.kleine-koenig@pengutronix.de \
    /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;
as well as URLs for NNTP newsgroup(s).