mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-02 14:47:09 +00:00
clang doesn't like printing a 32-bit integer using %hX format string:
drivers/hid/i2c-hid/i2c-hid-core.c:994:18: error: format specifies type 'unsigned short' but the argument has type '__u32' (aka 'unsigned int') [-Werror,-Wformat]
client->name, hid->vendor, hid->product);
^~~~~~~~~~~
drivers/hid/i2c-hid/i2c-hid-core.c:994:31: error: format specifies type 'unsigned short' but the argument has type '__u32' (aka 'unsigned int') [-Werror,-Wformat]
client->name, hid->vendor, hid->product);
^~~~~~~~~~~~
Use an explicit cast to truncate it to the low 16 bits instead.
Fixes:
|
||
|---|---|---|
| .. | ||
| i2c-hid-acpi.c | ||
| i2c-hid-core.c | ||
| i2c-hid-dmi-quirks.c | ||
| i2c-hid-of-goodix.c | ||
| i2c-hid-of.c | ||
| i2c-hid.h | ||
| Kconfig | ||
| Makefile | ||