From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH iproute2 04/22] lib/ll_map: make local function static Date: Thu, 15 Nov 2018 14:36:22 -0800 Message-ID: <20181115223640.411-5-stephen@networkplumber.org> References: <20181115223640.411-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: netdev@vger.kernel.org Return-path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:45501 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727244AbeKPIqb (ORCPT ); Fri, 16 Nov 2018 03:46:31 -0500 Received: by mail-pg1-f196.google.com with SMTP id y4so9641438pgc.12 for ; Thu, 15 Nov 2018 14:36:47 -0800 (PST) In-Reply-To: <20181115223640.411-1-stephen@networkplumber.org> Sender: netdev-owner@vger.kernel.org List-ID: ll_idx_a2n is only used in ll_map. Signed-off-by: Stephen Hemminger --- include/ll_map.h | 1 - lib/ll_map.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ll_map.h b/include/ll_map.h index fb708191c22c..511fe00b8567 100644 --- a/include/ll_map.h +++ b/include/ll_map.h @@ -12,6 +12,5 @@ int ll_index_to_flags(unsigned idx); unsigned namehash(const char *str); const char *ll_idx_n2a(unsigned int idx); -unsigned int ll_idx_a2n(const char *name); #endif /* __LL_MAP_H__ */ diff --git a/lib/ll_map.c b/lib/ll_map.c index 1b4095a7d873..1ab8ef0758ac 100644 --- a/lib/ll_map.c +++ b/lib/ll_map.c @@ -143,7 +143,7 @@ const char *ll_idx_n2a(unsigned int idx) return buf; } -unsigned int ll_idx_a2n(const char *name) +static unsigned int ll_idx_a2n(const char *name) { unsigned int idx; -- 2.17.1