* - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch removed from -mm tree
@ 2008-02-07 3:38 akpm
2008-02-07 8:51 ` - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.pa tch " Kirill A. Shutemov
0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2008-02-07 3:38 UTC (permalink / raw)
To: k.shutemov, dwmw2, linux-arch, mm-commits
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.pa tch removed from -mm tree
2008-02-07 3:38 - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch removed from -mm tree akpm
@ 2008-02-07 8:51 ` Kirill A. Shutemov
2008-02-07 8:53 ` David Woodhouse
0 siblings, 1 reply; 3+ messages in thread
From: Kirill A. Shutemov @ 2008-02-07 8:51 UTC (permalink / raw)
To: akpm; +Cc: dwmw2, linux-arch, mm-commits
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
On [Wed, 06.02.2008 19:38], akpm@linux-foundation.org wrote:
>
> 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
Why? asm/elf.h on PowerPC has still exported, so this patch is needed.
--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ Velesys Ltd, http://www.velesys.com/
+ ALT Linux Team, http://www.altlinux.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.pa tch removed from -mm tree
2008-02-07 8:51 ` - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.pa tch " Kirill A. Shutemov
@ 2008-02-07 8:53 ` David Woodhouse
0 siblings, 0 replies; 3+ messages in thread
From: David Woodhouse @ 2008-02-07 8:53 UTC (permalink / raw)
To: Kirill A. Shutemov; +Cc: akpm, linux-arch, mm-commits
On Thu, 2008-02-07 at 10:51 +0200, Kirill A. Shutemov wrote:
> On [Wed, 06.02.2008 19:38], akpm@linux-foundation.org wrote:
> >
> > 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
>
> Why? asm/elf.h on PowerPC has still exported, so this patch is needed.
This patch was dropped because it was folded into
cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed.patch
--
dwmw2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-07 8:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 3:38 - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch removed from -mm tree akpm
2008-02-07 8:51 ` - cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.pa tch " Kirill A. Shutemov
2008-02-07 8:53 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).