]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: microchip: Remove unused declarations
authorYue Haibing <yuehaibing@huawei.com>
Mon, 21 Aug 2023 13:55:56 +0000 (21:55 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Aug 2023 17:31:47 +0000 (10:31 -0700)
Commit 264a9c5c9dff ("net: sparx5: Remove unused GLAG handling in PGID")
removed sparx5_pgid_alloc_glag() but not its declaration.
Commit 27d293cceee5 ("net: microchip: sparx5: Add support for rule count by cookie")
removed vcap_rule_iter() but not its declaration.
Commit 8beef08f4618 ("net: microchip: sparx5: Adding initial VCAP API support")
declared but never implemented vcap_api_set_client().

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230821135556.43224-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/vcap/vcap_api.h
drivers/net/ethernet/microchip/vcap/vcap_api_client.h

index 89a9a7afa32c76ba0f49925acf444f75551b855f..6f565c0c0c3dcd3d3889abb1bf8eac72899037fc 100644 (file)
@@ -414,7 +414,6 @@ enum sparx5_pgid_type {
 };
 
 void sparx5_pgid_init(struct sparx5 *spx5);
-int sparx5_pgid_alloc_glag(struct sparx5 *spx5, u16 *idx);
 int sparx5_pgid_alloc_mcast(struct sparx5 *spx5, u16 *idx);
 int sparx5_pgid_free(struct sparx5 *spx5, u16 idx);
 
index 62db270f65af244efd40d548ce445fb8267f2aa3..9eccfa633c1afbeb0822eddc515e4000bb5f926f 100644 (file)
@@ -277,7 +277,4 @@ struct vcap_control {
        struct list_head list; /* list of vcap instances */
 };
 
-/* Set client control interface on the API */
-int vcap_api_set_client(struct vcap_control *vctrl);
-
 #endif /* __VCAP_API__ */
index d9d1f7c9d762c803359da15e27373aa2d87b1803..88641508f885ed5a8ee4e8bca2f843675e7c7e6f 100644 (file)
@@ -226,9 +226,6 @@ int vcap_chain_offset(struct vcap_control *vctrl, int from_cid, int to_cid);
 bool vcap_is_next_lookup(struct vcap_control *vctrl, int cur_cid, int next_cid);
 /* Is this chain id the last lookup of all VCAPs */
 bool vcap_is_last_chain(struct vcap_control *vctrl, int cid, bool ingress);
-/* Provide all rules via a callback interface */
-int vcap_rule_iter(struct vcap_control *vctrl,
-                  int (*callback)(void *, struct vcap_rule *), void *arg);
 /* Match a list of keys against the keysets available in a vcap type */
 bool vcap_rule_find_keysets(struct vcap_rule *rule,
                            struct vcap_keyset_list *matches);