[tip:perf/core] tools lib traceevent: Add UL suffix to MISSING_EVENTS

From: tip-bot for Michael Sartain
Date: Wed Jan 17 2018 - 11:34:15 EST


Commit-ID: 6d36ce261614fbac3557cc58ba6a33424944c8a2
Gitweb: https://git.kernel.org/tip/6d36ce261614fbac3557cc58ba6a33424944c8a2
Author: Michael Sartain <mikesart@xxxxxxxxxxxx>
AuthorDate: Thu, 11 Jan 2018 19:47:49 -0500
Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
CommitDate: Wed, 17 Jan 2018 10:22:49 -0300

tools lib traceevent: Add UL suffix to MISSING_EVENTS

Add UL suffix to MISSING_EVENTS since ints shouldn't be left shifted by 31.

Signed-off-by: Michael Sartain <mikesart@xxxxxxxxxxxx>
Acked-by: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Link: http://lkml.kernel.org/r/20171016165542.13038-4-mikesart@xxxxxxxxxxxx
Link: http://lkml.kernel.org/r/20180112004822.829533885@xxxxxxxxxxx
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/lib/traceevent/kbuffer-parse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/lib/traceevent/kbuffer-parse.c b/tools/lib/traceevent/kbuffer-parse.c
index c94e364..ca424b1 100644
--- a/tools/lib/traceevent/kbuffer-parse.c
+++ b/tools/lib/traceevent/kbuffer-parse.c
@@ -24,8 +24,8 @@

#include "kbuffer.h"

-#define MISSING_EVENTS (1 << 31)
-#define MISSING_STORED (1 << 30)
+#define MISSING_EVENTS (1UL << 31)
+#define MISSING_STORED (1UL << 30)

#define COMMIT_MASK ((1 << 27) - 1)