1 From debb9cafe9b7cc2b286399ecc8e3210480061c70 Mon Sep 17 00:00:00 2001
2 From: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
3 Date: Mon, 11 Jan 2016 15:42:16 +0100
4 Subject: [PATCH] Fix mismatched conversion spec and value in printk
6 linux/drivers/char/fusion/fusiondev.c:775:38: warning:
7 format '%ld' expects argument of type 'long int', but argument 7 has type 'int'
9 Subtracting two pointers yields a ptrdiff_t value, and ptrdiff_t is not
10 necessarily an alias for long int. Cast the value to long int.
12 Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
14 linux/drivers/char/fusion/fusiondev.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/linux/drivers/char/fusion/fusiondev.c b/linux/drivers/char/fusion/fusiondev.c
18 index 7003407f7e1e..dfb5f8ecb81a 100644
19 --- a/linux/drivers/char/fusion/fusiondev.c
20 +++ b/linux/drivers/char/fusion/fusiondev.c
21 @@ -775,7 +775,7 @@ call_ioctl(FusionDev * dev, Fusionee * fusionee,
22 printk( KERN_ERR "fusion: FUSION_CALL_EXECUTE3 with errorneous call (failed on previous ioctl call), "
23 "call id %d, flags 0x%08x, arg %d, length %u, serial %u, %ld\n",
24 execute3.call_id, execute3.flags, execute3.call_arg, execute3.length, execute3.ret_length,
25 - (execute3_bin - (FusionCallExecute3 *) arg) );
26 + (long int)(execute3_bin - (FusionCallExecute3 *) arg) );