Skip to contentSkip to conversation

switchdev: Complete removal of switchdev_port_attr_get()

PATCH Applied Florian Fainelli 2 participants 2 messages Feb 25, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 switchdev: Complete removal of switchdev_port_attr_get()

We have no more in tree users of switchdev_port_attr_get() after d0e698d57a94 ("Merge branch 'net-Get-rid-of-switchdev_port_attr_get'") so completely remove the function signature and body.

---
 include/net/switchdev.h   |  4 ----
 net/switchdev/switchdev.c | 42 ---------------------------------------
 2 files changed, 46 deletions(-)
include/net/switchdev.h +0 -4
index 45310ddf2d7e..be4b13e66668 100644
@@ -115,13 +115,9 @@ typedef int switchdev_obj_dump_cb_t(struct switchdev_obj *obj);
 /**
  * struct switchdev_ops - switchdev operations
  *
- * @switchdev_port_attr_get: Get a port attribute (see switchdev_attr).
- *
  * @switchdev_port_attr_set: Set a port attribute (see switchdev_attr).
  */
 struct switchdev_ops {
-	int	(*switchdev_port_attr_get)(struct net_device *dev,
-					   struct switchdev_attr *attr);
 	int	(*switchdev_port_attr_set)(struct net_device *dev,
 					   const struct switchdev_attr *attr,
 					   struct switchdev_trans *trans);
net/switchdev/switchdev.c +0 -42

48 lines not on this page · raw message

Signature · 1 line
2.19.1
maintainer Applied
#1 lore raw

From: Florian Fainelli <[email protected]>
Date: Sun, 24 Feb 2019 18:39:02 -0800

Quoted 5 lines

We have no more in tree users of switchdev_port_attr_get() after d0e698d57a94 ("Merge branch 'net-Get-rid-of-switchdev_port_attr_get'") so completely remove the function signature and body.

Applied, thanks.