X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=lib%2Fkobject.c;h=a181abed89f6f119687e5082208f8debe11dd383;hb=2be7a906752abf8dce9350c23b6d1036049a5d3e;hp=94048826624ccd230cd213ce8c14ddea0d6ab191;hpb=325a479c4c110db278ef3361460a48c4093252cc;p=karo-tx-linux.git diff --git a/lib/kobject.c b/lib/kobject.c index 94048826624c..a181abed89f6 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -14,6 +14,7 @@ #include #include #include +#include /** * 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 */ -char *kobject_get_path(struct kobject *kobj, int gfp_mask) +char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) { char *path; int len; @@ -279,7 +280,7 @@ EXPORT_SYMBOL(kobject_set_name); * @new_name: object's new name */ -int kobject_rename(struct kobject * kobj, char *new_name) +int kobject_rename(struct kobject * kobj, const char *new_name) { int error = 0;