perf arm-spe: Include bitops.h for BIT() macro
authorLeo Yan <leo.yan@linaro.org>
Wed, 11 Nov 2020 07:11:28 +0000 (15:11 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 Nov 2020 17:44:22 +0000 (14:44 -0300)
commitc185f1cde46653cd0a7a1eaf461d16c462870781
tree348ad1e461a1b885fbf5ebf5b39561cf3c2a4cd7
parent40714c58630aaaf1eb3acc431fe206a6b36a03d6
perf arm-spe: Include bitops.h for BIT() macro

Include header linux/bitops.h, directly use its BIT() macro and remove
the self defined macros.

Committer notes:

Use BIT_ULL() instead of BIT to build on 32-bit arches as mentioned in
review by Andre Przywara <andre.przywara@arm.com>. I noticed the build
failure when crossbuilding to arm32 from x86_64.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20201111071149.815-2-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/arm-spe-decoder/arm-spe-decoder.c
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c