* [PATCH] x86, pageattr: remove an unused variable in slow_virt_to_phys()
@ 2015-04-23 8:07 Dexuan Cui
2015-05-11 12:47 ` [tip:x86/mm] x86/mm/pageattr: Remove " tip-bot for Dexuan Cui
0 siblings, 1 reply; 2+ messages in thread
From: Dexuan Cui @ 2015-04-23 8:07 UTC (permalink / raw)
To: tglx, mingo, hpa, linux-kernel, x86
The patch doesn't change any logic.
Signed-off-by: Dexuan Cui <decui@microsoft.com>
---
arch/x86/mm/pageattr.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 89af288..4aa736e 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -418,13 +418,11 @@ phys_addr_t slow_virt_to_phys(void *__virt_addr)
phys_addr_t phys_addr;
unsigned long offset;
enum pg_level level;
- unsigned long psize;
unsigned long pmask;
pte_t *pte;
pte = lookup_address(virt_addr, &level);
BUG_ON(!pte);
- psize = page_level_size(level);
pmask = page_level_mask(level);
offset = virt_addr & ~pmask;
phys_addr = (phys_addr_t)pte_pfn(*pte) << PAGE_SHIFT;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:x86/mm] x86/mm/pageattr: Remove an unused variable in slow_virt_to_phys()
2015-04-23 8:07 [PATCH] x86, pageattr: remove an unused variable in slow_virt_to_phys() Dexuan Cui
@ 2015-05-11 12:47 ` tip-bot for Dexuan Cui
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Dexuan Cui @ 2015-05-11 12:47 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, tglx, decui, bp, mingo, hpa
Commit-ID: 1fcb61c52bbdbbc46d132acf7dab9ad0eca433fe
Gitweb: http://git.kernel.org/tip/1fcb61c52bbdbbc46d132acf7dab9ad0eca433fe
Author: Dexuan Cui <decui@microsoft.com>
AuthorDate: Thu, 23 Apr 2015 01:07:08 -0700
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 11 May 2015 11:55:18 +0200
x86/mm/pageattr: Remove an unused variable in slow_virt_to_phys()
The patch doesn't change any logic.
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1429776428-4475-1-git-send-email-decui@microsoft.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/mm/pageattr.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index c77abd7..397838e 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -417,13 +417,11 @@ phys_addr_t slow_virt_to_phys(void *__virt_addr)
phys_addr_t phys_addr;
unsigned long offset;
enum pg_level level;
- unsigned long psize;
unsigned long pmask;
pte_t *pte;
pte = lookup_address(virt_addr, &level);
BUG_ON(!pte);
- psize = page_level_size(level);
pmask = page_level_mask(level);
offset = virt_addr & ~pmask;
phys_addr = (phys_addr_t)pte_pfn(*pte) << PAGE_SHIFT;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-11 12:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23 8:07 [PATCH] x86, pageattr: remove an unused variable in slow_virt_to_phys() Dexuan Cui
2015-05-11 12:47 ` [tip:x86/mm] x86/mm/pageattr: Remove " tip-bot for Dexuan Cui
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.