From: akpm@linux-foundation.org
To: k.shutemov@gmail.com, dwmw2@infradead.org,
linux-arch@vger.kernel.org, mm-commits@vger.kernel.org
Subject: - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch removed from -mm tree
Date: Wed, 06 Feb 2008 19:38:27 -0800 [thread overview]
Message-ID: <200802070338.m173c8MA014249@imap1.linux-foundation.org> (raw)
The patch titled
Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed (fix)
has been removed from the -mm tree. Its filename was
cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch
This patch was dropped because it was folded into cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed.patch
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed (fix)
From: "Kirill A. Shutemov" <k.shutemov@gmail.com>
asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so
we can drop #ifdef __KERNEL__ for them.
Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
CcDavid Woodhouse <dwmw2@infradead.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/asm-powerpc/elf.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff -puN include/asm-powerpc/elf.h~cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix include/asm-powerpc/elf.h
--- a/include/asm-powerpc/elf.h~cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix
+++ a/include/asm-powerpc/elf.h
@@ -1,9 +1,11 @@
#ifndef _ASM_POWERPC_ELF_H
#define _ASM_POWERPC_ELF_H
+#ifdef __KERNEL__
#include <linux/sched.h> /* for task_struct */
#include <asm/page.h>
#include <asm/string.h>
+#endif
#include <asm/types.h>
#include <asm/ptrace.h>
@@ -158,6 +160,7 @@ typedef elf_vrreg_t elf_vrregset_t[ELF_N
typedef elf_vrreg_t elf_vrregset_t32[ELF_NVRREG32];
#endif
+#ifdef __KERNEL__
/*
* This is used to ensure we don't load something for the wrong architecture.
*/
@@ -219,6 +222,8 @@ extern int dump_task_altivec(struct task
#define ELF_CORE_XFPREG_TYPE NT_PPC_VMX
#endif
+#endif /* __KERNEL__ */
+
/* ELF_HWCAP yields a mask that user programs can use to figure out what
instruction set this cpu supports. This could be done in userspace,
but it's not easy, and we've already done it here. */
@@ -236,6 +241,8 @@ extern int dump_task_altivec(struct task
} while (0)
#endif /* __powerpc64__ */
+#ifdef __KERNEL__
+
#ifdef __powerpc64__
# define SET_PERSONALITY(ex, ibcs2) \
do { \
@@ -263,6 +270,8 @@ do { \
# define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
#endif /* __powerpc64__ */
+#endif /* __KERNEL__ */
+
extern int dcache_bsize;
extern int icache_bsize;
extern int ucache_bsize;
_
Patches currently in -mm which might be from k.shutemov@gmail.com are
unexport-asm-userh-and-linux-userh.patch
cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed.patch
cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch
unexport-asm-elfh.patch
unexport-asm-pageh.patch
next reply other threads:[~2008-02-07 3:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-07 3:38 akpm [this message]
2008-02-07 8:51 ` - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.pa tch removed from -mm tree Kirill A. Shutemov
2008-02-07 8:53 ` David Woodhouse
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=200802070338.m173c8MA014249@imap1.linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dwmw2@infradead.org \
--cc=k.shutemov@gmail.com \
--cc=linux-arch@vger.kernel.org \
--cc=mm-commits@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.