Commit 54cba3ec authored by Stefan Bader's avatar Stefan Bader Committed by Khalid Elmously

UBUNTU: SAUCE: perf/bench: Drop definition of BIT in numa.c

BugLink: https://bugs.launchpad.net/bugs/1830176

Since commit d5c98ddc "tools include: Adopt linux/bits.h",
the copy of bits.h in tools/include already defines a BIT()
macro.
The re-definition of it in tools/perf/bench/numa.c breaks
the build if enabled. This should go into the master kernel, too
but went undetected because it is not enabled anywhere else.

Fixes: d5c98ddc "tools include: Adopt linux/bits.h"
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 72b371e7
......@@ -720,8 +720,6 @@ static int parse_nodes_opt(const struct option *opt __maybe_unused,
return 0;
}
#define BIT(x) (1ul << x)
static inline uint32_t lfsr_32(uint32_t lfsr)
{
const uint32_t taps = BIT(1) | BIT(5) | BIT(6) | BIT(31);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment