lkml.org 
[lkml]   [2013]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: redefinition of devm_gpio_request
From
On Sun, Dec 16, 2012 at 2:11 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:

> On current linus/HEAD, m68k allmodconfig gives:
>
> drivers/gpio/devres.c:52: error: redefinition of ‘devm_gpio_request’
> include/linux/gpio.h:99: error: previous definition of
> ‘devm_gpio_request’ was here
> drivers/gpio/devres.c:82: error: redefinition of ‘devm_gpio_request_one’
> include/linux/gpio.h:111: error: previous definition of
> ‘devm_gpio_request_one’ was here
> drivers/gpio/devres.c:114: error: redefinition of ‘devm_gpio_free’
> include/linux/gpio.h:129: error: previous definition of
> ‘devm_gpio_free’ was here
> make[5]: *** [drivers/gpio/devres.o] Error 1
>
> The !CONFIG_GENERIC_GPIO dummy definitions in include/linux/gpio.h conflict
> with the real ones in drivers/gpio/devres.c.
> Should devres.c really be compiled if !CONFIG_GENERIC_GPIO?

I've looked at it but I just can't figure this one out :-(

obj-$(CONFIG_GPIOLIB) += gpiolib.o devres.o

GPIOLIB selects GENERIC_GPIO.

So this *should* not be compiled unless GENERIC_GPIO is also
selected.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-01-10 11:42    [W:0.046 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site