From b69f29e1a6a354b0f2494cb42be88b78bca4f0d2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 1 Jan 2011 13:51:52 +0100 Subject: [PATCH] --- yaml --- r: 235456 b: refs/heads/master c: 9b99b7f84ea520d2ecaf816bde247a1ad07e454e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/kobject.h | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index bdca31f3c4d3..dd7c4c3d1a77 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d3f70befd9a6ab79413f303109e2c701472e2785 +refs/heads/master: 9b99b7f84ea520d2ecaf816bde247a1ad07e454e diff --git a/trunk/include/linux/kobject.h b/trunk/include/linux/kobject.h index 8f6d12151048..15e82c132f78 100644 --- a/trunk/include/linux/kobject.h +++ b/trunk/include/linux/kobject.h @@ -85,11 +85,13 @@ static inline const char *kobject_name(const struct kobject *kobj) extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype); extern int __must_check kobject_add(struct kobject *kobj, struct kobject *parent, - const char *fmt, ...); + const char *fmt, ...) + __attribute__((format(printf, 3, 4))); extern int __must_check kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, struct kobject *parent, - const char *fmt, ...); + const char *fmt, ...) + __attribute__((format(printf, 4, 5))); extern void kobject_del(struct kobject *kobj); @@ -226,6 +228,7 @@ static inline int kobject_uevent_env(struct kobject *kobj, static inline int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...) + __attribute__((format(printf, 2, 3))) { return 0; } static inline int kobject_action_type(const char *buf, size_t count,