scx200_wdt: Include linux/fs.h for struct file
diff mbox series

Message ID 20031022112035.GA25439@gondor.apana.org.au
State New, archived
Headers show
Series
  • scx200_wdt: Include linux/fs.h for struct file
Related show

Commit Message

Herbert Xu Oct. 22, 2003, 11:20 a.m. UTC
Hi:

This patch adds an explicit inclusion of linux/fs.h as it needs to
dereference struct file *.  This is needed for it to compile on
non-i386 architectures.

Cheers,

Comments

Herbert Xu Oct. 22, 2003, 11:30 a.m. UTC | #1
On Wed, Oct 22, 2003 at 09:20:35PM +1000, herbert wrote:
> 
> This patch adds an explicit inclusion of linux/fs.h as it needs to
> dereference struct file *.  This is needed for it to compile on
> non-i386 architectures.

The same change is needed on a number of other watchdog drivers.

Cheers,
Dave Jones Oct. 22, 2003, 11:34 a.m. UTC | #2
On Wed, Oct 22, 2003 at 09:20:35PM +1000, Herbert Xu wrote:
 
 > This patch adds an explicit inclusion of linux/fs.h as it needs to
 > dereference struct file *.  This is needed for it to compile on
 > non-i386 architectures.

A better question is why we're allowing Geode drivers to be compiled
on non-i386.

		Dave

Patch
diff mbox series

Index: kernel-source-2.5/drivers/char/watchdog/scx200_wdt.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/drivers/char/watchdog/scx200_wdt.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 scx200_wdt.c
--- kernel-source-2.5/drivers/char/watchdog/scx200_wdt.c	9 Aug 2003 08:11:55 -0000	1.1.1.3
+++ kernel-source-2.5/drivers/char/watchdog/scx200_wdt.c	22 Oct 2003 11:16:59 -0000
@@ -27,6 +27,7 @@ 
 #include <linux/reboot.h>
 #include <linux/pci.h>
 #include <linux/scx200.h>
+#include <linux/fs.h>
 
 #include <asm/uaccess.h>
 #include <asm/io.h>