linux-stable/drivers/net/ethernet/ti
Nathan Chancellor 3292004c90 net: ethernet: ti: Fix format specifier in netcp_create_interface()
After commit 3948b05950 ("net: introduce a config option to tweak
MAX_SKB_FRAGS"), clang warns:

  drivers/net/ethernet/ti/netcp_core.c:2085:4: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
                          MAX_SKB_FRAGS);
                          ^~~~~~~~~~~~~
  include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
          dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                                 ~~~     ^~~~~~~~~~~
  include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
                  _p_func(dev, fmt, ##__VA_ARGS__);                       \
                               ~~~    ^~~~~~~~~~~
  include/linux/skbuff.h:352:23: note: expanded from macro 'MAX_SKB_FRAGS'
  #define MAX_SKB_FRAGS CONFIG_MAX_SKB_FRAGS
                        ^~~~~~~~~~~~~~~~~~~~
  ./include/generated/autoconf.h:11789:30: note: expanded from macro 'CONFIG_MAX_SKB_FRAGS'
  #define CONFIG_MAX_SKB_FRAGS 17
                               ^~
  1 warning generated.

Follow the pattern of the rest of the tree by changing the specifier to
'%u' and casting MAX_SKB_FRAGS explicitly to 'unsigned int', which
eliminates the warning.

Fixes: 3948b05950 ("net: introduce a config option to tweak MAX_SKB_FRAGS")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20230329-net-ethernet-ti-wformat-v1-1-83d0f799b553@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-03-30 23:21:04 -07:00
..
Kconfig net: ethernet: ti: davinci_mdio: fix build for mdio bitbang uses 2022-08-24 18:44:24 -07:00
Makefile
am65-cpsw-ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
am65-cpsw-nuss.c net: ethernet: ti: am65-cpsw: enable p0 host port rx_vlan_remap 2023-03-28 15:29:50 +02:00
am65-cpsw-nuss.h net: ethernet: ti: am65-cpsw: add .ndo to set dma per-queue rate 2023-03-28 15:29:22 +02:00
am65-cpsw-qos.c net: ethernet: ti: am65-cpsw: add .ndo to set dma per-queue rate 2023-03-28 15:29:22 +02:00
am65-cpsw-qos.h net: ethernet: ti: am65-cpsw: add .ndo to set dma per-queue rate 2023-03-28 15:29:22 +02:00
am65-cpsw-switchdev.c
am65-cpsw-switchdev.h
am65-cpts.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-24 10:10:20 -07:00
am65-cpts.h net: ethernet: ti: am65-cpsw/cpts: Fix CPTS release action 2023-01-24 10:08:50 +01:00
cpmac.c net: cpmac: Add __init/__exit annotations to module init/exit funcs 2022-09-29 13:39:58 +02:00
cpsw-common.c
cpsw-phy-sel.c net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
cpsw.c drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
cpsw.h
cpsw_ale.c net: ethernet: ti: cpsw_ale: Add cpsw_ale_restore() helper 2022-11-07 12:20:03 +00:00
cpsw_ale.h net: ethernet: ti: cpsw_ale: Add cpsw_ale_restore() helper 2022-11-07 12:20:03 +00:00
cpsw_ethtool.c drivers: ethernet: cpsw: fix panic when interrupt coaleceing is set via ethtool 2022-03-23 10:46:42 -07:00
cpsw_new.c drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
cpsw_priv.c net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
cpsw_priv.h eth: cpsw: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
cpsw_sl.c
cpsw_sl.h
cpsw_switchdev.c
cpsw_switchdev.h
cpts.c ptp: cpts: convert .adjfreq to .adjfine 2022-11-11 10:58:39 +00:00
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
davinci_mdio.c net: mdio: mdio-bitbang: Separate C22 and C45 transactions 2023-01-10 15:53:36 -08:00
k3-cppi-desc-pool.c
k3-cppi-desc-pool.h
netcp.h
netcp_core.c net: ethernet: ti: Fix format specifier in netcp_create_interface() 2023-03-30 23:21:04 -07:00
netcp_ethss.c net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
netcp_sgmii.c
netcp_xgbepcsr.c
tlan.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
tlan.h