Signed-off-by: Shea Levy
---
arch/h8300/Kconfig | 1 +
arch/h8300/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig
index 091d6d04b5e5..58c9b6b1df16 100644
--- a/arch/h8300/Kconfig
+++ b/arch/h8300/Kconfig
@@ -24,6
Signed-off-by: Shea Levy
---
arch/riscv/Kconfig | 1 +
arch/riscv/mm/init.c | 6 --
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index c22ebe08e902..ab1b4cee84fc 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -37,6 +37,7
Signed-off-by: Shea Levy
---
arch/openrisc/Kconfig | 1 +
arch/openrisc/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
index dfb6a79ba7ff..0f8d2132baa5 100644
--- a/arch/openrisc/Kconfig
+++ b/arch/openrisc
Signed-off-by: Shea Levy
---
arch/parisc/Kconfig | 1 +
arch/parisc/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 9792d8cf4f56..7410c2094987 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
Signed-off-by: Shea Levy
---
arch/sh/Kconfig | 1 +
arch/sh/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 97fe29316476..b6f80dad2152 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -50,6 +50,7 @@ config SUPERH
This patch series extracts out code for unloading the initramfs that
was identical across 14 architectures, and moves those architectures
to the common code path. Additionally, RISC-V is newly moved to the
common code path.
In addition to reducing duplication, this allows us to bring future
improv
Signed-off-by: Shea Levy
---
arch/m68k/Kconfig | 1 +
arch/m68k/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 785612b576f7..47913a68529e 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -24,6 +24,7
Signed-off-by: Shea Levy
---
arch/alpha/Kconfig | 1 +
arch/alpha/mm/init.c | 8
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index e96adcbcab41..238d743ae8f2 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -27,6
Signed-off-by: Shea Levy
---
arch/um/Kconfig.common | 1 +
arch/um/kernel/mem.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common
index c68add8df3ae..1cb8a023938b 100644
--- a/arch/um/Kconfig.common
+++ b/arch/um
Signed-off-by: Shea Levy
---
arch/nios2/Kconfig | 1 +
arch/nios2/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
index 3d4ec88f1db1..d3b72d5c8967 100644
--- a/arch/nios2/Kconfig
+++ b/arch/nios2/Kconfig
@@ -19,6
Signed-off-by: Shea Levy
---
arch/c6x/Kconfig | 1 +
arch/c6x/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/c6x/Kconfig b/arch/c6x/Kconfig
index c6b4dd1418b4..857f95f9a6a4 100644
--- a/arch/c6x/Kconfig
+++ b/arch/c6x/Kconfig
@@ -19,6 +19,7 @@ config
Signed-off-by: Shea Levy
---
init/initramfs.c | 7 +++
usr/Kconfig | 4
2 files changed, 11 insertions(+)
diff --git a/init/initramfs.c b/init/initramfs.c
index 7e99a0038942..de5ce873eb5a 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -526,6 +526,13 @@ extern unsigned
Signed-off-by: Shea Levy
---
arch/m32r/Kconfig | 1 +
arch/m32r/mm/init.c | 11 ---
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig
index dd84ee194579..010a2b999181 100644
--- a/arch/m32r/Kconfig
+++ b/arch/m32r/Kconfig
@@ -21,6
Signed-off-by: Shea Levy
---
arch/microblaze/Kconfig | 1 +
arch/microblaze/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 3817a3e2146c..ef23e8410b4b 100644
--- a/arch/microblaze/Kconfig
+++ b/arch
Signed-off-by: Shea Levy
---
arch/frv/Kconfig | 1 +
arch/frv/mm/init.c | 11 ---
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig
index af369b05fed5..5c104b800cb1 100644
--- a/arch/frv/Kconfig
+++ b/arch/frv/Kconfig
@@ -17,6 +17,7
Signed-off-by: Shea Levy
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/mm/mem.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 73ce5dd07642..8cf384068e79 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
Signed-off-by: Shea Levy
---
arch/arc/Kconfig | 1 +
arch/arc/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index d76bf4a83740..2844ce5b910c 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -44,6 +44,7 @@ config
This patch series extracts out code for unloading the initramfs that
was identical across 14 architectures, and moves those architectures
to the common code path. Additionally, RISC-V is newly moved to the
common code path.
In addition to reducing duplication, this allows us to bring future
improv
Signed-off-by: Shea Levy
---
init/initramfs.c | 7 +++
usr/Kconfig | 4
2 files changed, 11 insertions(+)
diff --git a/init/initramfs.c b/init/initramfs.c
index 7e99a0038942..5f2e3dba4822 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -526,6 +526,13 @@ extern unsigned
Signed-off-by: Shea Levy
---
arch/riscv/Kconfig | 1 +
arch/riscv/mm/init.c | 6 --
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index c22ebe08e902..ab1b4cee84fc 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -37,6 +37,7
Signed-off-by: Shea Levy
---
arch/alpha/Kconfig | 1 +
arch/alpha/mm/init.c | 8
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index e96adcbcab41..238d743ae8f2 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -27,6
Signed-off-by: Shea Levy
---
arch/arc/Kconfig | 1 +
arch/arc/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index d76bf4a83740..2844ce5b910c 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -44,6 +44,7 @@ config
Signed-off-by: Shea Levy
---
arch/c6x/Kconfig | 1 +
arch/c6x/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/c6x/Kconfig b/arch/c6x/Kconfig
index c6b4dd1418b4..857f95f9a6a4 100644
--- a/arch/c6x/Kconfig
+++ b/arch/c6x/Kconfig
@@ -19,6 +19,7 @@ config
Signed-off-by: Shea Levy
---
arch/frv/Kconfig | 1 +
arch/frv/mm/init.c | 11 ---
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig
index af369b05fed5..5c104b800cb1 100644
--- a/arch/frv/Kconfig
+++ b/arch/frv/Kconfig
@@ -17,6 +17,7
Signed-off-by: Shea Levy
---
arch/h8300/Kconfig | 1 +
arch/h8300/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig
index 091d6d04b5e5..58c9b6b1df16 100644
--- a/arch/h8300/Kconfig
+++ b/arch/h8300/Kconfig
@@ -24,6
Signed-off-by: Shea Levy
---
arch/m32r/Kconfig | 1 +
arch/m32r/mm/init.c | 11 ---
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig
index dd84ee194579..010a2b999181 100644
--- a/arch/m32r/Kconfig
+++ b/arch/m32r/Kconfig
@@ -21,6
Signed-off-by: Shea Levy
---
arch/m68k/Kconfig | 1 +
arch/m68k/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 785612b576f7..47913a68529e 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -24,6 +24,7
Signed-off-by: Shea Levy
---
arch/microblaze/Kconfig | 1 +
arch/microblaze/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 3817a3e2146c..ef23e8410b4b 100644
--- a/arch/microblaze/Kconfig
+++ b/arch
Signed-off-by: Shea Levy
---
arch/nios2/Kconfig | 1 +
arch/nios2/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
index 3d4ec88f1db1..d3b72d5c8967 100644
--- a/arch/nios2/Kconfig
+++ b/arch/nios2/Kconfig
@@ -19,6
Signed-off-by: Shea Levy
---
arch/openrisc/Kconfig | 1 +
arch/openrisc/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
index dfb6a79ba7ff..0f8d2132baa5 100644
--- a/arch/openrisc/Kconfig
+++ b/arch/openrisc
Signed-off-by: Shea Levy
---
arch/parisc/Kconfig | 1 +
arch/parisc/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 9792d8cf4f56..7410c2094987 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
Signed-off-by: Shea Levy
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/mm/mem.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 73ce5dd07642..8cf384068e79 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
Signed-off-by: Shea Levy
---
arch/sh/Kconfig | 1 +
arch/sh/mm/init.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 97fe29316476..b6f80dad2152 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -50,6 +50,7 @@ config SUPERH
Signed-off-by: Shea Levy
---
arch/um/Kconfig.common | 1 +
arch/um/kernel/mem.c | 7 ---
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common
index c68add8df3ae..1cb8a023938b 100644
--- a/arch/um/Kconfig.common
+++ b/arch/um
Hi Christophe,
LEROY Christophe writes:
> Shea Levy a écrit :
>
>> Signed-off-by: Shea Levy
>> ---
>> init/initramfs.c | 7 +++
>> usr/Kconfig | 4
>> 2 files changed, 11 insertions(+)
>>
>> diff --git a/init/initramfs.c b/init
Hi Palmer,
Palmer Dabbelt writes:
> On Sun, 25 Mar 2018 15:18:39 PDT (-0700), s...@shealevy.com wrote:
>> Signed-off-by: Shea Levy
>> ---
>> arch/riscv/Kconfig | 1 +
>> arch/riscv/mm/init.c | 6 --
>> 2 files changed, 1 insertion(+), 6 deletions(-)
>
Signed-off-by: Shea Levy
---
arch/powerpc/mm/mem.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index fe8c61149fb8..e85b2a3cd264 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -404,13 +404,6 @@ void free_initmem(void
Joe Perches writes:
> On Wed, 2018-03-28 at 16:36 -0400, Shea Levy wrote:
>> Signed-off-by: Shea Levy
>
> Most people seem to want some form of commit message
> and not just your sign-off.
>
Ah, if the subject is insufficient I can add some more detail.
>
> And
Now only those architectures that have custom initrd free requirements
need to define free_initrd_mem.
Signed-off-by: Shea Levy
---
arch/alpha/mm/init.c | 8
arch/arc/mm/init.c| 7 ---
arch/arm/Kconfig | 1 +
arch/arm64/Kconfig| 1 +
arch/blackfin
Hi Rob,
Rob Landley writes:
> On 03/28/2018 10:26 AM, Shea Levy wrote:
>> Now only those architectures that have custom initrd free requirements
>> need to define free_initrd_mem.
> ...
>> --- a/arch/arc/mm/init.c
>> +++ b/arch/arc/mm/init.c
>> @@ -229,10 +2
The generic implementation is functionally identical.
Signed-off-by: Shea Levy
---
arch/powerpc/mm/mem.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index fe8c61149fb8..e85b2a3cd264 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc
The first patch in this series added a weakly-defined generic
implementation, which is functionally identical to the
architecture-specific one removed here.
Series boot-tested on RISC-V (which now uses the generic
implementation) and x86_64 (which doesn't).
Signed-off-by: Shea Levy
---
Hi Michael,
Michael Ellerman writes:
> Shea Levy writes:
>
>> Joe Perches writes:
>>
>>> On Wed, 2018-03-28 at 16:36 -0400, Shea Levy wrote:
>>>> Signed-off-by: Shea Levy
>>>
>>> Most people seem to want some form of commit message
>
Hi Ingo,
Ingo Molnar writes:
> * Shea Levy wrote:
>
>> Now only those architectures that have custom initrd free requirements
>> need to define free_initrd_mem.
>>
>> Signed-off-by: Shea Levy
>
> Please put the Kconfig symbol name this patch introduce
44 matches
Mail list logo