Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: mscc: ocelot: Remove unused declarations

Commit 6c30384eb1de ("net: mscc: ocelot: register devlink ports")
declared but never implemented ocelot_devlink_init() and
ocelot_devlink_teardown().
Commit 2096805497e2 ("net: mscc: ocelot: automatically detect VCAP constants")
declared but never implemented ocelot_detect_vcap_constants().
Commit 403ffc2c34de ("net: mscc: ocelot: add support for preemptible traffic classes")
declared but never implemented ocelot_port_update_preemptible_tcs().

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20230821130218.19096-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Yue Haibing and committed by
Jakub Kicinski
49e62a04 73582f09

-4
-2
drivers/net/ethernet/mscc/ocelot.h
··· 97 97 int ocelot_probe_port(struct ocelot *ocelot, int port, struct regmap *target, 98 98 struct device_node *portnp); 99 99 void ocelot_release_port(struct ocelot_port *ocelot_port); 100 - int ocelot_devlink_init(struct ocelot *ocelot); 101 - void ocelot_devlink_teardown(struct ocelot *ocelot); 102 100 int ocelot_port_devlink_init(struct ocelot *ocelot, int port, 103 101 enum devlink_port_flavour flavour); 104 102 void ocelot_port_devlink_teardown(struct ocelot *ocelot, int port);
-1
drivers/net/ethernet/mscc/ocelot_vcap.h
··· 15 15 int ocelot_vcap_filter_stats_update(struct ocelot *ocelot, 16 16 struct ocelot_vcap_filter *rule); 17 17 18 - void ocelot_detect_vcap_constants(struct ocelot *ocelot); 19 18 int ocelot_vcap_init(struct ocelot *ocelot); 20 19 21 20 int ocelot_setup_tc_cls_flower(struct ocelot_port_private *priv,
-1
include/soc/mscc/ocelot.h
··· 1165 1165 struct ethtool_mm_state *state); 1166 1166 int ocelot_port_mqprio(struct ocelot *ocelot, int port, 1167 1167 struct tc_mqprio_qopt_offload *mqprio); 1168 - void ocelot_port_update_preemptible_tcs(struct ocelot *ocelot, int port); 1169 1168 1170 1169 #if IS_ENABLED(CONFIG_BRIDGE_MRP) 1171 1170 int ocelot_mrp_add(struct ocelot *ocelot, int port,