Re: [driver-core:driver-core-next 94/95] drivers/spi/spi-atmel.c:1007: warning: 'atmel_spi_remove' defined but not used

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

 



On Sat, Dec 01, 2012 at 05:43:13AM +0800, kbuild test robot wrote:
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-next
> head:   92e9e6d1f9844b73a26215025a922e7d7aeae361
> commit: 78d86c213f28193082b5d8a1a424044b7ba406f1 [94/95] init.h: Remove __dev* sections from the kernel
> config: make ARCH=avr32 atngw100_defconfig
> 
> All warnings:
> 
> In file included from include/uapi/linux/param.h:4,
>                  from include/linux/timex.h:63,
>                  from include/linux/jiffies.h:8,
>                  from include/linux/ktime.h:25,
>                  from include/linux/timer.h:5,
>                  from include/linux/workqueue.h:8,
>                  from include/linux/srcu.h:32,
>                  from include/linux/notifier.h:15,
>                  from include/linux/clk.h:17,
>                  from drivers/spi/spi-atmel.c:13:
> arch/avr32/include/asm/param.h:6:1: warning: "HZ" redefined
> In file included from arch/avr32/include/asm/param.h:4,
>                  from include/uapi/linux/param.h:4,
>                  from include/linux/timex.h:63,
>                  from include/linux/jiffies.h:8,
>                  from include/linux/ktime.h:25,
>                  from include/linux/timer.h:5,
>                  from include/linux/workqueue.h:8,
>                  from include/linux/srcu.h:32,
>                  from include/linux/notifier.h:15,
>                  from include/linux/clk.h:17,
>                  from drivers/spi/spi-atmel.c:13:
> arch/avr32/include/uapi/asm/param.h:6:1: warning: this is the location of the previous definition
> drivers/spi/spi-atmel.c:1007: warning: 'atmel_spi_remove' defined but not used

This is a bug, that should be __devexit_p() on that function, not
__exit_p().

greg k-h

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux