blob: 0f84426f9bde4f722c2b621b4e4214ed82fc6647 [file] [log] [blame]
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05001From 7ae79b0dff53a23fa0a964f77b9e3bb387a293c4 Mon Sep 17 00:00:00 2001
2From: Aaron Conole <aconole@redhat.com>
3Date: Tue, 4 Aug 2020 09:17:50 -0400
4Subject: [PATCH 9/9] 8021qaz: mark prio map functions static
5
6Inline is not the correct way to mark a function for inclusion
7in a single translation unit. Use 'static' to restrict export
8of these functions.
9
10Signed-off-by: Aaron Conole <aconole@redhat.com>
11---
12 lldp_8021qaz.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/lldp_8021qaz.c b/lldp_8021qaz.c
16index 673d758..16ae167 100644
17--- a/lldp_8021qaz.c
18+++ b/lldp_8021qaz.c
19@@ -397,7 +397,7 @@ static int read_cfg_file(char *ifname, struct lldp_agent *agent,
20 return 0;
21 }
22
23-inline int get_prio_map(u32 prio_map, int prio)
24+static int get_prio_map(u32 prio_map, int prio)
25 {
26 if (prio > 7)
27 return 0;
28@@ -405,7 +405,7 @@ inline int get_prio_map(u32 prio_map, int prio)
29 return (prio_map >> (4 * (7-prio))) & 0xF;
30 }
31
32-inline void set_prio_map(u32 *prio_map, u8 prio, int tc)
33+static void set_prio_map(u32 *prio_map, u8 prio, int tc)
34 {
35 u32 mask = ~(0xffffffff & (0xF << (4 * (7-prio))));
36 *prio_map &= mask;
37--
382.28.0
39