linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH resend 1/5] asm-generic/mmu.h: Remove unused vmlist field from mm_context_t
@ 2012-12-01 13:24 Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 2/5] asm-generic/mmu.h: Add support for FDPIC Lars-Peter Clausen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2012-12-01 13:24 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Mark Salter, Aurelien Jacquiot, Yoshinori Sato, Chris Zankel,
	Max Filippov, linux-c6x-dev, linux-kernel, linux-xtensa,
	linux-arch, Lars-Peter Clausen

Nothing is using the vmlist field in mm_context_t anymore. It has been removed
from the non-generic versions over 3 years ago 8feae1311 ("NOMMU: Make VMAs per
MM as for MMU-mode linux").

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 include/asm-generic/mmu.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/include/asm-generic/mmu.h b/include/asm-generic/mmu.h
index 4f4aa56..a67ae0a9 100644
--- a/include/asm-generic/mmu.h
+++ b/include/asm-generic/mmu.h
@@ -7,7 +7,6 @@
  */
 #ifndef __ASSEMBLY__
 typedef struct {
-	struct vm_list_struct	*vmlist;
 	unsigned long		end_brk;
 } mm_context_t;
 #endif
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH resend 2/5] asm-generic/mmu.h: Add support for FDPIC
  2012-12-01 13:24 [PATCH resend 1/5] asm-generic/mmu.h: Remove unused vmlist field from mm_context_t Lars-Peter Clausen
@ 2012-12-01 13:24 ` Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 3/5] c6x: Use generic asm/mmu.h Lars-Peter Clausen
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2012-12-01 13:24 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Mark Salter, Aurelien Jacquiot, Yoshinori Sato, Chris Zankel,
	Max Filippov, linux-c6x-dev, linux-kernel, linux-xtensa,
	linux-arch, Lars-Peter Clausen

No-MMU architectures often have support for FDPIC binaries. FDPIC support
requires two additional fields in the mm_context_t struct. This patch adds these
fields to the generic mm_context_t definition if support for FDPIC binaries is
enabled. This allows to use the generic mmu.h for a few more architectures.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 include/asm-generic/mmu.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/asm-generic/mmu.h b/include/asm-generic/mmu.h
index a67ae0a9..0ed3f1c 100644
--- a/include/asm-generic/mmu.h
+++ b/include/asm-generic/mmu.h
@@ -8,6 +8,11 @@
 #ifndef __ASSEMBLY__
 typedef struct {
 	unsigned long		end_brk;
+
+#ifdef CONFIG_BINFMT_ELF_FDPIC
+	unsigned long		exec_fdpic_loadmap;
+	unsigned long		interp_fdpic_loadmap;
+#endif
 } mm_context_t;
 #endif
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH resend 3/5] c6x: Use generic asm/mmu.h
  2012-12-01 13:24 [PATCH resend 1/5] asm-generic/mmu.h: Remove unused vmlist field from mm_context_t Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 2/5] asm-generic/mmu.h: Add support for FDPIC Lars-Peter Clausen
@ 2012-12-01 13:24 ` Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 4/5] h8300: " Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 5/5] xtensa: Use generic asm/mmu.h for nommu Lars-Peter Clausen
  3 siblings, 0 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2012-12-01 13:24 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Mark Salter, Aurelien Jacquiot, Yoshinori Sato, Chris Zankel,
	Max Filippov, linux-c6x-dev, linux-kernel, linux-xtensa,
	linux-arch, Lars-Peter Clausen

c6x's asm/mmu.h is basically identical to asm-generic/mmu.h, so use it instead
of the custom version.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Mark Salter <msalter@redhat.com>
Tested-by: Mark Salter <msalter@redhat.com>
---
 arch/c6x/include/asm/Kbuild |    1 +
 arch/c6x/include/asm/mmu.h  |   22 ----------------------
 2 files changed, 1 insertions(+), 22 deletions(-)
 delete mode 100644 arch/c6x/include/asm/mmu.h

diff --git a/arch/c6x/include/asm/Kbuild b/arch/c6x/include/asm/Kbuild
index 112a496..3c8b660 100644
--- a/arch/c6x/include/asm/Kbuild
+++ b/arch/c6x/include/asm/Kbuild
@@ -25,6 +25,7 @@ generic-y += kdebug.h
 generic-y += kmap_types.h
 generic-y += local.h
 generic-y += mman.h
+generic-y += mmu.h
 generic-y += mmu_context.h
 generic-y += msgbuf.h
 generic-y += param.h
diff --git a/arch/c6x/include/asm/mmu.h b/arch/c6x/include/asm/mmu.h
deleted file mode 100644
index 4467e77..0000000
--- a/arch/c6x/include/asm/mmu.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- *  Port on Texas Instruments TMS320C6x architecture
- *
- *  Copyright (C) 2004, 2009, 2010 Texas Instruments Incorporated
- *  Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License version 2 as
- *  published by the Free Software Foundation.
- */
-#ifndef _ASM_C6X_MMU_H
-#define _ASM_C6X_MMU_H
-
-typedef struct {
-	unsigned long		end_brk;
-#ifdef CONFIG_BINFMT_ELF_FDPIC
-	unsigned long	exec_fdpic_loadmap;
-	unsigned long	interp_fdpic_loadmap;
-#endif
-} mm_context_t;
-
-#endif /* _ASM_C6X_MMU_H */
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH resend 4/5] h8300: Use generic asm/mmu.h
  2012-12-01 13:24 [PATCH resend 1/5] asm-generic/mmu.h: Remove unused vmlist field from mm_context_t Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 2/5] asm-generic/mmu.h: Add support for FDPIC Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 3/5] c6x: Use generic asm/mmu.h Lars-Peter Clausen
@ 2012-12-01 13:24 ` Lars-Peter Clausen
  2012-12-01 13:24 ` [PATCH resend 5/5] xtensa: Use generic asm/mmu.h for nommu Lars-Peter Clausen
  3 siblings, 0 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2012-12-01 13:24 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Mark Salter, Aurelien Jacquiot, Yoshinori Sato, Chris Zankel,
	Max Filippov, linux-c6x-dev, linux-kernel, linux-xtensa,
	linux-arch, Lars-Peter Clausen

h8300's asm/mmu.h is basically identical to asm-generic/mmu.h, so use it instead
of the custom version.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>

---
Note, due to lack of toolchain, etc this patch is completely untested.
---
 arch/h8300/include/asm/Kbuild |    1 +
 arch/h8300/include/asm/mmu.h  |   10 ----------
 2 files changed, 1 insertions(+), 10 deletions(-)
 delete mode 100644 arch/h8300/include/asm/mmu.h

diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild
index 50bbf38..173de77 100644
--- a/arch/h8300/include/asm/Kbuild
+++ b/arch/h8300/include/asm/Kbuild
@@ -2,4 +2,5 @@ include include/asm-generic/Kbuild.asm
 
 generic-y += clkdev.h
 generic-y += exec.h
+generic-y += mmu.h
 generic-y += module.h
diff --git a/arch/h8300/include/asm/mmu.h b/arch/h8300/include/asm/mmu.h
deleted file mode 100644
index 3130996..0000000
--- a/arch/h8300/include/asm/mmu.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef __MMU_H
-#define __MMU_H
-
-/* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
-
-typedef struct {
-	unsigned long		end_brk;
-} mm_context_t;
-
-#endif
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH resend 5/5] xtensa: Use generic asm/mmu.h for nommu
  2012-12-01 13:24 [PATCH resend 1/5] asm-generic/mmu.h: Remove unused vmlist field from mm_context_t Lars-Peter Clausen
                   ` (2 preceding siblings ...)
  2012-12-01 13:24 ` [PATCH resend 4/5] h8300: " Lars-Peter Clausen
@ 2012-12-01 13:24 ` Lars-Peter Clausen
  3 siblings, 0 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2012-12-01 13:24 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Mark Salter, Aurelien Jacquiot, Yoshinori Sato, Chris Zankel,
	Max Filippov, linux-c6x-dev, linux-kernel, linux-xtensa,
	linux-arch, Lars-Peter Clausen

The nommu portion of mmu.h of the extensa platform is basically the same as the
asm-generic mmu.h. So use it instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>

---
Note, due to lack of toolchain, etc this patch is completely untested.
---
 arch/xtensa/include/asm/mmu.h   |    2 +-
 arch/xtensa/include/asm/nommu.h |    3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)
 delete mode 100644 arch/xtensa/include/asm/nommu.h

diff --git a/arch/xtensa/include/asm/mmu.h b/arch/xtensa/include/asm/mmu.h
index 04890d6..8554b2c 100644
--- a/arch/xtensa/include/asm/mmu.h
+++ b/arch/xtensa/include/asm/mmu.h
@@ -12,7 +12,7 @@
 #define _XTENSA_MMU_H
 
 #ifndef CONFIG_MMU
-#include <asm/nommu.h>
+#include <asm-generic/mmu.h>
 #else
 
 /* Default "unsigned long" context */
diff --git a/arch/xtensa/include/asm/nommu.h b/arch/xtensa/include/asm/nommu.h
deleted file mode 100644
index dce2c43..0000000
--- a/arch/xtensa/include/asm/nommu.h
+++ /dev/null
@@ -1,3 +0,0 @@
-typedef struct {
-	unsigned long end_brk;
-} mm_context_t;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-01 13:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-01 13:24 [PATCH resend 1/5] asm-generic/mmu.h: Remove unused vmlist field from mm_context_t Lars-Peter Clausen
2012-12-01 13:24 ` [PATCH resend 2/5] asm-generic/mmu.h: Add support for FDPIC Lars-Peter Clausen
2012-12-01 13:24 ` [PATCH resend 3/5] c6x: Use generic asm/mmu.h Lars-Peter Clausen
2012-12-01 13:24 ` [PATCH resend 4/5] h8300: " Lars-Peter Clausen
2012-12-01 13:24 ` [PATCH resend 5/5] xtensa: Use generic asm/mmu.h for nommu Lars-Peter Clausen

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).