IA64: put kdump_find_rsvd_region in __init
PATCH 1/3 IA64: put kdump_find_rsvd_region in __init
kdump_find_rsvd_region() is only called by reserve_memory() which is in __init, so it seems that kdump_find_rsvd_region() should also be in there.
Index: linux-2.6/arch/ia64/kernel/efi.c
=================================--- linux-2.6.orig/arch/ia64/kernel/efi.c 2007-03-06 16:30:10.000000000 +0900
+++ linux-2.6/arch/ia64/kernel/efi.c 2007-03-06 16:30:13.000000000 +0900
@@ -1136,7 +1136,7 @@
/* find a block of memory aligned to 64M exclude reserved regions
rsvd_regions are sorted
*/
-unsigned long
+unsigned long __init
kdump_find_rsvd_region (unsigned long size,
struct rsvd_region *r, int n)
{
--
Signature · 3 lines
Horms H: http://www.vergenet.net/~horms/ W: http://www.valinux.co.jp/en/
Quoted 19 lines
-----Original Message-----
From: Horms [mailto:[email protected]]
Sent: 2007Äê3ÔÂ6ÈÕ 15:29
To: Linux-IA64; [email protected]
Cc: Luck, Tony; Zou, Nanhai; Magnus Damm
Subject: [patch 1/3] IA64: putkdump_find_rsvd_regionin__init
kdump_find_rsvd_region()is only called byreserve_memory()which is in__init, so it seems thatkdump_find_rsvd_region()should also be in there.Signed-off-by Simon Horman <[email protected]>Index:
linux-2.6/arch/ia64/kernel/efi.c
=================================> ---linux-2.6.orig/arch/ia64/kernel/efi.c2007-03-06 16:30:10.000000000
+0900
+++linux-2.6/arch/ia64/kernel/efi.c2007-03-06 16:30:13.000000000 +0900
Review
Quoted 10 lines
(quoted diff) +1
-2@@ -1136,7 +1136,7 @@ /* find a block of memory aligned to 64M exclude reserved regions rsvd_regions are sorted */ -unsigned long +unsigned long __init kdump_find_rsvd_region (unsigned long size, struct rsvd_region *r, int n) { --
This patch looks good to me.
Zou Nan hai
Quoted 4 lines
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
Quoted 27 lines · Nanhai
Quoted 27 lines
-----Original Message-----
From: Horms [mailto:[email protected]]
Sent: 2007年3月6日 15:29
To: Linux-IA64; [email protected]
Cc: Luck, Tony; Zou, Nanhai; Magnus Damm
Subject: [patch 1/3] IA64: putkdump_find_rsvd_regionin__init
kdump_find_rsvd_region()is only called byreserve_memory()which is in__init, so it seems thatkdump_find_rsvd_region()should also be in there.Signed-off-by Simon Horman <[email protected]>Index:
linux-2.6/arch/ia64/kernel/efi.c
=================================> > ---linux-2.6.orig/arch/ia64/kernel/efi.c2007-03-06 16:30:10.000000000
+0900
+++linux-2.6/arch/ia64/kernel/efi.c2007-03-06 16:30:13.000000000 +0900(quoted diff) +1
-1@@ -1136,7 +1136,7 @@ /* find a block of memory aligned to 64M exclude reserved regions rsvd_regions are sorted */ -unsigned long +unsigned long __init kdump_find_rsvd_region (unsigned long size, struct rsvd_region *r, int n) {
Quoted 3 lines
Quoted 2 lines
--
This patch looks good to me.
Thanks, it it ok if I repost the patch with Acked-by: you ?
Signature · 3 lines
Horms H: http://www.vergenet.net/~horms/ W: http://www.valinux.co.jp/en/