All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/mm/dump_pagetables: Remove the unused prev_pud variable
@ 2019-02-14  9:33 Shaokun Zhang
  2019-02-14 16:16 ` [tip:x86/cleanups] " tip-bot for Shaokun Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Shaokun Zhang @ 2019-02-14  9:33 UTC (permalink / raw)
  To: x86, linux-kernel
  Cc: Shaokun Zhang, Dave Hansen, Andy Lutomirski, Peter Zijlstra,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, H. Peter Anvin,
	Andrey Ryabinin

The 'prev_pud' local variable became unused after commit 04b67022fb6d 
("x86/mm/dump_pagetables: Speed up page tables dump for CONFIG_KASAN=y"),
let's remove it.

Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 arch/x86/mm/dump_pagetables.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index e3cdc85ce5b6..ee8f8ab46941 100644
--- a/arch/x86/mm/dump_pagetables.c
+++ b/arch/x86/mm/dump_pagetables.c
@@ -444,7 +444,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr,
 	int i;
 	pud_t *start, *pud_start;
 	pgprotval_t prot, eff;
-	pud_t *prev_pud = NULL;
 
 	pud_start = start = (pud_t *)p4d_page_vaddr(addr);
 
@@ -462,7 +461,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr,
 		} else
 			note_page(m, st, __pgprot(0), 0, 3);
 
-		prev_pud = start;
 		start++;
 	}
 }
-- 
2.7.4


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

* [tip:x86/cleanups] x86/mm/dump_pagetables: Remove the unused prev_pud variable
  2019-02-14  9:33 [PATCH] x86/mm/dump_pagetables: Remove the unused prev_pud variable Shaokun Zhang
@ 2019-02-14 16:16 ` tip-bot for Shaokun Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Shaokun Zhang @ 2019-02-14 16:16 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, mingo, dave.hansen, luto, peterz, aryabinin, mingo,
	tglx, hpa, bp, zhangshaokun, x86

Commit-ID:  8e8a3cea7ea5f5458fdf2287713626892e7715f5
Gitweb:     https://git.kernel.org/tip/8e8a3cea7ea5f5458fdf2287713626892e7715f5
Author:     Shaokun Zhang <zhangshaokun@hisilicon.com>
AuthorDate: Thu, 14 Feb 2019 17:33:49 +0800
Committer:  Borislav Petkov <bp@suse.de>
CommitDate: Thu, 14 Feb 2019 17:09:43 +0100

x86/mm/dump_pagetables: Remove the unused prev_pud variable

The 'prev_pud' local variable became unused after commit

  04b67022fb6d ("x86/mm/dump_pagetables: Speed up page tables dump for CONFIG_KASAN=y").

Remove it.

Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/1550136829-49088-1-git-send-email-zhangshaokun@hisilicon.com
---
 arch/x86/mm/dump_pagetables.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index e3cdc85ce5b6..ee8f8ab46941 100644
--- a/arch/x86/mm/dump_pagetables.c
+++ b/arch/x86/mm/dump_pagetables.c
@@ -444,7 +444,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr,
 	int i;
 	pud_t *start, *pud_start;
 	pgprotval_t prot, eff;
-	pud_t *prev_pud = NULL;
 
 	pud_start = start = (pud_t *)p4d_page_vaddr(addr);
 
@@ -462,7 +461,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr,
 		} else
 			note_page(m, st, __pgprot(0), 0, 3);
 
-		prev_pud = start;
 		start++;
 	}
 }

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

end of thread, other threads:[~2019-02-14 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14  9:33 [PATCH] x86/mm/dump_pagetables: Remove the unused prev_pud variable Shaokun Zhang
2019-02-14 16:16 ` [tip:x86/cleanups] " tip-bot for Shaokun Zhang

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.