diff options
| author | Arnd Bergmann <[email protected]> | 2021-03-22 11:55:55 +0000 |
|---|---|---|
| committer | Enric Balletbo i Serra <[email protected]> | 2021-03-30 16:28:50 +0000 |
| commit | c6e939c63c80c26460b25cf1150ebe8396e8adcf (patch) | |
| tree | d196450fc73005ccbdf73002b5ecd16475c36cbf /tools/perf/scripts/python/netdev-times.py | |
| parent | platform/chrome: cros_ec_typec: Check for device within remove function (diff) | |
| download | kernel-c6e939c63c80c26460b25cf1150ebe8396e8adcf.tar.gz kernel-c6e939c63c80c26460b25cf1150ebe8396e8adcf.zip | |
platform/chrome: cros_ec_typec: fix clang -Wformat warning
Clang warns about using the %h format modifier to truncate an
integer:
drivers/platform/chrome/cros_ec_typec.c:1031:3: error: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Werror,-Wformat]
typec->pd_ctrl_ver);
^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:131:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
Use an explicit bit mask to limit the number to its lower eight bits
instead.
Fixes: ad7c0510c99e ("platform/chrome: cros_ec_typec: Update port info from EC")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Enric Balletbo i Serra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
