Skip to content

Commit

Permalink
From 80fb9db6598440d3af6bdcbcd4f6788f7e660bbe Mon Sep 17 00:00:00 2001
Browse files Browse the repository at this point in the history
Subject: [PATCH] fix build warnings

Remove elements that are defined but never used.

Signed-off-by: Chris Leech <cleech@redhat.com>
Signed-off-by: David Ertman <david.m.ertman@intel.com>
  • Loading branch information
cleech authored and dmertman committed Apr 23, 2018
1 parent 036e314 commit 7ad7a2f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 0 additions & 6 deletions include/lldp_8021qaz.h
Expand Up @@ -218,9 +218,6 @@ int ieee8021qaz_mod_app(struct app_tlv_head *head, int peer,
u8 prio, u8 sel, u16 proto, u32 ops);
int ieee8021qaz_app_sethw(char *ifname, struct app_tlv_head *head);

inline int get_prio_map(u32 prio_map, int tc);
inline void set_prio_map(u32 *prio_map, u8 prio, int tc);

struct ieee8021qaz_tlvs *ieee8021qaz_data(const char *);

int ieee8021qaz_tlvs_rxed(const char *ifname);
Expand All @@ -234,9 +231,6 @@ int ieee8021qaz_rchange(struct port *port, struct lldp_agent *,
void ieee8021qaz_ifup(char *ifname, struct lldp_agent *);
void ieee8021qaz_ifdown(char *ifname, struct lldp_agent *);
u8 ieee8021qaz_mibDeleteObject(struct port *port, struct lldp_agent *);
inline int ieee8021qaz_clif_cmd(void *data, struct sockaddr_un *from,
socklen_t fromlen, char *ibuf, int ilen,
char *rbuf);
int ieee8021qaz_check_operstate(void);
int get_dcbx_hw(const char *ifname, __u8 *dcbx);

Expand Down
5 changes: 5 additions & 0 deletions lldp/agent.c
Expand Up @@ -36,6 +36,11 @@
#include "lldp_mand_clif.h"
#include "lldp/agent.h"

/* IEEE 802.1AB-2009 - Table 7-1: group MAC addresses used by LLDP */
const u8 nearest_bridge[ETH_ALEN] = {0x01,0x80,0xc2,0x00,0x00,0x0e};
const u8 nearest_nontpmr_bridge[ETH_ALEN] = {0x01,0x80,0xc2,0x00,0x00,0x03};
const u8 nearest_customer_bridge[ETH_ALEN] = {0x01,0x80,0xc2,0x00,0x00,0x00};

static const u8 * agent_groupmacs[AGENT_MAX] = {
nearest_bridge,
nearest_nontpmr_bridge,
Expand Down
6 changes: 3 additions & 3 deletions lldp/agent.h
Expand Up @@ -48,9 +48,9 @@ enum agent_type {
};

/* IEEE 802.1AB-2009 - Table 7-1: group MAC addresses used by LLDP */
static const u8 nearest_bridge[ETH_ALEN] = {0x01,0x80,0xc2,0x00,0x00,0x0e};
static const u8 nearest_nontpmr_bridge[ETH_ALEN] = {0x01,0x80,0xc2,0x00,0x00,0x03};
static const u8 nearest_customer_bridge[ETH_ALEN] = {0x01,0x80,0xc2,0x00,0x00,0x00};
extern const u8 nearest_bridge[ETH_ALEN];
extern const u8 nearest_nontpmr_bridge[ETH_ALEN];
extern const u8 nearest_customer_bridge[ETH_ALEN];

struct agenttimers {
/* Tx */
Expand Down
4 changes: 2 additions & 2 deletions lldp_util.c
Expand Up @@ -1197,7 +1197,7 @@ int check_link_status(const char *ifname)
int get_arg_val_list(char *ibuf, int ilen, int *ioff,
char **args, char **argvals)
{
u8 arglen;
u8 arglen = 0;
u16 argvalue_len;
int *arglens = NULL;
int *argvallens = NULL;
Expand Down Expand Up @@ -1265,7 +1265,7 @@ int get_arg_val_list(char *ibuf, int ilen, int *ioff,

int get_arg_list(char *ibuf, int ilen, int *ioff, char **args)
{
u8 arglen;
u8 arglen = 0;
int *arglens = NULL;
int *p;
int numargs;
Expand Down

0 comments on commit 7ad7a2f

Please sign in to comment.