From: Arnd Bergmann <arnd@arndb.de>
To: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org, Michal Simek <monstr@monstr.eu>,
Remis Lima Baima <remis.developer@googlemail.com>
Subject: [PATCH v2 3/9] asm-generic: rename uaccess.h to uaccess-unaligned.h
Date: Thu, 30 Apr 2009 20:56:31 +0200 [thread overview]
Message-ID: <20090430185716.784575576@arndb.de> (raw)
In-Reply-To: 20090430185628.866082445@arndb.de
[-- Attachment #1: 0003-asm-generic-rename-uaccess.h-to-uaccess-unaligned.h.patch --]
[-- Type: text/plain, Size: 2159 bytes --]
The asm-generic/uaccess.h file is only implementing
unaligned accesses. Rename it to uaccess-unaligned.h
so we can replace it with a generic uaccess.h for
all NOMMU architectures.
Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/parisc/include/asm/uaccess.h | 2 +-
arch/sparc/include/asm/uaccess_64.h | 2 +-
.../asm-generic/{uaccess.h => uaccess-unaligned.h} | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
rename include/asm-generic/{uaccess.h => uaccess-unaligned.h} (82%)
diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h
index cd4c0b2..7cf799d 100644
--- a/arch/parisc/include/asm/uaccess.h
+++ b/arch/parisc/include/asm/uaccess.h
@@ -7,7 +7,7 @@
#include <asm/page.h>
#include <asm/system.h>
#include <asm/cache.h>
-#include <asm-generic/uaccess.h>
+#include <asm-generic/uaccess-unaligned.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
diff --git a/arch/sparc/include/asm/uaccess_64.h b/arch/sparc/include/asm/uaccess_64.h
index c64e767..a38c032 100644
--- a/arch/sparc/include/asm/uaccess_64.h
+++ b/arch/sparc/include/asm/uaccess_64.h
@@ -12,7 +12,7 @@
#include <asm/asi.h>
#include <asm/system.h>
#include <asm/spitfire.h>
-#include <asm-generic/uaccess.h>
+#include <asm-generic/uaccess-unaligned.h>
#endif
#ifndef __ASSEMBLY__
diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess-unaligned.h
similarity index 82%
rename from include/asm-generic/uaccess.h
rename to include/asm-generic/uaccess-unaligned.h
index 549cb3a..67deb89 100644
--- a/include/asm-generic/uaccess.h
+++ b/include/asm-generic/uaccess-unaligned.h
@@ -1,5 +1,5 @@
-#ifndef _ASM_GENERIC_UACCESS_H_
-#define _ASM_GENERIC_UACCESS_H_
+#ifndef __ASM_GENERIC_UACCESS_UNALIGNED_H
+#define __ASM_GENERIC_UACCESS_UNALIGNED_H
/*
* This macro should be used instead of __get_user() when accessing
@@ -23,4 +23,4 @@
__copy_to_user((ptr), &__x, sizeof(*(ptr))) ? -EFAULT : 0; \
})
-#endif /* _ASM_GENERIC_UACCESS_H */
+#endif /* __ASM_GENERIC_UACCESS_UNALIGNED_H */
--
1.5.6.3
--
next prev parent reply other threads:[~2009-04-30 19:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-30 18:56 [PATCH v2 0/9] more non-ABI asm-generic headers Arnd Bergmann
2009-04-30 18:56 ` [PATCH v2 1/9] asm-generic: rename atomic.h to atomic-long.h Arnd Bergmann
2009-04-30 18:56 ` [PATCH v2 2/9] asm-generic: rename page.h to getorder.h Arnd Bergmann
2009-04-30 18:56 ` Arnd Bergmann [this message]
2009-04-30 18:56 ` [PATCH v2 4/9] asm-generic: make pci.h usable directly Arnd Bergmann
2009-04-30 18:56 ` [PATCH v2 5/9] asm-generic: make bitops.h usable Arnd Bergmann
2009-04-30 18:56 ` [PATCH v2 6/9] asm-generic: add generic versions of common headers Arnd Bergmann
2009-04-30 18:56 ` [PATCH v2 7/9] asm-generic: add legacy I/O header files Arnd Bergmann
2009-04-30 18:56 ` [PATCH v2 8/9] asm-generic: add generic atomic.h and io.h Arnd Bergmann
2009-04-30 18:56 ` [PATCH v2 9/9] asm-generic: add generic NOMMU versions of some headers Arnd Bergmann
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=20090430185716.784575576@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=monstr@monstr.eu \
--cc=remis.developer@googlemail.com \
/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