mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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: ebe2253127 ("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>
This commit is contained in:
parent
a7032132d7
commit
066bcd785a
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue