Commit fa548d79 authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Greg Kroah-Hartman

drivers: base: Use __printf markup to silence compiler

Silence warnings (triggered at W=1) by adding relevant __printf
attributes.

  drivers/base/cpu.c:432:2: warning: function '__cpu_device_create' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 095ff29d
...@@ -409,6 +409,7 @@ static void device_create_release(struct device *dev) ...@@ -409,6 +409,7 @@ static void device_create_release(struct device *dev)
kfree(dev); kfree(dev);
} }
__printf(4, 0)
static struct device * static struct device *
__cpu_device_create(struct device *parent, void *drvdata, __cpu_device_create(struct device *parent, void *drvdata,
const struct attribute_group **groups, const struct attribute_group **groups,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment