From: Gavin Shan Date: Tue, 2 Aug 2016 04:10:31 +0000 (+1000) Subject: powerpc/powernv: Specify proper data type for PCI_SLOT_ID_PREFIX X-Git-Tag: v4.9-rc1~26^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=066bcd785aac9c10e5f9b873f9bd2e438653340d;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Gavin Shan Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/include/asm/pnv-pci.h b/arch/powerpc/include/asm/pnv-pci.h index 17e89dd..74b0b1e 100644 --- a/arch/powerpc/include/asm/pnv-pci.h +++ b/arch/powerpc/include/asm/pnv-pci.h @@ -15,7 +15,7 @@ #include #include -#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))