From 8d04ebf5540097d46e9ab4c68b5d19eb8601cce0 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sat, 5 Nov 2016 18:08:02 +0100 Subject: [PATCH] lib/route: preserve old ABI for rtnl_link_get_pmtudisc() Yes, rtnl_link_get_pmtudisc() was not in a public header. But dropping it from ABI results in warnings of ABI checkers. Just avoid that. --- lib/route/link/ipgre.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/route/link/ipgre.c b/lib/route/link/ipgre.c index 184f37a..714590f 100644 --- a/lib/route/link/ipgre.c +++ b/lib/route/link/ipgre.c @@ -818,6 +818,13 @@ uint8_t rtnl_link_ipgre_get_pmtudisc(struct rtnl_link *link) return ipgre->pmtudisc; } +uint8_t rtnl_link_get_pmtudisc(struct rtnl_link *link) +{ + /* rtnl_link_ipgre_get_pmtudisc() was wrongly named. Keep this + * to preserve ABI. */ + return rtnl_link_ipgre_get_pmtudisc (link); +} + static void __init ipgre_init(void) { rtnl_link_register_info(&ipgre_info_ops); -- 2.50.1