linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Joshua Kwan <joshk@triplehelix.org>
To: akpm@digeo.com
Cc: linux-kernel mailing list <linux-kernel@vger.kernel.org>,
	linux-mm@kvack.org
Subject: [PATCH] implicit declaration of memset in 2.5.72-mm2
Date: Thu, 19 Jun 2003 02:40:30 -0700	[thread overview]
Message-ID: <20030619094030.GA1933@firesong> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 247 bytes --]

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

[-- Attachment #1.2: memset_include_string.patch --]
[-- Type: text/plain, Size: 1664 bytes --]

Only in linux-2.5.72.mod/include/: asm
diff -ur linux-2.5.72/include/asm-h8300/uaccess.h linux-2.5.72.mod/include/asm-h8300/uaccess.h
--- linux-2.5.72/include/asm-h8300/uaccess.h	2003-06-16 21:19:47.000000000 -0700
+++ linux-2.5.72.mod/include/asm-h8300/uaccess.h	2003-06-19 01:55:31.000000000 -0700
@@ -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 */
diff -ur linux-2.5.72/include/asm-i386/uaccess.h linux-2.5.72.mod/include/asm-i386/uaccess.h
--- linux-2.5.72/include/asm-i386/uaccess.h	2003-06-19 02:31:17.000000000 -0700
+++ linux-2.5.72.mod/include/asm-i386/uaccess.h	2003-06-19 01:53:23.000000000 -0700
@@ -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
diff -ur linux-2.5.72/include/asm-m68knommu/uaccess.h linux-2.5.72.mod/include/asm-m68knommu/uaccess.h
--- linux-2.5.72/include/asm-m68knommu/uaccess.h	2003-06-19 02:34:53.000000000 -0700
+++ linux-2.5.72.mod/include/asm-m68knommu/uaccess.h	2003-06-19 01:55:06.000000000 -0700
@@ -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 */

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2003-06-19  9:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030619094030.GA1933@firesong \
    --to=joshk@triplehelix.org \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox