projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get_user_pages: don't try to follow PFNMAP pages
[powerpc.git]
/
lib
/
kobject.c
diff --git
a/lib/kobject.c
b/lib/kobject.c
index
9404882
..
a181abe
100644
(file)
--- a/
lib/kobject.c
+++ b/
lib/kobject.c
@@
-14,6
+14,7
@@
#include <linux/string.h>
#include <linux/module.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/stat.h>
+#include <linux/slab.h>
/**
* populate_dir - populate directory with attributes.
/**
* populate_dir - populate directory with attributes.
@@
-100,7
+101,7
@@
static void fill_kobj_path(struct kobject *kobj, char *path, int length)
* @kobj: kobject in question, with which to build the path
* @gfp_mask: the allocation type used to allocate the path
*/
* @kobj: kobject in question, with which to build the path
* @gfp_mask: the allocation type used to allocate the path
*/
-char *kobject_get_path(struct kobject *kobj,
in
t gfp_mask)
+char *kobject_get_path(struct kobject *kobj,
gfp_
t gfp_mask)
{
char *path;
int len;
{
char *path;
int len;
@@
-279,7
+280,7
@@
EXPORT_SYMBOL(kobject_set_name);
* @new_name: object's new name
*/
* @new_name: object's new name
*/
-int kobject_rename(struct kobject * kobj, char *new_name)
+int kobject_rename(struct kobject * kobj, c
onst c
har *new_name)
{
int error = 0;
{
int error = 0;