mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +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 <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Bill Wendling <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Justin Stitt <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
19 lines
299 B
C
19 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);
|
|
}
|