mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Jean Delvare <jdelvare@suse.com>,
	linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
	Bartosz Golaszewski <bgolaszewski@baylibre.com>,
	kbuild test robot <lkp@intel.com>,
	Linus Walleij <linus.walleij@linaro.org>
Subject: Re: [PATCH][next] hwmon: pmbus: ucd9000: remove unneeded include
Date: Thu, 8 Aug 2019 06:29:56 -0700	[thread overview]
Message-ID: <20190808132956.GA30151@roeck-us.net> (raw)
In-Reply-To: <20190808080144.6183-1-brgl@bgdev.pl>

On Thu, Aug 08, 2019 at 10:01:44AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> 
> Build bot reports the following build issue after commit 9091373ab7ea
> ("gpio: remove less important #ifdef around declarations):
> 
>    In file included from drivers/hwmon/pmbus/ucd9000.c:19:0:
> >> include/linux/gpio/driver.h:576:1: error: redefinition of 'gpiochip_add_pin_range'
>     gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
>     ^~~~~~~~~~~~~~~~~~~~~~
>    In file included from drivers/hwmon/pmbus/ucd9000.c:18:0:
>    include/linux/gpio.h:245:1: note: previous definition of 'gpiochip_add_pin_range' was here
>     gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
>     ^~~~~~~~~~~~~~~~~~~~~~
>    In file included from drivers/hwmon/pmbus/ucd9000.c:19:0:
> >> include/linux/gpio/driver.h:583:1: error: redefinition of 'gpiochip_add_pingroup_range'
>     gpiochip_add_pingroup_range(struct gpio_chip *chip,
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>    In file included from drivers/hwmon/pmbus/ucd9000.c:18:0:
>    include/linux/gpio.h:254:1: note: previous definition of 'gpiochip_add_pingroup_range' was here
>     gpiochip_add_pingroup_range(struct gpio_chip *chip,
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>    In file included from drivers/hwmon/pmbus/ucd9000.c:19:0:
> >> include/linux/gpio/driver.h:591:1: error: redefinition of 'gpiochip_remove_pin_ranges'
>     gpiochip_remove_pin_ranges(struct gpio_chip *chip)
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~
>    In file included from drivers/hwmon/pmbus/ucd9000.c:18:0:
>    include/linux/gpio.h:263:1: note: previous definition of 'gpiochip_remove_pin_ranges' was here
>     gpiochip_remove_pin_ranges(struct gpio_chip *chip)
> 
> This is caused by conflicting defines from linux/gpio.h and
> linux/gpio/driver.h. Drivers should not include both the legacy and
> the new API headers. This driver doesn't even use linux/gpio.h so
> remove it.
> 
> Reported-by: kbuild test robot <lkp@intel.com>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/pmbus/ucd9000.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c
> index c846759bc1c0..a9229c6b0e84 100644
> --- a/drivers/hwmon/pmbus/ucd9000.c
> +++ b/drivers/hwmon/pmbus/ucd9000.c
> @@ -15,7 +15,6 @@
>  #include <linux/slab.h>
>  #include <linux/i2c.h>
>  #include <linux/pmbus.h>
> -#include <linux/gpio.h>
>  #include <linux/gpio/driver.h>
>  #include "pmbus.h"
>  

      reply	other threads:[~2019-08-08 13:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-08  8:01 Bartosz Golaszewski
2019-08-08 13:29 ` Guenter Roeck [this message]

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=20190808132956.GA30151@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=bgolaszewski@baylibre.com \
    --cc=brgl@bgdev.pl \
    --cc=jdelvare@suse.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.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

Powered by JetHome