Skip to content

Commit

Permalink
8021qaz: mark prio map functions static
Browse files Browse the repository at this point in the history
Inline is not the correct way to mark a function for inclusion
in a single translation unit.  Use 'static' to restrict export
of these functions.

Signed-off-by: Aaron Conole <aconole@redhat.com>
  • Loading branch information
apconole committed Aug 4, 2020
1 parent 61291de commit 7ae79b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldp_8021qaz.c
Expand Up @@ -397,15 +397,15 @@ static int read_cfg_file(char *ifname, struct lldp_agent *agent,
return 0;
}

inline int get_prio_map(u32 prio_map, int prio)
static int get_prio_map(u32 prio_map, int prio)
{
if (prio > 7)
return 0;

return (prio_map >> (4 * (7-prio))) & 0xF;
}

inline void set_prio_map(u32 *prio_map, u8 prio, int tc)
static void set_prio_map(u32 *prio_map, u8 prio, int tc)
{
u32 mask = ~(0xffffffff & (0xF << (4 * (7-prio))));
*prio_map &= mask;
Expand Down

0 comments on commit 7ae79b0

Please sign in to comment.