mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
driver core: add __printf verification to device_create_groups_vargs
__printf is useful to verify format and arguments. Remove the following warning (with W=1): drivers/base/core.c:2435:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
085aa2de56
commit
6a8b55d7f2
@ -2411,7 +2411,7 @@ static void device_create_release(struct device *dev)
|
||||
kfree(dev);
|
||||
}
|
||||
|
||||
static struct device *
|
||||
static __printf(6, 0) struct device *
|
||||
device_create_groups_vargs(struct class *class, struct device *parent,
|
||||
dev_t devt, void *drvdata,
|
||||
const struct attribute_group **groups,
|
||||
|
Loading…
Reference in New Issue
Block a user