* [PATCH, v2 0/5] clean stale VALID_PAGE() related code and comments
@ 2013-05-29 15:08 Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 1/5] mm/ALPHA: clean up unused VALID_PAGE() Jiang Liu
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Jiang Liu @ 2013-05-29 15:08 UTC (permalink / raw)
To: Andrew Morton
Cc: Jiang Liu, David Rientjes, Wen Congyang, Mel Gorman, Minchan Kim,
KAMEZAWA Hiroyuki, Michal Hocko, James Bottomley, Sergei Shtylyov,
David Howells, Mark Salter, Jianguo Wu, linux-mm, linux-arch,
linux-kernel
This is a trivial patchset to remove stale VALID_PAGE() related code
and comments.
It applies on top of:
git://git.cmpxchg.org/linux-mmotm.git v3.10-rc2-mmotm-2013-05-22-16-40
Jiang Liu (5):
mm/ALPHA: clean up unused VALID_PAGE()
mm/ARM: fix stale comment about VALID_PAGE()
mm/CRIS: clean up unused VALID_PAGE()
mm/microblaze: clean up unused VALID_PAGE()
mm/unicore32: fix stale comment about VALID_PAGE()
arch/alpha/include/asm/mmzone.h | 2 --
arch/arm/include/asm/memory.h | 6 ------
arch/cris/include/asm/page.h | 1 -
arch/microblaze/include/asm/page.h | 1 -
arch/unicore32/include/asm/memory.h | 6 ------
5 files changed, 16 deletions(-)
--
1.8.1.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH, v2 1/5] mm/ALPHA: clean up unused VALID_PAGE()
2013-05-29 15:08 [PATCH, v2 0/5] clean stale VALID_PAGE() related code and comments Jiang Liu
@ 2013-05-29 15:08 ` Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 2/5] mm/ARM: fix stale comment about VALID_PAGE() Jiang Liu
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jiang Liu @ 2013-05-29 15:08 UTC (permalink / raw)
To: Andrew Morton
Cc: Jiang Liu, David Rientjes, Wen Congyang, Mel Gorman, Minchan Kim,
KAMEZAWA Hiroyuki, Michal Hocko, James Bottomley, Sergei Shtylyov,
David Howells, Mark Salter, Jianguo Wu, linux-mm, linux-arch,
linux-kernel, Richard Henderson, Ivan Kokshaysky, Matt Turner,
Nadia Yvette Chambers, Jiri Kosina, linux-alpha
VALID_PAGE() has been removed from kernel long time ago, so clean up it.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Nadia Yvette Chambers <nyc@holomorphy.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: linux-alpha@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/alpha/include/asm/mmzone.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/alpha/include/asm/mmzone.h b/arch/alpha/include/asm/mmzone.h
index c5b5d6b..14ce27b 100644
--- a/arch/alpha/include/asm/mmzone.h
+++ b/arch/alpha/include/asm/mmzone.h
@@ -71,8 +71,6 @@ PLAT_NODE_DATA_LOCALNR(unsigned long p, int n)
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
-#define VALID_PAGE(page) (((page) - mem_map) < max_mapnr)
-
#define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> 32))
#define pgd_page(pgd) (pfn_to_page(pgd_val(pgd) >> 32))
#define pte_pfn(pte) (pte_val(pte) >> 32)
--
1.8.1.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH, v2 2/5] mm/ARM: fix stale comment about VALID_PAGE()
2013-05-29 15:08 [PATCH, v2 0/5] clean stale VALID_PAGE() related code and comments Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 1/5] mm/ALPHA: clean up unused VALID_PAGE() Jiang Liu
@ 2013-05-29 15:08 ` Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 3/5] mm/CRIS: clean up unused VALID_PAGE() Jiang Liu
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jiang Liu @ 2013-05-29 15:08 UTC (permalink / raw)
To: Andrew Morton
Cc: Jiang Liu, David Rientjes, Wen Congyang, Mel Gorman, Minchan Kim,
KAMEZAWA Hiroyuki, Michal Hocko, James Bottomley, Sergei Shtylyov,
David Howells, Mark Salter, Jianguo Wu, linux-mm, linux-arch,
linux-kernel, Russell King, Will Deacon, Nicolas Pitre,
Stephen Boyd, Giancarlo Asnaghi, linux-arm-kernel
VALID_PAGE() has been removed from kernel long time ago,
so fix the comment.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Nicolas Pitre <nico@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/include/asm/memory.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index 57870ab..0cd2a3d 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -260,12 +260,6 @@ static inline __deprecated void *bus_to_virt(unsigned long x)
/*
* Conversion between a struct page and a physical address.
*
- * Note: when converting an unknown physical address to a
- * struct page, the resulting pointer must be validated
- * using VALID_PAGE(). It must return an invalid struct page
- * for any physical address not corresponding to a system
- * RAM address.
- *
* page_to_pfn(page) convert a struct page * to a PFN number
* pfn_to_page(pfn) convert a _valid_ PFN number to struct page *
*
--
1.8.1.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH, v2 3/5] mm/CRIS: clean up unused VALID_PAGE()
2013-05-29 15:08 [PATCH, v2 0/5] clean stale VALID_PAGE() related code and comments Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 1/5] mm/ALPHA: clean up unused VALID_PAGE() Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 2/5] mm/ARM: fix stale comment about VALID_PAGE() Jiang Liu
@ 2013-05-29 15:08 ` Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 4/5] mm/microblaze: " Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 5/5] mm/unicore32: fix stale comment about VALID_PAGE() Jiang Liu
4 siblings, 0 replies; 6+ messages in thread
From: Jiang Liu @ 2013-05-29 15:08 UTC (permalink / raw)
To: Andrew Morton
Cc: Jiang Liu, David Rientjes, Wen Congyang, Mel Gorman, Minchan Kim,
KAMEZAWA Hiroyuki, Michal Hocko, James Bottomley, Sergei Shtylyov,
David Howells, Mark Salter, Jianguo Wu, linux-mm, linux-arch,
linux-kernel, Mikael Starvik, linux-cris-kernel
VALID_PAGE() has been removed from kernel long time ago, so clean up it.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Jiang Liu <jiang.liu@huawei.com>
Cc: linux-cris-kernel@axis.com
Cc: linux-kernel@vger.kernel.org
---
arch/cris/include/asm/page.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/cris/include/asm/page.h b/arch/cris/include/asm/page.h
index be45ee3..dfc53f9 100644
--- a/arch/cris/include/asm/page.h
+++ b/arch/cris/include/asm/page.h
@@ -51,7 +51,6 @@ typedef struct page *pgtable_t;
*/
#define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT))
-#define VALID_PAGE(page) (((page) - mem_map) < max_mapnr)
#define virt_addr_valid(kaddr) pfn_valid((unsigned)(kaddr) >> PAGE_SHIFT)
/* convert a page (based on mem_map and forward) to a physical address
--
1.8.1.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH, v2 4/5] mm/microblaze: clean up unused VALID_PAGE()
2013-05-29 15:08 [PATCH, v2 0/5] clean stale VALID_PAGE() related code and comments Jiang Liu
` (2 preceding siblings ...)
2013-05-29 15:08 ` [PATCH, v2 3/5] mm/CRIS: clean up unused VALID_PAGE() Jiang Liu
@ 2013-05-29 15:08 ` Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 5/5] mm/unicore32: fix stale comment about VALID_PAGE() Jiang Liu
4 siblings, 0 replies; 6+ messages in thread
From: Jiang Liu @ 2013-05-29 15:08 UTC (permalink / raw)
To: Andrew Morton
Cc: Jiang Liu, David Rientjes, Wen Congyang, Mel Gorman, Minchan Kim,
KAMEZAWA Hiroyuki, Michal Hocko, James Bottomley, Sergei Shtylyov,
David Howells, Mark Salter, Jianguo Wu, linux-mm, linux-arch,
linux-kernel, Michal Simek, microblaze-uclinux
VALID_PAGE() has been removed from kernel long time ago, so clean up it.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: microblaze-uclinux@itee.uq.edu.au
Cc: linux-kernel@vger.kernel.org
---
arch/microblaze/include/asm/page.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h
index 85a5ae8..fd85087 100644
--- a/arch/microblaze/include/asm/page.h
+++ b/arch/microblaze/include/asm/page.h
@@ -168,7 +168,6 @@ extern int page_is_ram(unsigned long pfn);
# else /* CONFIG_MMU */
# define ARCH_PFN_OFFSET (memory_start >> PAGE_SHIFT)
# define pfn_valid(pfn) ((pfn) < (max_mapnr + ARCH_PFN_OFFSET))
-# define VALID_PAGE(page) ((page - mem_map) < max_mapnr)
# endif /* CONFIG_MMU */
# endif /* __ASSEMBLY__ */
--
1.8.1.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH, v2 5/5] mm/unicore32: fix stale comment about VALID_PAGE()
2013-05-29 15:08 [PATCH, v2 0/5] clean stale VALID_PAGE() related code and comments Jiang Liu
` (3 preceding siblings ...)
2013-05-29 15:08 ` [PATCH, v2 4/5] mm/microblaze: " Jiang Liu
@ 2013-05-29 15:08 ` Jiang Liu
4 siblings, 0 replies; 6+ messages in thread
From: Jiang Liu @ 2013-05-29 15:08 UTC (permalink / raw)
To: Andrew Morton
Cc: Jiang Liu, David Rientjes, Wen Congyang, Mel Gorman, Minchan Kim,
KAMEZAWA Hiroyuki, Michal Hocko, James Bottomley, Sergei Shtylyov,
David Howells, Mark Salter, Jianguo Wu, linux-mm, linux-arch,
linux-kernel
VALID_PAGE() has been removed from kernel long time ago,
so fix the comment.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: linux-kernel@vger.kernel.org
---
arch/unicore32/include/asm/memory.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/unicore32/include/asm/memory.h b/arch/unicore32/include/asm/memory.h
index 5eddb99..debafc4 100644
--- a/arch/unicore32/include/asm/memory.h
+++ b/arch/unicore32/include/asm/memory.h
@@ -98,12 +98,6 @@
/*
* Conversion between a struct page and a physical address.
*
- * Note: when converting an unknown physical address to a
- * struct page, the resulting pointer must be validated
- * using VALID_PAGE(). It must return an invalid struct page
- * for any physical address not corresponding to a system
- * RAM address.
- *
* page_to_pfn(page) convert a struct page * to a PFN number
* pfn_to_page(pfn) convert a _valid_ PFN number to struct page *
*
--
1.8.1.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-05-29 15:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29 15:08 [PATCH, v2 0/5] clean stale VALID_PAGE() related code and comments Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 1/5] mm/ALPHA: clean up unused VALID_PAGE() Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 2/5] mm/ARM: fix stale comment about VALID_PAGE() Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 3/5] mm/CRIS: clean up unused VALID_PAGE() Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 4/5] mm/microblaze: " Jiang Liu
2013-05-29 15:08 ` [PATCH, v2 5/5] mm/unicore32: fix stale comment about VALID_PAGE() Jiang Liu
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).