patch-2.1.11 linux/drivers/char/wdt.c

Next file: linux/drivers/isdn/icn/icn.c
Previous file: linux/drivers/char/stallion.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.10/linux/drivers/char/wdt.c linux/drivers/char/wdt.c
@@ -105,13 +105,13 @@
 }
 
 
-static int wdt_lseek(struct inode *inode, struct file *file, off_t offset, 
+static long long wdt_llseek(struct inode *inode, struct file *file, long long offset, 
 	int origin)
 {
 	return -ESPIPE;
 }
 
-static int wdt_write(struct inode *inode, struct file *file, const char *buf, int count)
+static long wdt_write(struct inode *inode, struct file *file, const char *buf, unsigned long count)
 {
 	/* Write a watchdog value */
 	inb_p(WDT_DC);
@@ -125,7 +125,7 @@
  *	Read reports the temperature in farenheit
  */
  
-static int wdt_read(struct inode *inode, struct file *file, char *buf, int count)
+static long wdt_read(struct inode *inode, struct file *file, char *buf, unsigned long count)
 {
 	unsigned short c=inb_p(WDT_RT);
 	unsigned char cp;
@@ -202,7 +202,7 @@
  
  
 static struct file_operations wdt_fops = {
-	wdt_lseek,
+	wdt_llseek,
 	wdt_read,
 	wdt_write,
 	NULL,		/* No Readdir */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov