• Arnaldo Carvalho de Melo's avatar
    perf tests bp_account: Fix build with clang-6 · 1cd61883
    Arnaldo Carvalho de Melo authored
    To shut up this compiler warning:
    
        CC       /tmp/build/perf/tests/bp_account.o
        CC       /tmp/build/perf/tests/task-exit.o
        CC       /tmp/build/perf/tests/sw-clock.o
      tests/bp_account.c:106:20: error: pointer type mismatch ('int (*)(void)' and 'void *') [-Werror,-Wpointer-type-mismatch]
              void *addr = is_x ? test_function : (void *) &the_var;
                                ^ ~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~
      1 error generated.
    
    Noticed with clang 6 on fedora rawhide.
    
      [perfbuilder@44490f0e7241 perf]$ clang -v
      clang version 6.0.0 (tags/RELEASE_600/final)
      Target: x86_64-unknown-linux-gnu
      Thread model: posix
      InstalledDir: /usr/bin
      Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/8
      Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/8
      Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/8
      Candidate multilib: .;@m64
      Candidate multilib: 32;@m32
      Selected multilib: .;@m64
      [perfbuilder@44490f0e7241 perf]$
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Fixes: 032db28e ("perf tests: Add breakpoint accounting/modify test")
    Link: https://lkml.kernel.org/n/tip-a3jnkzh4xam0l954de5tn66d@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    1cd61883
Name
Last commit
Last update
..
attr Loading commit data...
shell Loading commit data...
.gitignore Loading commit data...
Build Loading commit data...
attr.c Loading commit data...
attr.py Loading commit data...
backward-ring-buffer.c Loading commit data...
bitmap.c Loading commit data...
bp_account.c Loading commit data...
bp_signal.c Loading commit data...
bp_signal_overflow.c Loading commit data...
bpf-script-example.c Loading commit data...
bpf-script-test-kbuild.c Loading commit data...
bpf-script-test-prologue.c Loading commit data...
bpf-script-test-relocation.c Loading commit data...
bpf.c Loading commit data...
builtin-test.c Loading commit data...
clang.c Loading commit data...
code-reading.c Loading commit data...
cpumap.c Loading commit data...
dso-data.c Loading commit data...
dwarf-unwind.c Loading commit data...
event-times.c Loading commit data...
event_update.c Loading commit data...
evsel-roundtrip-name.c Loading commit data...
evsel-tp-sched.c Loading commit data...
expr.c Loading commit data...
fdarray.c Loading commit data...
hists_common.c Loading commit data...
hists_common.h Loading commit data...
hists_cumulate.c Loading commit data...
hists_filter.c Loading commit data...
hists_link.c Loading commit data...
hists_output.c Loading commit data...
is_printable_array.c Loading commit data...
keep-tracking.c Loading commit data...
kmod-path.c Loading commit data...
llvm.c Loading commit data...
llvm.h Loading commit data...
make Loading commit data...
mem.c Loading commit data...
mem2node.c Loading commit data...
mmap-basic.c Loading commit data...
mmap-thread-lookup.c Loading commit data...
openat-syscall-all-cpus.c Loading commit data...
openat-syscall-tp-fields.c Loading commit data...
openat-syscall.c Loading commit data...
parse-events.c Loading commit data...
parse-no-sample-id-all.c Loading commit data...
perf-hooks.c Loading commit data...
perf-record.c Loading commit data...
perf-targz-src-pkg Loading commit data...
pmu.c Loading commit data...
python-use.c Loading commit data...
sample-parsing.c Loading commit data...
sdt.c Loading commit data...
stat.c Loading commit data...
sw-clock.c Loading commit data...
switch-tracking.c Loading commit data...
task-exit.c Loading commit data...
tests.h Loading commit data...
thread-map.c Loading commit data...
thread-mg-share.c Loading commit data...
topology.c Loading commit data...
unit_number__scnprintf.c Loading commit data...
vmlinux-kallsyms.c Loading commit data...