patch-2.3.18 linux/drivers/char/mem.c

Next file: linux/drivers/char/pc_keyb.c
Previous file: linux/drivers/char/joystick/joystick.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.17/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -268,6 +268,7 @@
 	return do_write_mem(file, (void*)p, p, buf, count, ppos);
 }
 
+#if !defined(CONFIG_PPC) && !defined(__mc68000__)
 static ssize_t read_port(struct file * file, char * buf,
 			 size_t count, loff_t *ppos)
 {
@@ -305,6 +306,7 @@
 	*ppos = i;
 	return tmp-buf;
 }
+#endif
 
 static ssize_t read_null(struct file * file, char * buf,
 			 size_t count, loff_t *ppos)
@@ -515,6 +517,7 @@
 	NULL		/* fsync */
 };
 
+#if !defined(CONFIG_PPC) && !defined(__mc68000__)
 static struct file_operations port_fops = {
 	memory_lseek,
 	read_port,
@@ -528,6 +531,7 @@
 	NULL,		/* no special release code */
 	NULL		/* fsync */
 };
+#endif
 
 static struct file_operations zero_fops = {
 	zero_lseek,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)