Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error support clang #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "trace-cmd-private.h"
#include "trace-cmd-local.h"
#include "event-utils.h"

void warning(const char *fmt, ...);
struct hook_list *tracecmd_create_event_hook(const char *arg)
{
struct hook_list *hook;
Expand Down
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

/* for debugging read instead of mmap */
static int force_read = 0;

void warning(const char *fmt, ...);
struct page_map {
struct list_head list;
off_t offset;
Expand Down
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ typedef __be32 be32;
#define MSG_MAX_DATA_LEN (MSG_MAX_LEN - MSG_HDR_LEN)

unsigned int page_size;

void warning(const char *fmt, ...);
struct tracecmd_msg_tinit {
be32 cpus;
be32 page_size;
Expand Down
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-output.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/* We can't depend on the host size for size_t, all must be 64 bit */
typedef unsigned long long tsize_t;
typedef long long stsize_t;

void warning(const char *fmt, ...);
struct tracecmd_option {
unsigned short id;
int size;
Expand Down
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "trace-cmd-local.h"

#define LOCAL_PLUGIN_DIR ".local/lib/trace-cmd/plugins/"

void warning(const char *fmt, ...);
struct trace_plugin_list {
struct trace_plugin_list *next;
char *name;
Expand Down
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-recorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#endif

#define POLL_TIMEOUT_MS 1000

void warning(const char *fmt, ...);
struct tracecmd_recorder {
struct tracefs_cpu *tcpu;
int fd;
Expand Down
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-timesync.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "tracefs.h"
#include "event-utils.h"
#include "trace-tsync-local.h"

void warning(const char *fmt, ...);
struct tsync_proto {
struct tsync_proto *next;
char proto_name[TRACECMD_TSYNC_PNAME_LENGTH];
Expand Down
2 changes: 1 addition & 1 deletion lib/trace-cmd/trace-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#define LOCAL_PLUGIN_DIR ".trace-cmd/plugins"
#define PROC_STACK_FILE "/proc/sys/kernel/stack_tracer_enabled"

void warning(const char *fmt, ...);
static bool debug;
static bool notimeout;
static int log_level = TEP_LOG_WARNING;
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define GUEST_NAME "::GUEST::"

#define dprint(fmt, ...) tracecmd_debug(fmt, ##__VA_ARGS__)

void warning(const char *fmt, ...);
static void make_vsocks(int nr, int *fds, unsigned int *ports)
{
unsigned int port;
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "trace-hash-local.h"
#include "trace-local.h"
#include "list.h"

void warning(const char *fmt, ...);
static int sched_wakeup_type;
static int sched_wakeup_new_type;
static int sched_switch_type;
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define VAR_RUN_DIR VAR_DIR_Q(VAR_DIR) "/run"

#define LISTEN_PIDFILE "trace-cmd-net.pid"

void warning(const char *fmt, ...);
static char *default_output_dir = ".";
static char *output_dir;
static char *default_output_file = "trace";
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define stack_from_item(item) container_of(item, struct stack_data, hash)
#define group_from_item(item) container_of(item, struct group_data, hash)
#define event_data_from_item(item) container_of(item, struct event_data, hash)

void warning(const char *fmt, ...);
static unsigned long long nsecs_per_sec(unsigned long long ts)
{
return ts / NSEC_PER_SEC;
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-read.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "trace-hash-local.h"
#include "kbuffer.h"
#include "list.h"

void warning(const char *fmt, ...);
/*
* tep_func_repeat_format is defined as a weak variable in the
* libtraceevent library function plugin, to allow applications
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#define TSC_CLOCK "x86-tsc"

#define dprint(fmt, ...) tracecmd_debug(fmt, ##__VA_ARGS__)

void warning(const char *fmt, ...);
enum trace_type {
TRACE_TYPE_RECORD = 1,
TRACE_TYPE_START = (1 << 1),
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-restore.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <errno.h>

#include "trace-local.h"

void warning(const char *fmt, ...);
static struct tracecmd_output *create_output(const char *file,
const char *tracing_dir, const char *kallsyms)
{
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "trace-local.h"

#define PROC_FILE "/proc/sys/kernel/stack_tracer_enabled"

void warning(const char *fmt, ...);
enum stack_type {
STACK_START,
STACK_STOP,
Expand Down
2 changes: 1 addition & 1 deletion tracecmd/trace-vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "trace-local.h"
#include "trace-msg.h"

void warning(const char *fmt, ...);
static struct trace_guest *guests;
static size_t guests_len;

Expand Down