bianbu-linux-6.6/drivers/net/ethernet/amd/xgbe
Arnd Bergmann bbe6418663 amd-xgbe: fix mismatched prototype
The forward declaration was introduced with a prototype that does
not match the function definition:

drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c:2166:13: error: conflicting types for 'xgbe_phy_perform_ratechange' due to enum/integer mismatch; have 'void(struct xgbe_prv_data *, enum xgbe_mb_cmd,  enum xgbe_mb_subcmd)' [-Werror=enum-int-mismatch]
 2166 | static void xgbe_phy_perform_ratechange(struct xgbe_prv_data *pdata,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c:391:13: note: previous declaration of 'xgbe_phy_perform_ratechange' with type 'void(struct xgbe_prv_data *, unsigned int,  unsigned int)'
  391 | static void xgbe_phy_perform_ratechange(struct xgbe_prv_data *pdata,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Ideally there should not be any forward declarations here, which
would make it easier to show that there is no unbounded recursion.
I tried fixing this but could not figure out how to avoid the
recursive call.

As a hotfix, address only the broken prototype to fix the build
problem instead.

Fixes: 4f3b20bfbb ("amd-xgbe: add support for rx-adaptation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20230203121553.2871598-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-02-06 22:33:18 -08:00
..
Makefile
xgbe-common.h amd-xgbe: add support for rx-adaptation 2023-02-02 15:17:19 +01:00
xgbe-dcb.c amd-xgbe: fix clang -Wformat warnings 2022-07-11 19:53:51 -07:00
xgbe-debugfs.c xgbe: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
xgbe-desc.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
xgbe-dev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-01-20 12:28:23 -08:00
xgbe-drv.c net: amd-xgbe: add missed tasklet_kill 2022-12-30 07:33:05 +00:00
xgbe-ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xgbe-i2c.c net: amd-xgbe: add missed tasklet_kill 2022-12-30 07:33:05 +00:00
xgbe-main.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
xgbe-mdio.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-01-20 12:28:23 -08:00
xgbe-pci.c amd-xgbe: Yellow carp devices do not need rrc 2022-10-21 22:40:21 -07:00
xgbe-phy-v1.c
xgbe-phy-v2.c amd-xgbe: fix mismatched prototype 2023-02-06 22:33:18 -08:00
xgbe-platform.c amd-xgbe: Use platform_irq_count() 2022-06-13 23:12:39 -07:00
xgbe-ptp.c ptp: xgbe: convert to .adjfine and adjust_by_scaled_ppm 2022-10-31 11:14:16 +00:00
xgbe.h amd-xgbe: add support for rx-adaptation 2023-02-02 15:17:19 +01:00