summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorJay Agarwal <jagarwal@nvidia.com>2014-03-11 12:47:58 +0530
committerJay Agarwal <jagarwal@nvidia.com>2014-03-13 03:40:45 -0700
commita8a6c95c4dbe38897b953cad26ed699aeede27c9 (patch)
treedb3faad849a2c9c7f739a197fcdc09cc95d5ee9d /drivers/pci
parent732df0e6f9c561bd4da27b923f77cd924d973be5 (diff)
pcie: host: tegra: Resolve all types of warnings
Resolve below warnings: 1. statement with no effect 2. ISO C90 forbids mixed declarations and code 3. cast to pointer from integer of different size Bug 1466403 Change-Id: I3f3a14bf80e25c411adb222500f8f40cc848282d Signed-off-by: Jay Agarwal <jagarwal@nvidia.com> Reviewed-on: http://git-master/r/379859 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pci-tegra.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
index 52e7a4c14fe8..5e6658152c7d 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -379,17 +379,17 @@ static unsigned long tegra_pcie_conf_offset(unsigned int devfn, int where)
static struct tegra_pcie_bus *tegra_pcie_bus_alloc(unsigned int busnr)
{
+ phys_addr_t cs = (phys_addr_t)PCIE_CFG_OFF;
+ struct tegra_pcie_bus *bus;
+ unsigned int i;
+ int err;
#ifndef CONFIG_ARM64
pgprot_t prot = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_XN |
L_PTE_MT_DEV_SHARED | L_PTE_SHARED;
#else
pgprot_t prot = PTE_PRESENT | PTE_YOUNG | PTE_DIRTY | PTE_XN | PTE_SHARED;
- pgprot_dmacoherent(prot); /* L_PTE_MT_DEV_SHARED */
+ (void)pgprot_dmacoherent(prot); /* L_PTE_MT_DEV_SHARED */
#endif
- phys_addr_t cs = (phys_addr_t)PCIE_CFG_OFF;
- struct tegra_pcie_bus *bus;
- unsigned int i;
- int err;
PR_FUNC_LINE;
bus = kzalloc(sizeof(*bus), GFP_KERNEL);
@@ -2133,7 +2133,7 @@ static irqreturn_t tegra_pcie_msi_isr(int irq, void *arg)
static bool tegra_pcie_enable_msi(bool no_init)
{
u32 reg;
- static u32 msi_base;
+ static uintptr_t msi_base;
PR_FUNC_LINE;
if (!msi_base) {