Re: [PATCH 3/3] Add VIA VX855 GPIO driver

From: Mike Frysinger
Date: Thu Jan 06 2011 - 13:31:45 EST


On Thu, Sep 30, 2010 at 16:55, Daniel Drake wrote:
> --- /dev/null
> +++ b/drivers/gpio/vx855_gpio.c
> @@ -0,0 +1,332 @@
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/gpio.h>
> +#include <linux/device.h>
> +#include <linux/platform_device.h>
> +#include <linux/pci.h>
> +#include <linux/io.h>

i guess you wrote this against a much older kernel and didnt compile
against a newer one ? it fails to build due to missing linux/slab.h
include:
CC drivers/gpio/vx855_gpio.o
drivers/gpio/vx855_gpio.c: In function âvx855gpio_probeâ:
drivers/gpio/vx855_gpio.c:233: error: implicit declaration of function âkzallocâ
drivers/gpio/vx855_gpio.c:233: warning: assignment makes pointer from
integer without a cast
drivers/gpio/vx855_gpio.c:282: error: implicit declaration of function âkfreeâ
make[1]: *** [drivers/gpio/vx855_gpio.o] Error 1
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/