From f876bba99e08d66ea8d21072db862a346b838b4d Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 6 Oct 2008 17:13:11 +0000 Subject: [PATCH] The patch below fixes the following two checkpatch warnings: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable #290: FILE: net/core/utils.c:316: +EXPORT_SYMBOL(net_get_page_callback); WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable #291: FILE: net/core/utils.c:317: +EXPORT_SYMBOL(net_put_page_callback); This patch has been tested by verifying that the generated patch still applies without warnings to the 2.6.25.17 kernel and that the patched kernel still compiles. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@510 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- .../kernel/patches/put_page_callback-2.6.25.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iscsi-scst/kernel/patches/put_page_callback-2.6.25.patch b/iscsi-scst/kernel/patches/put_page_callback-2.6.25.patch index bde18d8d1..03e84bee6 100644 --- a/iscsi-scst/kernel/patches/put_page_callback-2.6.25.patch +++ b/iscsi-scst/kernel/patches/put_page_callback-2.6.25.patch @@ -138,17 +138,20 @@ diff -upkr linux-2.6.25/net/core/utils.c linux-2.6.25/net/core/utils.c #include #include -@@ -36,6 +37,9 @@ int net_msg_burst __read_mostly = 10; +@@ -36,6 +37,12 @@ int net_msg_burst __read_mostly = 10; int net_msg_warn __read_mostly = 1; EXPORT_SYMBOL(net_msg_warn); +net_get_page_callback_t net_get_page_callback __read_mostly; ++EXPORT_SYMBOL(net_get_page_callback); ++ +net_put_page_callback_t net_put_page_callback __read_mostly; ++EXPORT_SYMBOL(net_put_page_callback); + /* * All net warning printk()s should be guarded by this function. */ -@@ -283,6 +287,35 @@ out: +@@ -283,6 +287,32 @@ out: EXPORT_SYMBOL(in6_pton); @@ -177,9 +180,6 @@ diff -upkr linux-2.6.25/net/core/utils.c linux-2.6.25/net/core/utils.c + return res; +} +EXPORT_SYMBOL(net_set_get_put_page_callbacks); -+ -+EXPORT_SYMBOL(net_get_page_callback); -+EXPORT_SYMBOL(net_put_page_callback); + void inet_proto_csum_replace4(__sum16 *sum, struct sk_buff *skb, __be32 from, __be32 to, int pseudohdr)