Skip to content

Commit

Permalink
bpf: Remove trailing semicolon in macro definition
Browse files Browse the repository at this point in the history
The macro use will already have a semicolon. Clean up escaped newlines.

Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
Tom Rix authored and borkmann committed Dec 4, 2020
1 parent 846c3c9 commit 2fa3515
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/trace/events/xdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ DEFINE_EVENT(xdp_redirect_template, xdp_redirect_err,
TP_ARGS(dev, xdp, tgt, err, map, index)
);

#define _trace_xdp_redirect(dev, xdp, to) \
trace_xdp_redirect(dev, xdp, NULL, 0, NULL, to);
#define _trace_xdp_redirect(dev, xdp, to) \
trace_xdp_redirect(dev, xdp, NULL, 0, NULL, to)

#define _trace_xdp_redirect_err(dev, xdp, to, err) \
trace_xdp_redirect_err(dev, xdp, NULL, err, NULL, to);
#define _trace_xdp_redirect_err(dev, xdp, to, err) \
trace_xdp_redirect_err(dev, xdp, NULL, err, NULL, to)

#define _trace_xdp_redirect_map(dev, xdp, to, map, index) \
trace_xdp_redirect(dev, xdp, to, 0, map, index);
trace_xdp_redirect(dev, xdp, to, 0, map, index)

#define _trace_xdp_redirect_map_err(dev, xdp, to, map, index, err) \
trace_xdp_redirect_err(dev, xdp, to, err, map, index);
trace_xdp_redirect_err(dev, xdp, to, err, map, index)

/* not used anymore, but kept around so as not to break old programs */
DEFINE_EVENT(xdp_redirect_template, xdp_redirect_map,
Expand Down

0 comments on commit 2fa3515

Please sign in to comment.