All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: Remove mmu_gathers storage from remaining architectures
@ 2022-02-05 14:19 ` Stafford Horne
  0 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2022-02-05 14:19 UTC (permalink / raw)
  To: LKML
  Cc: Stafford Horne, Brian Cain, Nick Hu, Greentime Hu, Vincent Chen,
	Jonas Bonn, Stefan Kristiansson, Mike Rapoport, Russell King,
	Andrew Morton, David Hildenbrand, Dave Hansen, Kefeng Wang,
	Christophe Leroy, linux-hexagon, openrisc

Originally the mmu_gathers were removed in commit 1c3951769621 ("mm: now
that all old mmu_gather code is gone, remove the storage").  However,
the openrisc and hexagon architecture were merged around the same time
and mmu_gathers was not removed.

This patch removes them from openrisc, hexagon and nds32:

Noticed while cleaning this warning:

    arch/openrisc/mm/init.c:41:1: warning: symbol 'mmu_gathers' was not declared. Should it be static?

Signed-off-by: Stafford Horne <shorne@gmail.com>
---
 arch/hexagon/mm/init.c  | 2 --
 arch/nds32/mm/init.c    | 1 -
 arch/openrisc/mm/init.c | 2 --
 3 files changed, 5 deletions(-)

diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
index f01e91e10d95..3167a3b5c97b 100644
--- a/arch/hexagon/mm/init.c
+++ b/arch/hexagon/mm/init.c
@@ -29,8 +29,6 @@ int max_kernel_seg = 0x303;
 /*  indicate pfn's of high memory  */
 unsigned long highstart_pfn, highend_pfn;
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /* Default cache attribute for newly created page tables */
 unsigned long _dflt_cache_att = CACHEDEF;
 
diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
index f63f839738c4..825c85cab1a1 100644
--- a/arch/nds32/mm/init.c
+++ b/arch/nds32/mm/init.c
@@ -18,7 +18,6 @@
 #include <asm/tlb.h>
 #include <asm/page.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 DEFINE_SPINLOCK(anon_alias_lock);
 extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
 
diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c
index 97305bde1b16..3a021ab6f1ae 100644
--- a/arch/openrisc/mm/init.c
+++ b/arch/openrisc/mm/init.c
@@ -38,8 +38,6 @@
 
 int mem_init_done;
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 static void __init zone_sizes_init(void)
 {
 	unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
-- 
2.31.1


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

* [OpenRISC] [PATCH] mm: Remove mmu_gathers storage from remaining architectures
@ 2022-02-05 14:19 ` Stafford Horne
  0 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2022-02-05 14:19 UTC (permalink / raw)
  To: openrisc

Originally the mmu_gathers were removed in commit 1c3951769621 ("mm: now
that all old mmu_gather code is gone, remove the storage").  However,
the openrisc and hexagon architecture were merged around the same time
and mmu_gathers was not removed.

This patch removes them from openrisc, hexagon and nds32:

Noticed while cleaning this warning:

    arch/openrisc/mm/init.c:41:1: warning: symbol 'mmu_gathers' was not declared. Should it be static?

Signed-off-by: Stafford Horne <shorne@gmail.com>
---
 arch/hexagon/mm/init.c  | 2 --
 arch/nds32/mm/init.c    | 1 -
 arch/openrisc/mm/init.c | 2 --
 3 files changed, 5 deletions(-)

diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
index f01e91e10d95..3167a3b5c97b 100644
--- a/arch/hexagon/mm/init.c
+++ b/arch/hexagon/mm/init.c
@@ -29,8 +29,6 @@ int max_kernel_seg = 0x303;
 /*  indicate pfn's of high memory  */
 unsigned long highstart_pfn, highend_pfn;
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /* Default cache attribute for newly created page tables */
 unsigned long _dflt_cache_att = CACHEDEF;
 
diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
index f63f839738c4..825c85cab1a1 100644
--- a/arch/nds32/mm/init.c
+++ b/arch/nds32/mm/init.c
@@ -18,7 +18,6 @@
 #include <asm/tlb.h>
 #include <asm/page.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 DEFINE_SPINLOCK(anon_alias_lock);
 extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
 
diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c
index 97305bde1b16..3a021ab6f1ae 100644
--- a/arch/openrisc/mm/init.c
+++ b/arch/openrisc/mm/init.c
@@ -38,8 +38,6 @@
 
 int mem_init_done;
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 static void __init zone_sizes_init(void)
 {
 	unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
-- 
2.31.1


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

* Re: [PATCH] mm: Remove mmu_gathers storage from remaining architectures
  2022-02-05 14:19 ` [OpenRISC] " Stafford Horne
@ 2022-02-05 15:16   ` Mike Rapoport
  -1 siblings, 0 replies; 6+ messages in thread
From: Mike Rapoport @ 2022-02-05 15:16 UTC (permalink / raw)
  To: Stafford Horne
  Cc: LKML, Brian Cain, Nick Hu, Greentime Hu, Vincent Chen,
	Jonas Bonn, Stefan Kristiansson, Russell King, Andrew Morton,
	David Hildenbrand, Dave Hansen, Kefeng Wang, Christophe Leroy,
	linux-hexagon, openrisc

On Sat, Feb 05, 2022 at 11:19:53PM +0900, Stafford Horne wrote:
> Originally the mmu_gathers were removed in commit 1c3951769621 ("mm: now
> that all old mmu_gather code is gone, remove the storage").  However,
> the openrisc and hexagon architecture were merged around the same time
> and mmu_gathers was not removed.
> 
> This patch removes them from openrisc, hexagon and nds32:
> 
> Noticed while cleaning this warning:
> 
>     arch/openrisc/mm/init.c:41:1: warning: symbol 'mmu_gathers' was not declared. Should it be static?
> 
> Signed-off-by: Stafford Horne <shorne@gmail.com>

Acked-by: Mike Rapoport <rppt@linux.ibm.com>

> ---
>  arch/hexagon/mm/init.c  | 2 --
>  arch/nds32/mm/init.c    | 1 -
>  arch/openrisc/mm/init.c | 2 --
>  3 files changed, 5 deletions(-)
> 
> diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
> index f01e91e10d95..3167a3b5c97b 100644
> --- a/arch/hexagon/mm/init.c
> +++ b/arch/hexagon/mm/init.c
> @@ -29,8 +29,6 @@ int max_kernel_seg = 0x303;
>  /*  indicate pfn's of high memory  */
>  unsigned long highstart_pfn, highend_pfn;
>  
> -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> -
>  /* Default cache attribute for newly created page tables */
>  unsigned long _dflt_cache_att = CACHEDEF;
>  
> diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
> index f63f839738c4..825c85cab1a1 100644
> --- a/arch/nds32/mm/init.c
> +++ b/arch/nds32/mm/init.c
> @@ -18,7 +18,6 @@
>  #include <asm/tlb.h>
>  #include <asm/page.h>
>  
> -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
>  DEFINE_SPINLOCK(anon_alias_lock);
>  extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
>  
> diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c
> index 97305bde1b16..3a021ab6f1ae 100644
> --- a/arch/openrisc/mm/init.c
> +++ b/arch/openrisc/mm/init.c
> @@ -38,8 +38,6 @@
>  
>  int mem_init_done;
>  
> -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> -
>  static void __init zone_sizes_init(void)
>  {
>  	unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
> -- 
> 2.31.1
> 

-- 
Sincerely yours,
Mike.

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

* [OpenRISC] [PATCH] mm: Remove mmu_gathers storage from remaining architectures
@ 2022-02-05 15:16   ` Mike Rapoport
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Rapoport @ 2022-02-05 15:16 UTC (permalink / raw)
  To: openrisc

On Sat, Feb 05, 2022 at 11:19:53PM +0900, Stafford Horne wrote:
> Originally the mmu_gathers were removed in commit 1c3951769621 ("mm: now
> that all old mmu_gather code is gone, remove the storage").  However,
> the openrisc and hexagon architecture were merged around the same time
> and mmu_gathers was not removed.
> 
> This patch removes them from openrisc, hexagon and nds32:
> 
> Noticed while cleaning this warning:
> 
>     arch/openrisc/mm/init.c:41:1: warning: symbol 'mmu_gathers' was not declared. Should it be static?
> 
> Signed-off-by: Stafford Horne <shorne@gmail.com>

Acked-by: Mike Rapoport <rppt@linux.ibm.com>

> ---
>  arch/hexagon/mm/init.c  | 2 --
>  arch/nds32/mm/init.c    | 1 -
>  arch/openrisc/mm/init.c | 2 --
>  3 files changed, 5 deletions(-)
> 
> diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
> index f01e91e10d95..3167a3b5c97b 100644
> --- a/arch/hexagon/mm/init.c
> +++ b/arch/hexagon/mm/init.c
> @@ -29,8 +29,6 @@ int max_kernel_seg = 0x303;
>  /*  indicate pfn's of high memory  */
>  unsigned long highstart_pfn, highend_pfn;
>  
> -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> -
>  /* Default cache attribute for newly created page tables */
>  unsigned long _dflt_cache_att = CACHEDEF;
>  
> diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
> index f63f839738c4..825c85cab1a1 100644
> --- a/arch/nds32/mm/init.c
> +++ b/arch/nds32/mm/init.c
> @@ -18,7 +18,6 @@
>  #include <asm/tlb.h>
>  #include <asm/page.h>
>  
> -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
>  DEFINE_SPINLOCK(anon_alias_lock);
>  extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
>  
> diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c
> index 97305bde1b16..3a021ab6f1ae 100644
> --- a/arch/openrisc/mm/init.c
> +++ b/arch/openrisc/mm/init.c
> @@ -38,8 +38,6 @@
>  
>  int mem_init_done;
>  
> -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> -
>  static void __init zone_sizes_init(void)
>  {
>  	unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
> -- 
> 2.31.1
> 

-- 
Sincerely yours,
Mike.

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

* Re: [PATCH] mm: Remove mmu_gathers storage from remaining architectures
  2022-02-05 15:16   ` [OpenRISC] " Mike Rapoport
@ 2022-02-06  3:19     ` Stafford Horne
  -1 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2022-02-06  3:19 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: LKML, Brian Cain, Nick Hu, Greentime Hu, Vincent Chen,
	Jonas Bonn, Stefan Kristiansson, Russell King, Andrew Morton,
	David Hildenbrand, Dave Hansen, Kefeng Wang, Christophe Leroy,
	linux-hexagon, openrisc

On Sat, Feb 05, 2022 at 05:16:06PM +0200, Mike Rapoport wrote:
> On Sat, Feb 05, 2022 at 11:19:53PM +0900, Stafford Horne wrote:
> > Originally the mmu_gathers were removed in commit 1c3951769621 ("mm: now
> > that all old mmu_gather code is gone, remove the storage").  However,
> > the openrisc and hexagon architecture were merged around the same time
> > and mmu_gathers was not removed.
> > 
> > This patch removes them from openrisc, hexagon and nds32:
> > 
> > Noticed while cleaning this warning:
> > 
> >     arch/openrisc/mm/init.c:41:1: warning: symbol 'mmu_gathers' was not declared. Should it be static?
> > 
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> 
> Acked-by: Mike Rapoport <rppt@linux.ibm.com>

Thank you,

BTW For now my plan is to queue this on my openrisc branch unless someone else
wants to pick this up.

-Stafford

> > ---
> >  arch/hexagon/mm/init.c  | 2 --
> >  arch/nds32/mm/init.c    | 1 -
> >  arch/openrisc/mm/init.c | 2 --
> >  3 files changed, 5 deletions(-)
> > 
> > diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
> > index f01e91e10d95..3167a3b5c97b 100644
> > --- a/arch/hexagon/mm/init.c
> > +++ b/arch/hexagon/mm/init.c
> > @@ -29,8 +29,6 @@ int max_kernel_seg = 0x303;
> >  /*  indicate pfn's of high memory  */
> >  unsigned long highstart_pfn, highend_pfn;
> >  
> > -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> > -
> >  /* Default cache attribute for newly created page tables */
> >  unsigned long _dflt_cache_att = CACHEDEF;
> >  
> > diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
> > index f63f839738c4..825c85cab1a1 100644
> > --- a/arch/nds32/mm/init.c
> > +++ b/arch/nds32/mm/init.c
> > @@ -18,7 +18,6 @@
> >  #include <asm/tlb.h>
> >  #include <asm/page.h>
> >  
> > -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> >  DEFINE_SPINLOCK(anon_alias_lock);
> >  extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
> >  
> > diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c
> > index 97305bde1b16..3a021ab6f1ae 100644
> > --- a/arch/openrisc/mm/init.c
> > +++ b/arch/openrisc/mm/init.c
> > @@ -38,8 +38,6 @@
> >  
> >  int mem_init_done;
> >  
> > -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> > -
> >  static void __init zone_sizes_init(void)
> >  {
> >  	unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
> > -- 
> > 2.31.1
> > 
> 
> -- 
> Sincerely yours,
> Mike.

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

* [OpenRISC] [PATCH] mm: Remove mmu_gathers storage from remaining architectures
@ 2022-02-06  3:19     ` Stafford Horne
  0 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2022-02-06  3:19 UTC (permalink / raw)
  To: openrisc

On Sat, Feb 05, 2022 at 05:16:06PM +0200, Mike Rapoport wrote:
> On Sat, Feb 05, 2022 at 11:19:53PM +0900, Stafford Horne wrote:
> > Originally the mmu_gathers were removed in commit 1c3951769621 ("mm: now
> > that all old mmu_gather code is gone, remove the storage").  However,
> > the openrisc and hexagon architecture were merged around the same time
> > and mmu_gathers was not removed.
> > 
> > This patch removes them from openrisc, hexagon and nds32:
> > 
> > Noticed while cleaning this warning:
> > 
> >     arch/openrisc/mm/init.c:41:1: warning: symbol 'mmu_gathers' was not declared. Should it be static?
> > 
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> 
> Acked-by: Mike Rapoport <rppt@linux.ibm.com>

Thank you,

BTW For now my plan is to queue this on my openrisc branch unless someone else
wants to pick this up.

-Stafford

> > ---
> >  arch/hexagon/mm/init.c  | 2 --
> >  arch/nds32/mm/init.c    | 1 -
> >  arch/openrisc/mm/init.c | 2 --
> >  3 files changed, 5 deletions(-)
> > 
> > diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
> > index f01e91e10d95..3167a3b5c97b 100644
> > --- a/arch/hexagon/mm/init.c
> > +++ b/arch/hexagon/mm/init.c
> > @@ -29,8 +29,6 @@ int max_kernel_seg = 0x303;
> >  /*  indicate pfn's of high memory  */
> >  unsigned long highstart_pfn, highend_pfn;
> >  
> > -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> > -
> >  /* Default cache attribute for newly created page tables */
> >  unsigned long _dflt_cache_att = CACHEDEF;
> >  
> > diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
> > index f63f839738c4..825c85cab1a1 100644
> > --- a/arch/nds32/mm/init.c
> > +++ b/arch/nds32/mm/init.c
> > @@ -18,7 +18,6 @@
> >  #include <asm/tlb.h>
> >  #include <asm/page.h>
> >  
> > -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> >  DEFINE_SPINLOCK(anon_alias_lock);
> >  extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
> >  
> > diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c
> > index 97305bde1b16..3a021ab6f1ae 100644
> > --- a/arch/openrisc/mm/init.c
> > +++ b/arch/openrisc/mm/init.c
> > @@ -38,8 +38,6 @@
> >  
> >  int mem_init_done;
> >  
> > -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
> > -
> >  static void __init zone_sizes_init(void)
> >  {
> >  	unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
> > -- 
> > 2.31.1
> > 
> 
> -- 
> Sincerely yours,
> Mike.

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

end of thread, other threads:[~2022-02-06  3:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-05 14:19 [PATCH] mm: Remove mmu_gathers storage from remaining architectures Stafford Horne
2022-02-05 14:19 ` [OpenRISC] " Stafford Horne
2022-02-05 15:16 ` Mike Rapoport
2022-02-05 15:16   ` [OpenRISC] " Mike Rapoport
2022-02-06  3:19   ` Stafford Horne
2022-02-06  3:19     ` [OpenRISC] " Stafford Horne

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.