Re: [PATCH 1/1] iio: industrialio-trigger: Use 'gnu_printf' format notation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/2/20 12:17 PM, Lee Jones wrote:
Fixes the following W=1 kernel build warning(s):

  drivers/iio/industrialio-trigger.c: In function ‘iio_alloc_pollfunc’:
  drivers/iio/industrialio-trigger.c:338:2: warning: function ‘iio_alloc_pollfunc’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]

Jonathan already sent a similar patch. See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cd7798cbd28044a3026619e36993160ba8fa118d <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cd7798cbd28044a3026619e36993160ba8fa118d>


Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
  drivers/iio/industrialio-trigger.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c
index 583bb51f65a75..1d65c83439d84 100644
--- a/drivers/iio/industrialio-trigger.c
+++ b/drivers/iio/industrialio-trigger.c
@@ -320,6 +320,7 @@ irqreturn_t iio_pollfunc_store_time(int irq, void *p)
  }
  EXPORT_SYMBOL(iio_pollfunc_store_time);
+__printf(5, 6)
  struct iio_poll_func
  *iio_alloc_pollfunc(irqreturn_t (*h)(int irq, void *p),
  		    irqreturn_t (*thread)(int irq, void *p),





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux