helper: list: rename macro clashing with sys/queue.h
The macro named LIST_HEAD() clashed with a macro of same name in the GNU libc file sys/queue.h. This causes a warning in MacOS build due to some other system file including sys/queue.h. Rename LIST_HEAD() as OOCD_LIST_HEAD(). Checkpatch-ignore: MACRO_ARG_REUSE Change-Id: Ic653edec77425a58251d64f56c9f5f6c645ba0cd Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reported-by: Andrew Shelley <ashelley@btinternet.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8683 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-by: Andy <andrewjohnshelley@gmail.com>
This commit is contained in:
parent
0ed03df6e9
commit
26f2df80c3
|
@ -12,7 +12,7 @@
|
|||
#include <assert.h>
|
||||
#include <helper/list.h>
|
||||
|
||||
static LIST_HEAD(threads);
|
||||
static OOCD_LIST_HEAD(threads);
|
||||
|
||||
struct thread {
|
||||
int id;
|
||||
|
|
|
@ -46,7 +46,7 @@ struct list_head {
|
|||
|
||||
#define LIST_HEAD_INIT(name) { &(name), &(name) }
|
||||
|
||||
#define LIST_HEAD(name) \
|
||||
#define OOCD_LIST_HEAD(name) \
|
||||
struct list_head name = LIST_HEAD_INIT(name)
|
||||
|
||||
static inline void
|
||||
|
|
|
@ -570,7 +570,7 @@ static void telnet_auto_complete(struct connection *connection)
|
|||
struct list_head lh;
|
||||
};
|
||||
|
||||
LIST_HEAD(matches);
|
||||
OOCD_LIST_HEAD(matches);
|
||||
|
||||
/* - user command sequence, either at line beginning
|
||||
* or we start over after these characters ';', '[', '{'
|
||||
|
|
|
@ -431,7 +431,7 @@ static int jtagdp_overrun_check(struct adiv5_dap *dap)
|
|||
struct dap_cmd *el, *tmp, *prev = NULL;
|
||||
int found_wait = 0;
|
||||
int64_t time_now;
|
||||
LIST_HEAD(replay_list);
|
||||
OOCD_LIST_HEAD(replay_list);
|
||||
|
||||
/* make sure all queued transactions are complete */
|
||||
retval = jtag_execute_queue();
|
||||
|
|
|
@ -25,7 +25,7 @@ struct arm_cti {
|
|||
struct adiv5_ap *ap;
|
||||
};
|
||||
|
||||
static LIST_HEAD(all_cti);
|
||||
static OOCD_LIST_HEAD(all_cti);
|
||||
|
||||
const char *arm_cti_name(struct arm_cti *self)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "transport/transport.h"
|
||||
#include "jtag/interface.h"
|
||||
|
||||
static LIST_HEAD(all_dap);
|
||||
static OOCD_LIST_HEAD(all_dap);
|
||||
|
||||
extern struct adapter_driver *adapter_driver;
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ struct arm_tpiu_swo_priv_connection {
|
|||
struct arm_tpiu_swo_object *obj;
|
||||
};
|
||||
|
||||
static LIST_HEAD(all_tpiu_swo);
|
||||
static OOCD_LIST_HEAD(all_tpiu_swo);
|
||||
|
||||
#define ARM_TPIU_SWO_TRACE_BUF_SIZE 4096
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
#include "or1k.h"
|
||||
#include "or1k_du.h"
|
||||
|
||||
LIST_HEAD(tap_list);
|
||||
LIST_HEAD(du_list);
|
||||
OOCD_LIST_HEAD(tap_list);
|
||||
OOCD_LIST_HEAD(du_list);
|
||||
|
||||
static int or1k_remove_breakpoint(struct target *target,
|
||||
struct breakpoint *breakpoint);
|
||||
|
|
|
@ -214,7 +214,7 @@ typedef struct {
|
|||
dm013_info_t *dm;
|
||||
} riscv013_info_t;
|
||||
|
||||
static LIST_HEAD(dm_list);
|
||||
static OOCD_LIST_HEAD(dm_list);
|
||||
|
||||
static riscv013_info_t *get_info(const struct target *target)
|
||||
{
|
||||
|
|
|
@ -108,10 +108,10 @@ struct target *all_targets;
|
|||
static struct target_event_callback *target_event_callbacks;
|
||||
static struct target_timer_callback *target_timer_callbacks;
|
||||
static int64_t target_timer_next_event_value;
|
||||
static LIST_HEAD(target_reset_callback_list);
|
||||
static LIST_HEAD(target_trace_callback_list);
|
||||
static OOCD_LIST_HEAD(target_reset_callback_list);
|
||||
static OOCD_LIST_HEAD(target_trace_callback_list);
|
||||
static const int polling_interval = TARGET_DEFAULT_POLLING_INTERVAL;
|
||||
static LIST_HEAD(empty_smp_targets);
|
||||
static OOCD_LIST_HEAD(empty_smp_targets);
|
||||
|
||||
enum nvp_assert {
|
||||
NVP_DEASSERT,
|
||||
|
|
Loading…
Reference in New Issue