• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/linux-fusion/0002-Fix-mismatched-conversion-spec-and-value-in-printk.patch
Marc GonzalezMarc Gonzalez committed 2b291a074fa15 Jan 2016
Raw file
Source viewDiff to previous
 
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
5
​
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'
8
​
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.
11
​
12
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
13
---
14
 linux/drivers/char/fusion/fusiondev.c | 2 +-
15
 1 file changed, 1 insertion(+), 1 deletion(-)
16
​
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) );
27
                               return -EIO;
28
                          }
29
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.