[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAM9d7cg7oETR=ecaqrag13abpOmBKOextAEw=kRA_gZqVMGGDg@mail.gmail.com>
Date: Sat, 16 Sep 2023 22:25:55 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Leo Yan <leo.yan@...aro.org>, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org, bpf@...r.kernel.org
Subject: Re: [PATCH v1] perf trace: Avoid compile error wrt redefining bool
On Wed, Sep 13, 2023 at 11:50 AM Ian Rogers <irogers@...gle.com> wrote:
>
> Make part of an existing TODO conditional to avoid the following build
> error:
> ```
> tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c:26:14: error: cannot combine with previous 'char' declaration specifier
> 26 | typedef char bool;
> | ^
> include/stdbool.h:20:14: note: expanded from macro 'bool'
> 20 | #define bool _Bool
> | ^
> tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c:26:1: error: typedef requires a name [-Werror,-Wmissing-declarations]
> 26 | typedef char bool;
> | ^~~~~~~~~~~~~~~~~
> 2 errors generated.
> ```
>
> Signed-off-by: Ian Rogers <irogers@...gle.com>
Applied to perf-tools, thanks!
Namhyung
Powered by blists - more mailing lists