X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fkobject.c;h=a181abed89f6f119687e5082208f8debe11dd383;hb=1ff8038988adecfde71d82c0597727fc239d4e8c;hp=94048826624ccd230cd213ce8c14ddea0d6ab191;hpb=67be2dd1bace0ec7ce2dbc1bba3f8df3d7be597e;p=powerpc.git diff --git a/lib/kobject.c b/lib/kobject.c index 9404882662..a181abed89 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;