mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Quentin Schulz <quentin.schulz@free-electrons.com>
Cc: kbuild-all@01.org, linus.walleij@linaro.org, robh+dt@kernel.org,
	mark.rutland@arm.com, wens@csie.org, linux@armlinux.org.uk,
	maxime.ripard@free-electrons.com, lee.jones@linaro.org,
	linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-sunxi@googlegroups.com,
	thomas.petazzoni@free-electrons.com,
	Quentin Schulz <quentin.schulz@free-electrons.com>
Subject: Re: [PATCH v2 03/10] pinctrl: axp209: use drv_data of pinctrl_pin_desc to store pin reg
Date: Sat, 30 Sep 2017 01:27:23 +0800	[thread overview]
Message-ID: <201709300118.XqpYF5ya%fengguang.wu@intel.com> (raw)
In-Reply-To: <7993a30fbc2e50a2d228fa0c8fad643c4034b101.1506428208.git-series.quentin.schulz@free-electrons.com>

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

Hi Quentin,

[auto build test WARNING on ]

url:    https://github.com/0day-ci/linux/commits/Quentin-Schulz/add-pinmuxing-support-for-pins-in-AXP209-and-AXP813-PMICs/20170929-162846
base:    
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   drivers//pinctrl/pinctrl-axp209.c: In function 'axp20x_gpio_get_direction':
>> drivers//pinctrl/pinctrl-axp209.c:136:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int reg = (int)gpio->desc->pins[offset].pin.drv_data;
               ^
   drivers//pinctrl/pinctrl-axp209.c: In function 'axp20x_gpio_set':
   drivers//pinctrl/pinctrl-axp209.c:171:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int reg = (int)gpio->desc->pins[offset].pin.drv_data;
               ^
   drivers//pinctrl/pinctrl-axp209.c: In function 'axp20x_pmx_set':
   drivers//pinctrl/pinctrl-axp209.c:183:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int reg = (int)gpio->desc->pins[offset].pin.drv_data;
               ^

vim +136 drivers//pinctrl/pinctrl-axp209.c

   132	
   133	static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
   134	{
   135		struct axp20x_gpio *gpio = gpiochip_get_data(chip);
 > 136		int reg = (int)gpio->desc->pins[offset].pin.drv_data;
   137		unsigned int val;
   138		int ret;
   139	
   140		ret = regmap_read(gpio->regmap, reg, &val);
   141		if (ret)
   142			return ret;
   143	
   144		/*
   145		 * This shouldn't really happen if the pin is in use already,
   146		 * or if it's not in use yet, it doesn't matter since we're
   147		 * going to change the value soon anyway. Default to output.
   148		 */
   149		if ((val & AXP20X_GPIO_FUNCTIONS) > 2)
   150			return 0;
   151	
   152		/*
   153		 * The GPIO directions are the three lowest values.
   154		 * 2 is input, 0 and 1 are output
   155		 */
   156		return val & 2;
   157	}
   158	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  parent reply	other threads:[~2017-09-29 17:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-26 12:17 [PATCH v2 00/10] add pinmuxing support for pins in AXP209 and AXP813 PMICs Quentin Schulz
2017-09-26 12:17 ` [PATCH v2 01/10] pinctrl: move gpio-axp209 to pinctrl Quentin Schulz
2017-09-26 12:55   ` Maxime Ripard
2017-09-26 12:59     ` Quentin Schulz
2017-09-26 13:08       ` Chen-Yu Tsai
2017-10-05 20:50   ` Rob Herring
2017-09-26 12:17 ` [PATCH v2 02/10] pinctrl: axp209: add pinctrl features Quentin Schulz
2017-09-26 13:00   ` Maxime Ripard
2017-09-26 13:08     ` Quentin Schulz
2017-09-26 13:27       ` Maxime Ripard
2017-09-26 13:37         ` Quentin Schulz
2017-09-27  9:28           ` Maxime Ripard
2017-09-26 12:17 ` [PATCH v2 03/10] pinctrl: axp209: use drv_data of pinctrl_pin_desc to store pin reg Quentin Schulz
2017-09-26 13:01   ` Maxime Ripard
2017-09-26 13:17     ` Quentin Schulz
2017-09-26 13:45       ` Maxime Ripard
2017-09-29 17:27   ` kbuild test robot [this message]
2017-09-26 12:17 ` [PATCH v2 04/10] pinctrl: axp209: rename everything from gpio to pctl Quentin Schulz
2017-09-26 12:17 ` [PATCH v2 05/10] pinctrl: axp209: add programmable gpio_status_offset Quentin Schulz
2017-09-26 12:17 ` [PATCH v2 06/10] pinctrl: axp209: add support for AXP813 GPIOs Quentin Schulz
2017-09-26 13:12   ` Maxime Ripard
2017-09-26 12:17 ` [PATCH v2 07/10] mfd: axp20x: add pinctrl cell for AXP813 Quentin Schulz
2017-09-26 13:14   ` Maxime Ripard
2017-09-28 19:06     ` Lee Jones
2017-09-26 12:17 ` [PATCH v2 08/10] ARM: dts: add dtsi for AXP813 PMIC Quentin Schulz
2017-09-26 13:16   ` Maxime Ripard
2017-09-26 13:53   ` Chen-Yu Tsai
2017-09-26 12:17 ` [PATCH v2 09/10] ARM: dts: sun8i: a711: include axp813 dtsi Quentin Schulz
2017-09-26 12:17 ` [PATCH v2 10/10] ARM: dts: sun8i: bananapi-m3: " Quentin Schulz

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=201709300118.XqpYF5ya%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kbuild-all@01.org \
    --cc=lee.jones@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=quentin.schulz@free-electrons.com \
    --cc=robh+dt@kernel.org \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=wens@csie.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 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®