Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Reported-by: Hulk Robot <redacted>
Signed-off-by: Yu Kuai <redacted>
---
tools/perf/util/bpf_counter.c | 2 ++
1 file changed, 2 insertions(+)
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Reported-by: Hulk Robot <redacted>
Signed-off-by: Yu Kuai <redacted>
---
tools/perf/util/bpf_counter.c | 2 ++
1 file changed, 2 insertions(+)
From: Arnaldo Carvalho de Melo <acme@kernel.org> Date: 2021-06-01 13:52:54
Em Mon, May 17, 2021 at 04:12:54PM +0800, Yu Kuai escreveu:
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Reported-by: Hulk Robot <redacted>
Signed-off-by: Yu Kuai <redacted>
Applied, but I had to add Song to the CC list and also add this line:
Fixes: 7fac83aaf2eecc9e ("perf stat: Introduce 'bperf' to share hardware PMCs with BPF")
So that the stable@kernel.org folks can get this auto-collected.
Perhaps you guys can make Hulk do that as well? :-)
Thanks,
- Arnaldo
From: Arnaldo Carvalho de Melo <acme@kernel.org> Date: 2021-06-01 13:55:59
Em Tue, Jun 01, 2021 at 10:52:42AM -0300, Arnaldo Carvalho de Melo escreveu:
Em Mon, May 17, 2021 at 04:12:54PM +0800, Yu Kuai escreveu:
quoted
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Reported-by: Hulk Robot <redacted>
Signed-off-by: Yu Kuai <redacted>
Applied, but I had to add Song to the CC list and also add this line:
Fixes: 7fac83aaf2eecc9e ("perf stat: Introduce 'bperf' to share hardware PMCs with BPF")
So that the stable@kernel.org folks can get this auto-collected.
Perhaps you guys can make Hulk do that as well? :-)
Thanks,
Something else to teach Hulk:
util/bpf_counter.c: In function ‘bperf__load’:
util/bpf_counter.c:523:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
523 | if (evsel->bperf_leader_link_fd < 0 &&
| ^~
util/bpf_counter.c:526:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
526 | goto out;
| ^~~~
cc1: all warnings being treated as errors
I'm adding the missing {} for the now multiline if block.
- Arnaldo
On 2021/06/01 21:55, Arnaldo Carvalho de Melo wrote:
Em Tue, Jun 01, 2021 at 10:52:42AM -0300, Arnaldo Carvalho de Melo escreveu:
quoted
Em Mon, May 17, 2021 at 04:12:54PM +0800, Yu Kuai escreveu:
quoted
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Reported-by: Hulk Robot <redacted>
Signed-off-by: Yu Kuai <redacted>
Applied, but I had to add Song to the CC list and also add this line:
Fixes: 7fac83aaf2eecc9e ("perf stat: Introduce 'bperf' to share hardware PMCs with BPF")
So that the stable@kernel.org folks can get this auto-collected.
Perhaps you guys can make Hulk do that as well? :-)
Thanks,
Something else to teach Hulk:
util/bpf_counter.c: In function ‘bperf__load’:
util/bpf_counter.c:523:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
523 | if (evsel->bperf_leader_link_fd < 0 &&
| ^~
util/bpf_counter.c:526:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
526 | goto out;
| ^~~~
cc1: all warnings being treated as errors
I'm adding the missing {} for the now multiline if block.
Sorry for the mistake, and similar errors will be checked in the future.
Thanks
Yu Kuai