]> git.baikalelectronics.ru Git - kernel.git/commit
iio: buffer-dmaengine: use %zu specifier for sprintf(align)
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 24 Mar 2020 13:46:31 +0000 (15:46 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:21 +0000 (16:56 +0100)
commitd3f31a974117297171d851819d6857cf0d46c35c
tree03c790679674b72cdd1bc4a1f4e4fbe3acf5a1ea
parent887bca8ff874595575d3198b9752107818e6f753
iio: buffer-dmaengine: use %zu specifier for sprintf(align)

The 'size_t' type behaves differently on 64-bit architectures, and causes
compiler a warning of the sort "format '%u' expects argument of type
'unsigned int', but argument 3 has type 'size_t {aka long unsigned int}'".

This change adds the correct specifier for the 'align' field.

Fixes: a7621d0dffefb ("iio: buffer-dmaengine: Report buffer length requirements")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dmaengine.c