Skip to contentSkip to conversation

implicit declaration of memset in 2.5.72-mm2

PATCH New Joshua Kwan 1 participant 1 message Jun 19, 2003 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 implicit declaration of memset in 2.5.72-mm2

Hi Andrew,

This fixes a few implicit declarations of memset in uaccess.h in 2.5.72-mm2... It applies cleanly to 2.5.72 vanilla as well but has no effect on the i386 clear_user when applied to the former. Also fixes some weird tabs.

Regards
Josh

Only in linux-2.5.72.mod/include/: asm

include/asm-h8300/uaccess.h +3 -1
diff -ur linux-2.5.72/include/asm-h8300/uaccess.h linux-2.5.72.mod/include/asm-h8300/uaccess.h
@@ -6,6 +6,8 @@
  */
 #include <linux/sched.h>
 #include <linux/mm.h>
+#include <linux/string.h>
+
 #include <asm/segment.h>
 
 #define VERIFY_READ	0
@@ -159,7 +161,7 @@
 clear_user(void *to, unsigned long n)
 {
 	memset(to, 0, n);
-    return(0);
+	return(0);
 }
 
 #endif /* _H8300_UACCESS_H */
include/asm-i386/uaccess.h +1 -0
diff -ur linux-2.5.72/include/asm-i386/uaccess.h linux-2.5.72.mod/include/asm-i386/uaccess.h
@@ -8,6 +8,7 @@
 #include <linux/errno.h>
 #include <linux/thread_info.h>
 #include <linux/prefetch.h>
+#include <linux/string.h>
 #include <asm/page.h>
 
 #define VERIFY_READ 0
include/asm-m68knommu/uaccess.h +3 -1
diff -ur linux-2.5.72/include/asm-m68knommu/uaccess.h linux-2.5.72.mod/include/asm-m68knommu/uaccess.h
@@ -6,6 +6,8 @@
  */
 #include <linux/sched.h>
 #include <linux/mm.h>
+#include <linux/string.h>
+
 #include <asm/segment.h>
 
 #define VERIFY_READ	0
@@ -178,7 +180,7 @@
 clear_user(void *to, unsigned long n)
 {
 	memset(to, 0, n);
-    return(0);
+	return(0);
 }
 
 #endif /* _M68KNOMMU_UACCESS_H */