[PATCH] kobject: export kobject_set_name_vargs

From: Bill Gatliff
Date: Fri Mar 18 2011 - 10:40:25 EST


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 <bgat@xxxxxxxxxxxxxxx>
---
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

--
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/