2011-03-18 14:40:19

by Bill Gatliff

[permalink] [raw]
Subject: [PATCH] kobject: export kobject_set_name_vargs

Applies EXPORT_SYMBOL to kobject_set_name_vargs(). As the function
itself is not marked static, it appears as though the function was
intended to be exported.

Among possibly others, the upcoming Generic PWM API code uses
kobject_set_name_vargs(). This function must be exported if users
wish to call it from kernel modules.

Signed-off-by: Bill Gatliff <[email protected]>
---
lib/kobject.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/kobject.c b/lib/kobject.c
index 82dc34c..43f5b09 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -232,6 +232,7 @@ int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
kfree(old_name);
return 0;
}
+EXPORT_SYMBOL(kobject_set_name_vargs);

/**
* kobject_set_name - Set the name of a kobject
--
1.7.2.3