From: Christian Marangi Date: Thu, 9 Nov 2023 16:19:48 +0000 (+0100) Subject: system-linux: make system_if_get_master_ifindex static X-Git-Url: http://git.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=5c9ecc1ff74fa676454baae21132c50b806214d4 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 --- 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);