summaryrefslogtreecommitdiffstats
path: root/drivers/base/cpu.c
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2019-01-23 20:42:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-31 19:28:40 +0100
commitfa548d79d87fd1ad2a2c4e26f829984a106c6ca5 (patch)
tree60cbaa571446d92bd7beb1c47b9c9c4c2114011b /drivers/base/cpu.c
parent095ff29d2b882847f608cf7192361dedc22c0623 (diff)
downloadlinux-fa548d79d87fd1ad2a2c4e26f829984a106c6ca5.tar.bz2
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>
Diffstat (limited to 'drivers/base/cpu.c')
-rw-r--r--drivers/base/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index eb9443d5bae1..de74d7d93558 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -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,