aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-09 03:42:27 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-09 11:26:33 -0400
commit3d9ead7c06e51249a92eb710a892a66601bd7290 (patch)
tree49ec6fa8cdf1fb71106be1ceaeef38c0a1315d49 /include/trace/events/regmap.h
parentbe2136e5c99fd5faa655e571b507362b27df1a28 (diff)
regmap: Use int rather than size_t for lengths when logging blocks
x86_64 warns as size_t is not an int. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/trace/events/regmap.h')
-rw-r--r--include/trace/events/regmap.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/trace/events/regmap.h b/include/trace/events/regmap.h
index 1c76f40dee44..e35e37c378c6 100644
--- a/include/trace/events/regmap.h
+++ b/include/trace/events/regmap.h
@@ -57,14 +57,14 @@ DEFINE_EVENT(regmap_reg, regmap_reg_read,
57 57
58DECLARE_EVENT_CLASS(regmap_block, 58DECLARE_EVENT_CLASS(regmap_block,
59 59
60 TP_PROTO(struct device *dev, unsigned int reg, size_t count), 60 TP_PROTO(struct device *dev, unsigned int reg, int count),
61 61
62 TP_ARGS(dev, reg, count), 62 TP_ARGS(dev, reg, count),
63 63
64 TP_STRUCT__entry( 64 TP_STRUCT__entry(
65 __string( name, dev_name(dev) ) 65 __string( name, dev_name(dev) )
66 __field( unsigned int, reg ) 66 __field( unsigned int, reg )
67 __field( size_t, count ) 67 __field( int, count )
68 ), 68 ),
69 69
70 TP_fast_assign( 70 TP_fast_assign(
@@ -75,33 +75,33 @@ DECLARE_EVENT_CLASS(regmap_block,
75 75
76 TP_printk("%s reg=%x count=%d", __get_str(name), 76 TP_printk("%s reg=%x count=%d", __get_str(name),
77 (unsigned int)__entry->reg, 77 (unsigned int)__entry->reg,
78 (size_t)__entry->count) 78 (int)__entry->count)
79); 79);
80 80
81DEFINE_EVENT(regmap_block, regmap_hw_read_start, 81DEFINE_EVENT(regmap_block, regmap_hw_read_start,
82 82
83 TP_PROTO(struct device *dev, unsigned int reg, size_t count), 83 TP_PROTO(struct device *dev, unsigned int reg, int count),
84 84
85 TP_ARGS(dev, reg, count) 85 TP_ARGS(dev, reg, count)
86); 86);
87 87
88DEFINE_EVENT(regmap_block, regmap_hw_read_done, 88DEFINE_EVENT(regmap_block, regmap_hw_read_done,
89 89
90 TP_PROTO(struct device *dev, unsigned int reg, size_t count), 90 TP_PROTO(struct device *dev, unsigned int reg, int count),
91 91
92 TP_ARGS(dev, reg, count) 92 TP_ARGS(dev, reg, count)
93); 93);
94 94
95DEFINE_EVENT(regmap_block, regmap_hw_write_start, 95DEFINE_EVENT(regmap_block, regmap_hw_write_start,
96 96
97 TP_PROTO(struct device *dev, unsigned int reg, size_t count), 97 TP_PROTO(struct device *dev, unsigned int reg, int count),
98 98
99 TP_ARGS(dev, reg, count) 99 TP_ARGS(dev, reg, count)
100); 100);
101 101
102DEFINE_EVENT(regmap_block, regmap_hw_write_done, 102DEFINE_EVENT(regmap_block, regmap_hw_write_done,
103 103
104 TP_PROTO(struct device *dev, unsigned int reg, size_t count), 104 TP_PROTO(struct device *dev, unsigned int reg, int count),
105 105
106 TP_ARGS(dev, reg, count) 106 TP_ARGS(dev, reg, count)
107); 107);