From 5c9ecc1ff74fa676454baae21132c50b806214d4 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 9 Nov 2023 17:19:48 +0100 Subject: [PATCH] system-linux: make system_if_get_master_ifindex static Make system_if_get_master_ifindex static as it was wrongly exposed and is only used in system-linux.c. Signed-off-by: Christian Marangi --- system-linux.c | 2 +- system.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/system-linux.c b/system-linux.c index 515e1b3..00530f2 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1796,7 +1796,7 @@ static int cb_if_get_master_error(struct sockaddr_nl *nla, struct nlmsgerr *err, return NL_STOP; } -int system_if_get_master_ifindex(struct device *dev) +static int system_if_get_master_ifindex(struct device *dev) { struct nl_cb *cb = nl_cb_alloc(NL_CB_DEFAULT); struct nl_msg *msg; diff --git a/system.h b/system.h index e9661f2..890966b 100644 --- a/system.h +++ b/system.h @@ -275,7 +275,6 @@ int system_if_resolve(struct device *dev); int system_if_dump_info(struct device *dev, struct blob_buf *b); int system_if_dump_stats(struct device *dev, struct blob_buf *b); struct device *system_if_get_parent(struct device *dev); -int system_if_get_master_ifindex(struct device *dev); bool system_if_force_external(const char *ifname); void system_if_apply_settings(struct device *dev, struct device_settings *s, uint64_t apply_mask); -- 2.30.2