mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
The non-distro build requires libbfd 2.42 since commit b72b8132d8
("perf libbfd: Ensure libbfd is initialized prior to use"). Add a
feature test so that it's obvious why the build fails if this criteria
isn't met.
Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Leo Yan <leo.yan@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <nick.desaulniers+lkml@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
18 lines
299 B
C
18 lines
299 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <bfd.h>
|
|
|
|
static bool lock(void *unused)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
static bool unlock(void *unused)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
/* Check for presence of new thread safety API (version 2.42) */
|
|
return !bfd_thread_init(lock, unlock, NULL);
|
|
}
|