iio: Add __printf() attributes to various allocation functions
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Sep 2020 13:21:14 +0000 (14:21 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Sep 2020 17:54:18 +0000 (18:54 +0100)
commitcd7798cbd28044a3026619e36993160ba8fa118d
tree9bd5718347cad942705af670292d64310c34ade2
parentc9561fd21a06f854d3df6db7dd83b38e91ed6e93
iio: Add __printf() attributes to various allocation functions

A partial set of these was added to IIO a long time back.
This fills in some gaps in coverage highlighted by building
with W=1

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200913132115.800131-3-jic23@kernel.org
drivers/iio/industrialio-trigger.c
include/linux/iio/iio.h
include/linux/iio/trigger_consumer.h