diff options
Diffstat (limited to 'meta-networking/recipes-protocols/openlldp/files/0009-8021qaz-mark-prio-map-functions-static.patch')
-rw-r--r-- | meta-networking/recipes-protocols/openlldp/files/0009-8021qaz-mark-prio-map-functions-static.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/openlldp/files/0009-8021qaz-mark-prio-map-functions-static.patch b/meta-networking/recipes-protocols/openlldp/files/0009-8021qaz-mark-prio-map-functions-static.patch new file mode 100644 index 000000000..0f84426f9 --- /dev/null +++ b/meta-networking/recipes-protocols/openlldp/files/0009-8021qaz-mark-prio-map-functions-static.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 7ae79b0dff53a23fa0a964f77b9e3bb387a293c4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Aaron Conole <aconole@redhat.com> | ||
3 | Date: Tue, 4 Aug 2020 09:17:50 -0400 | ||
4 | Subject: [PATCH 9/9] 8021qaz: mark prio map functions static | ||
5 | |||
6 | Inline is not the correct way to mark a function for inclusion | ||
7 | in a single translation unit. Use 'static' to restrict export | ||
8 | of these functions. | ||
9 | |||
10 | Signed-off-by: Aaron Conole <aconole@redhat.com> | ||
11 | --- | ||
12 | lldp_8021qaz.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/lldp_8021qaz.c b/lldp_8021qaz.c | ||
16 | index 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 | -- | ||
38 | 2.28.0 | ||
39 | |||