Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH 04/11] tools lib traceevent: Fix cast from pointer to integer for 32 bit

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


acme at infradead

Aug 8, 2012, 10:13 AM

Post #1 of 1 (44 views)
Permalink
[PATCH 04/11] tools lib traceevent: Fix cast from pointer to integer for 32 bit

From: Robert Richter <robert.richter [at] amd>

Fixing the integer cast reported by the following warning:

tools/lib/traceevent/event-parse.c:3488:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Signed-off-by: Robert Richter <robert.richter [at] amd>
Cc: Ingo Molnar <mingo [at] kernel>
Link: http://lkml.kernel.org/r/1344361396-7237-5-git-send-email-robert.richter [at] amd
Signed-off-by: Arnaldo Carvalho de Melo <acme [at] redhat>
---
tools/lib/traceevent/event-parse.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 5f34aa3..b7c2c49 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -31,6 +31,7 @@
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
+#include <stdint.h>

#include "event-parse.h"
#include "event-utils.h"
@@ -3485,7 +3486,7 @@ process_defined_func(struct trace_seq *s, void *data, int size,
if (!string->str)
die("malloc str");

- args[i] = (unsigned long long)string->str;
+ args[i] = (uintptr_t)string->str;
strings = string;
trace_seq_destroy(&str);
break;
--
1.7.9.2.358.g22243

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.