[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638696: FTBFS on alpha: module sht15 needs gpiolib not selected by config.



On Sun, 2011-08-21 at 17:59 +1200, Michael Cree wrote:
> Package: linux-2.6
> Version: 3.0.0-2
> Severity: normal
> 
> >From the build log:
> 
>   CC [M]  drivers/hwmon/sht15.o
> In file included from
> +/build/buildd-linux-2.6_3.0.0-2-alpha-uWIvrQ/linux-2.6-3.0.0/debian/build/source_alpha_none/arch/alp
> +ha/include/asm/gpio.h:20,
>                  from
> +/build/buildd-linux-2.6_3.0.0-2-alpha-uWIvrQ/linux-2.6-3.0.0/debian/build/source_alpha_none/include/
> +linux/gpio.h:18,
>                  from
> +/build/buildd-linux-2.6_3.0.0-2-alpha-uWIvrQ/linux-2.6-3.0.0/debian/build/source_alpha_none/drivers/
> +hwmon/sht15.c:21:
> /build/buildd-linux-2.6_3.0.0-2-alpha-uWIvrQ/linux-2.6-3.0.0/debian/build/source_alpha_none/include/a
> +sm-generic/gpio.h: In function 'gpio_get_value_cansleep':
> /build/buildd-linux-2.6_3.0.0-2-alpha-uWIvrQ/linux-2.6-3.0.0/debian/build/source_alpha_none/include/a
> +sm-generic/gpio.h:223: error: implicit declaration of function
> 'gpio_get_value'
> 
> Full build log available at:
> http://buildd.debian-ports.org/status/fetch.php?pkg=linux-2.6&arch=alpha&ver=3.0.0-2&stamp=1313880281
> 
> 
> Setting CONFIG_GPIOLIB should fix this.

All these GPIO config variables are a mess.  Drivers dependent on
GENERIC_GPIO may also end up dependent on GPIOLIB, depending on the
architecture.  If the architecture sets ARCH_WANT_OPTIONAL_GPIOLIB then
GPIOLIB is not automatically selected (except that some drivers do).

Anyway - I see no reason why we should actually enable this driver, so
I'll disable it instead.  If you find any other drivers that require
GPIOs then those should also be disabled in the top-level config.

Ben.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: