summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-07-27 13:17:50 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2021-01-31 22:21:04 +0000
commita79077daa1fd4a2a96fd885e51feba7234e3f779 (patch)
tree7b1b0a1052e80988f446685dacdaf96e7da048fa
parent1430f4f1b2568bdd93b1b4fd2135cb0edd2988ac (diff)
uapi/perf: Squelch compiler warning
Remove copious amounts of ./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0) as they are drowning out our warnings. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190727121750.20882-1-chris@chris-wilson.co.uk
-rw-r--r--include/uapi/linux/perf_event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h
index b15e3447cd9f..8efe35efe77a 100644
--- a/include/uapi/linux/perf_event.h
+++ b/include/uapi/linux/perf_event.h
@@ -147,10 +147,10 @@ enum perf_event_sample_format {
PERF_SAMPLE_CODE_PAGE_SIZE = 1U << 23,
PERF_SAMPLE_MAX = 1U << 24, /* non-ABI */
-
- __PERF_SAMPLE_CALLCHAIN_EARLY = 1ULL << 63, /* non-ABI; internal use */
};
+#define __PERF_SAMPLE_CALLCHAIN_EARLY (1ULL << 63) /* non-ABI; internal use */
+
/*
* values to program into branch_sample_type when PERF_SAMPLE_BRANCH is set
*