Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org,
	Alexandre Courbot <acourbot@nvidia.com>,
	Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH] gpio: pch: add slab include
Date: Tue, 27 May 2014 15:45:49 +0200	[thread overview]
Message-ID: <1401198349.4491.12.camel@chaos.site> (raw)
In-Reply-To: <1401196664-14223-1-git-send-email-linus.walleij@linaro.org>

Hi Linus,

Le Tuesday 27 May 2014 à 15:17 +0200, Linus Walleij a écrit :
> After change 3ff35cbcfa4bc7d7dbdd0279e32ea677567ded02
> "gpio-pch: Fix Kconfig dependencies"
> which enabled COMPILE_TEST as an alternative for the PCH
> driver, we get build failures like this:
> 
> drivers/gpio/gpio-pch.c: In function 'pch_gpio_probe':
> drivers/gpio/gpio-pch.c:359:2: error: implicit declaration
> of function 'kzalloc' [-Werror=implicit-function-declaration]
> drivers/gpio/gpio-pch.c:359:7: warning: assignment makes
> pointer from integer without a cast [enabled by default]
> drivers/gpio/gpio-pch.c:442:2: error: implicit declaration
> of function 'kfree' [-Werror=implicit-function-declaration]
> 
> Fix this by including <linux/slab.h> explicitly.
> 
> Cc: Jean Delvare <jdelvare@suse.de>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/gpio/gpio-pch.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c
> index 83a156397474..d6eac9b17db9 100644
> --- a/drivers/gpio/gpio-pch.c
> +++ b/drivers/gpio/gpio-pch.c
> @@ -20,6 +20,7 @@
>  #include <linux/gpio.h>
>  #include <linux/interrupt.h>
>  #include <linux/irq.h>
> +#include <linux/slab.h>
>  
>  #define PCH_EDGE_FALLING	0
>  #define PCH_EDGE_RISING		BIT(0)

Same patch already sent by Arnd Bergmann yesterday and acked by me.

But thanks anyway :-)

-- 
Jean Delvare
SUSE L3 Support

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2014-05-27 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-27 13:17 [PATCH] gpio: pch: add slab include Linus Walleij
2014-05-27 13:45 ` Jean Delvare [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=1401198349.4491.12.camel@chaos.site \
    --to=jdelvare@suse.de \
    --cc=acourbot@nvidia.com \
    --cc=arnd@arndb.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.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