[PATCH] swsusp section usage

From: Randy.Dunlap
Date: Sun Mar 07 2004 - 23:16:19 EST


Hi Pavel,

This patch fixes init section usage in swsusp.c:
"read_suspend_image()" can be __init.

Patch is to 2.6.4-rc2. Please apply.

--
~Randy



diffstat:=
kernel/power/swsusp.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)


diff -Naurp ./kernel/power/swsusp.c~swsusp_init ./kernel/power/swsusp.c
--- ./kernel/power/swsusp.c~swsusp_init 2004-03-06 20:57:10.000000000 -0800
+++ ./kernel/power/swsusp.c 2004-03-07 14:10:16.000000000 -0800
@@ -986,7 +986,7 @@ static int __init __read_suspend_image(s
return 0;
}

-static int read_suspend_image(const char * specialfile, int noresume)
+static int __init read_suspend_image(const char * specialfile, int noresume)
{
union diskpage *cur;
unsigned long scratch_page = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/