2007-11-30 17:45:42

by Robert P. J. Day

[permalink] [raw]
Subject: [NFS] [PATCH] NFS: Identify root_nfs_parse_addr() as truly __init.


Signed-off-by: Robert P. J. Day <rpjday-L09J2beyid0N/[email protected]>

---

unless there's a reason not to, might as well tag that function as
truly __init to match its definition.

not compile tested.

diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 2d15d4a..f42fe64 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -298,7 +298,7 @@ extern struct nfs_open_context *nfs_find_open_context(struct inode *inode, struc
extern u64 nfs_compat_user_ino64(u64 fileid);

/* linux/net/ipv4/ipconfig.c: trims ip addr off front of name, too. */
-extern __be32 root_nfs_parse_addr(char *name); /*__init*/
+extern __be32 root_nfs_parse_addr(char *name) __init;

static inline void nfs_fattr_init(struct nfs_fattr *fattr)
{
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued.
Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs