regmap: Fix type of field width specifiers for x86_64
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 9 Aug 2011 07:47:42 +0000 (16:47 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 9 Aug 2011 15:26:38 +0000 (00:26 +0900)
x86_64 size_t is not an int but the printf format specifier for size_t
should be an int.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
drivers/base/regmap/regmap-debugfs.c

index 184b618e318e82979386de3a4bcd3a6b4537083d..6e304a4e2706ac0e8bb87ceec1193756a83e4399 100644 (file)
@@ -29,7 +29,7 @@ static int regmap_map_open_file(struct inode *inode, struct file *file)
 static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
                                    size_t count, loff_t *ppos)
 {
-       size_t reg_len, val_len, tot_len;
+       int reg_len, val_len, tot_len;
        size_t buf_pos = 0;
        loff_t p = 0;
        ssize_t ret;