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: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mathieu Malaterre 2019-01-23 20:42:00 +01:00 committed by Greg Kroah-Hartman
parent 095ff29d2b
commit fa548d79d8
1 changed files with 1 additions and 0 deletions

View File

@ -409,6 +409,7 @@ static void device_create_release(struct device *dev)
kfree(dev);
}
__printf(4, 0)
static struct device *
__cpu_device_create(struct device *parent, void *drvdata,
const struct attribute_group **groups,