2020-08-18 07:21:26

by Xu Wang

[permalink] [raw]
Subject: [PATCH] libbpf: convert comma to semicolon

Replace a comma between expression statements by a semicolon.

Signed-off-by: Xu Wang <[email protected]>
---
tools/lib/bpf/libbpf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 5d20b2da4427..5055e1531e43 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -8594,7 +8594,7 @@ struct perf_buffer *perf_buffer__new(int map_fd, size_t page_cnt,
struct perf_buffer_params p = {};
struct perf_event_attr attr = { 0, };

- attr.config = PERF_COUNT_SW_BPF_OUTPUT,
+ attr.config = PERF_COUNT_SW_BPF_OUTPUT;
attr.type = PERF_TYPE_SOFTWARE;
attr.sample_type = PERF_SAMPLE_RAW;
attr.sample_period = 1;
--
2.17.1


2020-08-18 15:55:43

by Yonghong Song

[permalink] [raw]
Subject: Re: [PATCH] libbpf: convert comma to semicolon



On 8/18/20 12:16 AM, Xu Wang wrote:
> Replace a comma between expression statements by a semicolon.
>
> Signed-off-by: Xu Wang <[email protected]>

Acked-by: Yonghong Song <[email protected]>

2020-08-19 00:15:56

by Alexei Starovoitov

[permalink] [raw]
Subject: Re: [PATCH] libbpf: convert comma to semicolon

On Tue, Aug 18, 2020 at 8:54 AM Yonghong Song <[email protected]> wrote:
>
>
>
> On 8/18/20 12:16 AM, Xu Wang wrote:
> > Replace a comma between expression statements by a semicolon.
> >
> > Signed-off-by: Xu Wang <[email protected]>
>
> Acked-by: Yonghong Song <[email protected]>

Applied. Thanks