Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1721439
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/6] perf tools: Remove BUG_ON char[] to bool implicit conversions |
| Date | 2017-08-28 11:40 +0200 |
| Message-ID | <ujoGu-3Tj-29@gated-at.bofh.it> (permalink) |
| References | <uj0E9-4Hq-3@gated-at.bofh.it> <uj0Ea-4Hq-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Aug 27, 2017 at 12:54:41AM -0700, David Carrillo-Cisneros wrote: > When compiling with LLVM, errors like this are shown: > > builtin-lock.c:46:10: error: implicit conversion turns string literal into bool: 'const char [39]' to 'bool' > > Due to error message implicit conversion into bool. Fix it by defining a > BUG macro without a boolean argument and use it instead. > > Signed-off-by: David Carrillo-Cisneros <davidcc@google.com> > --- > tools/include/linux/kernel.h | 2 ++ > tools/perf/builtin-lock.c | 15 ++++++++++----- > 2 files changed, 12 insertions(+), 5 deletions(-) > > diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h > index 77d2e94ca5df..0951c96205c4 100644 > --- a/tools/include/linux/kernel.h > +++ b/tools/include/linux/kernel.h > @@ -70,6 +70,8 @@ > #endif > #endif > > +#define BUG() abort() we have some of those in tools/include/asm/bug.h some might suit you, I think we wanted to omit BUG calls completely jirka
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] perf tools: Minor build fixes David Carrillo-Cisneros <davidcc@google.com> - 2017-08-27 10:00 +0200
[PATCH 4/6] perf tools: Robustify detection of clang binary David Carrillo-Cisneros <davidcc@google.com> - 2017-08-27 10:00 +0200
[tip:perf/core] perf tools: Robustify detection of clang binary tip-bot for David Carrillo-Cisneros <tipbot@zytor.com> - 2017-08-29 23:30 +0200
[PATCH 3/6] tools lib: Allow external definition of CC, AR and LD David Carrillo-Cisneros <davidcc@google.com> - 2017-08-27 10:00 +0200
[tip:perf/core] tools lib: Allow external definition of CC, AR and LD tip-bot for David Carrillo-Cisneros <tipbot@zytor.com> - 2017-08-29 23:30 +0200
[PATCH 2/6] perf tools: Allow external definition of flex and bison binary names David Carrillo-Cisneros <davidcc@google.com> - 2017-08-27 10:00 +0200
[tip:perf/core] perf tools: Allow external definition of flex and bison binary names tip-bot for David Carrillo-Cisneros <tipbot@zytor.com> - 2017-08-29 23:30 +0200
[PATCH 1/6] tools build tests: Don't hardcode gcc name David Carrillo-Cisneros <davidcc@google.com> - 2017-08-27 10:00 +0200
[tip:perf/core] tools build tests: Don't hardcode gcc name tip-bot for David Carrillo-Cisneros <tipbot@zytor.com> - 2017-08-29 23:30 +0200
[PATCH 5/6] perf tools: Remove BUG_ON char[] to bool implicit conversions David Carrillo-Cisneros <davidcc@google.com> - 2017-08-27 10:00 +0200
Re: [PATCH 5/6] perf tools: Remove BUG_ON char[] to bool implicit conversions Jiri Olsa <jolsa@redhat.com> - 2017-08-28 11:40 +0200
[PATCH] perf tools: Remove BUG_ON char[] to bool implicit conversions David Carrillo-Cisneros <davidcc@google.com> - 2017-08-28 20:40 +0200
Re: [PATCH 0/6] perf tools: Minor build fixes Jiri Olsa <jolsa@redhat.com> - 2017-08-28 11:40 +0200
Re: [PATCH 0/6] perf tools: Minor build fixes Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-08-28 16:20 +0200
Re: [PATCH 0/6] perf tools: Minor build fixes David Carrillo-Cisneros <davidcc@google.com> - 2017-08-28 20:40 +0200
csiph-web