All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [rcar:gmsl/eagle-v3m 21/21] drivers/media/i2c/max9286.c:915:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int'
Date: Sat, 07 Dec 2019 06:23:42 +0800	[thread overview]
Message-ID: <201912070641.bS4KbJob%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git gmsl/eagle-v3m
head:   10a837e070f60be8799bb7b2fe2cd099a8444063
commit: 10a837e070f60be8799bb7b2fe2cd099a8444063 [21/21] DNI: Debug
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 10a837e070f60be8799bb7b2fe2cd099a8444063
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/media/i2c/max9286.c:15:0:
   drivers/media/i2c/max9286.c: In function 'max9286_gpio_get':
>> drivers/media/i2c/max9286.c:915:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
      "GPIOSET: Offset %d, Value %d gpio_state = 0x%lx",
      ^
   include/linux/device.h:1658:22: note: in definition of macro 'dev_fmt'
    #define dev_fmt(fmt) fmt
                         ^~~
>> drivers/media/i2c/max9286.c:914:2: note: in expansion of macro 'dev_err'
     dev_err(&priv->client->dev,
     ^~~~~~~

vim +915 drivers/media/i2c/max9286.c

   909	
   910	static int max9286_gpio_get(struct gpio_chip *chip, unsigned int offset)
   911	{
   912		struct max9286_priv *priv = gpiochip_get_data(chip);
   913	
 > 914		dev_err(&priv->client->dev,
 > 915			"GPIOSET: Offset %d, Value %d gpio_state = 0x%lx",
   916			offset, priv->gpio_state & BIT(offset),
   917			MAX9286_0X0F_RESERVED | priv->gpio_state);
   918	
   919		return priv->gpio_state & BIT(offset);
   920	}
   921	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

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

                 reply	other threads:[~2019-12-06 22:23 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=201912070641.bS4KbJob%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.