diff options
Diffstat (limited to 'lib/kobject.c')
-rw-r--r-- | lib/kobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index dd0917dd9fa9..a181abed89f6 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/string.h> | 14 | #include <linux/string.h> |
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/stat.h> | 16 | #include <linux/stat.h> |
17 | #include <linux/slab.h> | ||
17 | 18 | ||
18 | /** | 19 | /** |
19 | * populate_dir - populate directory with attributes. | 20 | * populate_dir - populate directory with attributes. |
@@ -100,7 +101,7 @@ static void fill_kobj_path(struct kobject *kobj, char *path, int length) | |||
100 | * @kobj: kobject in question, with which to build the path | 101 | * @kobj: kobject in question, with which to build the path |
101 | * @gfp_mask: the allocation type used to allocate the path | 102 | * @gfp_mask: the allocation type used to allocate the path |
102 | */ | 103 | */ |
103 | char *kobject_get_path(struct kobject *kobj, int gfp_mask) | 104 | char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) |
104 | { | 105 | { |
105 | char *path; | 106 | char *path; |
106 | int len; | 107 | int len; |