diff options
author | Marc Gonzalez <marc_gonzalez@sigmadesigns.com> | 2016-01-15 17:12:00 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-01-16 14:02:27 +0100 |
commit | 2b291a074fa11539e47e76b790685ae8d96efb4c (patch) | |
tree | fd16a1952088f0f835efc393ad2db7b15acdd8d3 /package/linux-fusion/0002-Fix-mismatched-conversion-spec-and-value-in-printk.patch | |
parent | 17f70899e13530035afac62c757f90b6d7eaea34 (diff) | |
download | buildroot-2b291a074fa11539e47e76b790685ae8d96efb4c.tar.gz buildroot-2b291a074fa11539e47e76b790685ae8d96efb4c.zip |
linux-fusion: fix several build issues
The first patch merely fixes a warning. The other two are required
to use the module on Linux 4.x
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linux-fusion/0002-Fix-mismatched-conversion-spec-and-value-in-printk.patch')
-rw-r--r-- | package/linux-fusion/0002-Fix-mismatched-conversion-spec-and-value-in-printk.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/linux-fusion/0002-Fix-mismatched-conversion-spec-and-value-in-printk.patch b/package/linux-fusion/0002-Fix-mismatched-conversion-spec-and-value-in-printk.patch new file mode 100644 index 0000000000..a3f8bb7812 --- /dev/null +++ b/package/linux-fusion/0002-Fix-mismatched-conversion-spec-and-value-in-printk.patch @@ -0,0 +1,29 @@ +From debb9cafe9b7cc2b286399ecc8e3210480061c70 Mon Sep 17 00:00:00 2001 +From: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> +Date: Mon, 11 Jan 2016 15:42:16 +0100 +Subject: [PATCH] Fix mismatched conversion spec and value in printk + +linux/drivers/char/fusion/fusiondev.c:775:38: warning: +format '%ld' expects argument of type 'long int', but argument 7 has type 'int' + +Subtracting two pointers yields a ptrdiff_t value, and ptrdiff_t is not +necessarily an alias for long int. Cast the value to long int. + +Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> +--- + linux/drivers/char/fusion/fusiondev.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/linux/drivers/char/fusion/fusiondev.c b/linux/drivers/char/fusion/fusiondev.c +index 7003407f7e1e..dfb5f8ecb81a 100644 +--- a/linux/drivers/char/fusion/fusiondev.c ++++ b/linux/drivers/char/fusion/fusiondev.c +@@ -775,7 +775,7 @@ call_ioctl(FusionDev * dev, Fusionee * fusionee, + printk( KERN_ERR "fusion: FUSION_CALL_EXECUTE3 with errorneous call (failed on previous ioctl call), " + "call id %d, flags 0x%08x, arg %d, length %u, serial %u, %ld\n", + execute3.call_id, execute3.flags, execute3.call_arg, execute3.length, execute3.ret_length, +- (execute3_bin - (FusionCallExecute3 *) arg) ); ++ (long int)(execute3_bin - (FusionCallExecute3 *) arg) ); + return -EIO; + } + |