diff options
| author | Mathieu Malaterre <malat@debian.org> | 2018-05-05 15:57:41 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 10:59:21 -0400 |
| commit | 6a8b55d7f2265efdabf257211b662400615cf580 (patch) | |
| tree | fc3f2ff428963666a1dd357d22cc5bf1dccc6f2c /drivers/base/core.c | |
| parent | 085aa2de568493d7cde52126512d37260077811a (diff) | |
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>
Diffstat (limited to 'drivers/base/core.c')
| -rw-r--r-- | drivers/base/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index c4fc083870c2..35221144e0e6 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
| @@ -2411,7 +2411,7 @@ static void device_create_release(struct device *dev) | |||
| 2411 | kfree(dev); | 2411 | kfree(dev); |
| 2412 | } | 2412 | } |
| 2413 | 2413 | ||
| 2414 | static struct device * | 2414 | static __printf(6, 0) struct device * |
| 2415 | device_create_groups_vargs(struct class *class, struct device *parent, | 2415 | device_create_groups_vargs(struct class *class, struct device *parent, |
| 2416 | dev_t devt, void *drvdata, | 2416 | dev_t devt, void *drvdata, |
| 2417 | const struct attribute_group **groups, | 2417 | const struct attribute_group **groups, |
