Skip to content

Commit

Permalink
powerpc/fsl: msi: sparse fixes
Browse files Browse the repository at this point in the history
arch/powerpc/sysdev/fsl_msi.c:31:1: warning: symbol 'msi_head' was not declared. Should it be static?
arch/powerpc/sysdev/fsl_msi.c:138:40: warning: incorrect type in argument 1 (different base types)
arch/powerpc/sysdev/fsl_msi.c:138:40:    expected restricted __be64 const [usertype] *p
arch/powerpc/sysdev/fsl_msi.c:138:40:    got unsigned long long const [usertype] *[assigned] reg

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Kim Phillips authored and Kumar Gala committed Feb 12, 2013
1 parent 8998a03 commit 6cce76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/fsl_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "fsl_msi.h"
#include "fsl_pci.h"

LIST_HEAD(msi_head);
static LIST_HEAD(msi_head);

struct fsl_msi_feature {
u32 fsl_pic_ip;
Expand Down Expand Up @@ -130,7 +130,7 @@ static void fsl_compose_msi_msg(struct pci_dev *pdev, int hwirq,
struct pci_controller *hose = pci_bus_to_host(pdev->bus);
u64 address; /* Physical address of the MSIIR */
int len;
const u64 *reg;
const __be64 *reg;

/* If the msi-address-64 property exists, then use it */
reg = of_get_property(hose->dn, "msi-address-64", &len);
Expand Down

0 comments on commit 6cce76d

Please sign in to comment.