net: mscc: ocelot: remove incompatible prototypes
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Apr 2023 20:55:25 +0000 (22:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Apr 2023 04:13:23 +0000 (21:13 -0700)
commit33d74c8ff5ced854bc0ab6f94a778464dd2b905b
tree9389e8d04670dc91b71f62ba3a188684b9a775be
parent6b2c6e4a938fece9b539c8085f21d17c5e6eb9de
net: mscc: ocelot: remove incompatible prototypes

The types for the register argument changed recently, but there are
still incompatible prototypes that got left behind, and gcc-13 warns
about these:

In file included from drivers/net/ethernet/mscc/ocelot.c:13:
drivers/net/ethernet/mscc/ocelot.h:97:5: error: conflicting types for 'ocelot_port_readl' due to enum/integer mismatch; have 'u32(struct ocelot_port *, u32)' {aka 'unsigned int(struct ocelot_port *, unsigned int)'} [-Werror=enum-int-mismatch]
   97 | u32 ocelot_port_readl(struct ocelot_port *port, u32 reg);
      |     ^~~~~~~~~~~~~~~~~

Just remove the two prototypes, and rely on the copy in the global
header.

Fixes: 9ecd05794b8d ("net: mscc: ocelot: strengthen type of "u32 reg" in I/O accessors")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20230417205531.1880657-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot.h