Skip to content

Commit 2eb03e6

Browse files
ogerlitzdavem330
authored andcommitted
switchdev: Put export declaration in the right place
Move exporting of switchdev_port_same_parent_id to be right below it and not elsewhere. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Reported-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a2956ec commit 2eb03e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/switchdev/switchdev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,7 @@ bool switchdev_port_same_parent_id(struct net_device *a,
13061306

13071307
return netdev_phys_item_id_same(&a_attr.u.ppid, &b_attr.u.ppid);
13081308
}
1309+
EXPORT_SYMBOL_GPL(switchdev_port_same_parent_id);
13091310

13101311
static u32 switchdev_port_fwd_mark_get(struct net_device *dev,
13111312
struct net_device *group_dev)
@@ -1323,7 +1324,6 @@ static u32 switchdev_port_fwd_mark_get(struct net_device *dev,
13231324

13241325
return dev->ifindex;
13251326
}
1326-
EXPORT_SYMBOL_GPL(switchdev_port_same_parent_id);
13271327

13281328
static void switchdev_port_fwd_mark_reset(struct net_device *group_dev,
13291329
u32 old_mark, u32 *reset_mark)

0 commit comments

Comments
 (0)