diff options
-rw-r--r-- | tools/lib/traceevent/plugin_cfg80211.c | 2 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_scsi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/traceevent/plugin_cfg80211.c b/tools/lib/traceevent/plugin_cfg80211.c index dcab8e873c21..57e98221db20 100644 --- a/tools/lib/traceevent/plugin_cfg80211.c +++ b/tools/lib/traceevent/plugin_cfg80211.c | |||
@@ -8,7 +8,7 @@ static unsigned long long | |||
8 | process___le16_to_cpup(struct trace_seq *s, | 8 | process___le16_to_cpup(struct trace_seq *s, |
9 | unsigned long long *args) | 9 | unsigned long long *args) |
10 | { | 10 | { |
11 | uint16_t *val = (uint16_t *) args[0]; | 11 | uint16_t *val = (uint16_t *) (unsigned long) args[0]; |
12 | return val ? (long long) le16toh(*val) : 0; | 12 | return val ? (long long) le16toh(*val) : 0; |
13 | } | 13 | } |
14 | 14 | ||
diff --git a/tools/lib/traceevent/plugin_scsi.c b/tools/lib/traceevent/plugin_scsi.c index 6fb8e3e3fcad..7ef16cc96562 100644 --- a/tools/lib/traceevent/plugin_scsi.c +++ b/tools/lib/traceevent/plugin_scsi.c | |||
@@ -405,7 +405,7 @@ scsi_trace_parse_cdb(struct trace_seq *p, unsigned char *cdb, int len) | |||
405 | unsigned long long process_scsi_trace_parse_cdb(struct trace_seq *s, | 405 | unsigned long long process_scsi_trace_parse_cdb(struct trace_seq *s, |
406 | unsigned long long *args) | 406 | unsigned long long *args) |
407 | { | 407 | { |
408 | scsi_trace_parse_cdb(s, (unsigned char *) args[1], args[2]); | 408 | scsi_trace_parse_cdb(s, (unsigned char *) (unsigned long) args[1], args[2]); |
409 | return 0; | 409 | return 0; |
410 | } | 410 | } |
411 | 411 | ||