diff options
| author | Bill Wendling <[email protected]> | 2022-03-16 14:31:14 -0700 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-03-17 16:34:12 -0700 |
| commit | c011072c90353814a9d8e2b3cd111e77ae8601ed (patch) | |
| tree | e8af1d7795f45d2cc1bb71b0880ed960d83cb4b7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | d65aea8e829815e3d2bd677d7bfdd842bcd3853b (diff) | |
net/fsl: xgmac_mdio: use correct format characters
When compiling with -Wformat, clang emits the following warning:
drivers/net/ethernet/freescale/xgmac_mdio.c:243:22: warning: format
specifies type 'unsigned char' but the argument has type 'int'
[-Wformat]
phy_id, dev_addr, regnum);
^~~~~~
./include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
./include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
_dev_printk(level, dev, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
The types of these arguments are unconditionally defined, so this patch
updates the format character to the correct ones for ints and unsigned
ints.
Link: https://github.com/ClangBuiltLinux/linux/issues/378
Signed-off-by: Bill Wendling <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions