[PATCH 2/2] init, mount: export the name_to_dev_t symbol

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Will Drewry
Date: Tuesday, May 25, 2010 - 8:46 am

This change only adds EXPORT_SYMBOL() for name_to_dev_t.

name_to_dev_t is in use outside of init/ but is not 'officially'
exported.  It provides behavior that is useful for any code that may be
need to lookup a block device by major:minor or registered kernel name,
especially before there is a root filesystem.

Hopefully, this is the appropriate use of EXPORT_SYMBOL().  This
specific function seems to be a stable interface and is available
in include/linux/mount.h.

Signed-off-by: Will Drewry <wad@chromium.org>
---
 init/do_mounts.c      |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/init/do_mounts.c b/init/do_mounts.c
index a322b13..b9206e7 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -144,6 +144,7 @@ fail:
 done:
 	return res;
 }
+EXPORT_SYMBOL(name_to_dev_t);
 
 static int __init root_dev_setup(char *line)
 {
-- 
1.7.0.4

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] init, mount: export the name_to_dev_t symbol, Will Drewry, (Tue May 25, 8:46 am)
Re: [PATCH 2/2] init, mount: export the name_to_dev_t symbol, Christoph Hellwig, (Tue May 25, 8:55 am)
Re: [PATCH 2/2] init, mount: export the name_to_dev_t symbol, Alasdair G Kergon, (Tue May 25, 9:05 am)
Re: [PATCH 2/2] init, mount: export the name_to_dev_t symbol, Christoph Hellwig, (Tue May 25, 10:21 am)