summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pnv-pci.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-08-02 06:10:31 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2016-10-04 07:29:46 +0200
commit066bcd785aac9c10e5f9b873f9bd2e438653340d (patch)
tree40d4396844c4b5d1d23519a05e230f00593ab2eb /arch/powerpc/include/asm/pnv-pci.h
parentpowerpc/powernv: Use CPU-endian hub diag-data type in pnv_eeh_get_and_dump_hu... (diff)
downloadlinux-066bcd785aac9c10e5f9b873f9bd2e438653340d.tar.xz
linux-066bcd785aac9c10e5f9b873f9bd2e438653340d.zip
powerpc/powernv: Specify proper data type for PCI_SLOT_ID_PREFIX
This fixes the warning reported from sparse: eeh-powernv.c:875:23: warning: constant 0x8000000000000000 is so big it is unsigned long Fixes: ebe225312739 ("powerpc/powernv: Support PCI slot ID") Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/pnv-pci.h')
-rw-r--r--arch/powerpc/include/asm/pnv-pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/pnv-pci.h b/arch/powerpc/include/asm/pnv-pci.h
index 17e89dd613e1..74b0b1e311b5 100644
--- a/arch/powerpc/include/asm/pnv-pci.h
+++ b/arch/powerpc/include/asm/pnv-pci.h
@@ -15,7 +15,7 @@
#include <misc/cxl-base.h>
#include <asm/opal-api.h>
-#define PCI_SLOT_ID_PREFIX 0x8000000000000000
+#define PCI_SLOT_ID_PREFIX (1UL << 63)
#define PCI_SLOT_ID(phb_id, bdfn) \
(PCI_SLOT_ID_PREFIX | ((uint64_t)(bdfn) << 16) | (phb_id))