* [iio:togreg 64/74] drivers/iio/light/cm32181.c:296:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
@ 2020-05-10 15:30 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-10 15:30 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3057 bytes --]
CC: kbuild-all(a)lists.01.org
TO: Hans de Goede <hdegoede@redhat.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
CC: Andy Shevchenko <andy.shevchenko@gmail.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
head: 0afb1a3c7fdb813c9889506ded9f2b8d634fca06
commit: 02cdab2a8d55c85967a4be4a084efa9641c56066 [64/74] iio: light: cm32181: Add support for the CM3218
:::::: branch date: 5 hours ago
:::::: commit date: 6 hours ago
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> drivers/iio/light/cm32181.c:296:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
len += sprintf(buf + len, "0.%06u ", cm32181->als_it_values[i]);
^
# https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?id=02cdab2a8d55c85967a4be4a084efa9641c56066
git remote add iio https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git
git remote update iio
git checkout 02cdab2a8d55c85967a4be4a084efa9641c56066
vim +296 drivers/iio/light/cm32181.c
971672c0b3ccd1 Kevin Tsai 2013-12-24 277
971672c0b3ccd1 Kevin Tsai 2013-12-24 278 /**
971672c0b3ccd1 Kevin Tsai 2013-12-24 279 * cm32181_get_it_available() - Get available ALS IT value
971672c0b3ccd1 Kevin Tsai 2013-12-24 280 * @dev: pointer of struct device.
971672c0b3ccd1 Kevin Tsai 2013-12-24 281 * @attr: pointer of struct device_attribute.
971672c0b3ccd1 Kevin Tsai 2013-12-24 282 * @buf: pointer of return string buffer.
971672c0b3ccd1 Kevin Tsai 2013-12-24 283 *
971672c0b3ccd1 Kevin Tsai 2013-12-24 284 * Display the available integration time values by millisecond.
971672c0b3ccd1 Kevin Tsai 2013-12-24 285 *
971672c0b3ccd1 Kevin Tsai 2013-12-24 286 * Return: string length.
971672c0b3ccd1 Kevin Tsai 2013-12-24 287 */
971672c0b3ccd1 Kevin Tsai 2013-12-24 288 static ssize_t cm32181_get_it_available(struct device *dev,
971672c0b3ccd1 Kevin Tsai 2013-12-24 289 struct device_attribute *attr, char *buf)
971672c0b3ccd1 Kevin Tsai 2013-12-24 290 {
02cdab2a8d55c8 Hans de Goede 2020-04-28 291 struct cm32181_chip *cm32181 = iio_priv(dev_to_iio_dev(dev));
971672c0b3ccd1 Kevin Tsai 2013-12-24 292 int i, n, len;
971672c0b3ccd1 Kevin Tsai 2013-12-24 293
02cdab2a8d55c8 Hans de Goede 2020-04-28 294 n = cm32181->num_als_it;
971672c0b3ccd1 Kevin Tsai 2013-12-24 295 for (i = 0, len = 0; i < n; i++)
02cdab2a8d55c8 Hans de Goede 2020-04-28 @296 len += sprintf(buf + len, "0.%06u ", cm32181->als_it_values[i]);
971672c0b3ccd1 Kevin Tsai 2013-12-24 297 return len + sprintf(buf + len, "\n");
971672c0b3ccd1 Kevin Tsai 2013-12-24 298 }
971672c0b3ccd1 Kevin Tsai 2013-12-24 299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-10 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10 15:30 [iio:togreg 64/74] drivers/iio/light/cm32181.c:296:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.