Re: [PATCH] drivers:staging:add the missed include file

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

 



On 08/03/2011 07:15 PM, Belisko Marek wrote:
On Wed, Aug 3, 2011 at 10:20 AM, Wanlong Gao<gaowanlong@xxxxxxxxxxxxxx>  wrote:
Add the missed include file linux/io.h in ft1000_proc.c.
What is the reason for that? I don't see any build error when compile
today's linux-next.

Signed-off-by: Wanlong Gao<gaowanlong@xxxxxxxxxxxxxx>
---
  drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c
index 627a98b..616f899 100644
--- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c
+++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c
@@ -22,6 +22,7 @@
  #include<linux/string.h>
  #include<linux/vmalloc.h>
  #include<linux/netdevice.h>
+#include<linux/io.h>
  #include<asm/uaccess.h>
  #include "ft1000.h"

--
1.7.6

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


thanks,

marek

In file included from /root/200/linux-2.6/drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c:26: /root/200/linux-2.6/drivers/staging/ft1000/ft1000-pcmcia/ft1000.h: In function 'ft1000_read_reg': /root/200/linux-2.6/drivers/staging/ft1000/ft1000-pcmcia/ft1000.h:80: error: implicit declaration of function 'inw' /root/200/linux-2.6/drivers/staging/ft1000/ft1000-pcmcia/ft1000.h: In function 'ft1000_write_reg': /root/200/linux-2.6/drivers/staging/ft1000/ft1000-pcmcia/ft1000.h:86: error: implicit declaration of function 'outw'
make[2]: *** [drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.o] Error 1
make[1]: *** [drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.o] Error 2


--
Thanks
Best Regards
Wanlong Gao
_______________________________________________
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