diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 09:09:04 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 09:09:04 +1100 |
commit | c04a6b7261e8b56f744f39010168507704edfc65 (patch) | |
tree | 4538c88eddad1cdff9b248ae72fd070f8c663341 /hw/slw.c | |
parent | ee407ac983f13ca43022f6695a6e2b0417475333 (diff) | |
download | skiboot-c04a6b7261e8b56f744f39010168507704edfc65.zip skiboot-c04a6b7261e8b56f744f39010168507704edfc65.tar.gz skiboot-c04a6b7261e8b56f744f39010168507704edfc65.tar.bz2 |
sparse: fix warning constant is so big it is long in hw/slw.c
hw/slw.c:485:26: warning: constant 0x0000002000000000 is so big it is long
hw/slw.c:486:31: warning: constant 0x0000003000000000 is so big it is long
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/slw.c')
-rw-r--r-- | hw/slw.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -430,13 +430,13 @@ struct cpu_idle_states { by searching PACA */ #define IDLE_USE_PMICR 0x00800000 /* Use SPR PMICR instruction */ -#define IDLE_FASTSLEEP_PMICR 0x0000002000000000 -#define IDLE_DEEPSLEEP_PMICR 0x0000003000000000 -#define IDLE_SLEEP_PMICR_MASK 0x0000003000000000 +#define IDLE_FASTSLEEP_PMICR 0x0000002000000000UL +#define IDLE_DEEPSLEEP_PMICR 0x0000003000000000UL +#define IDLE_SLEEP_PMICR_MASK 0x0000003000000000UL -#define IDLE_FASTWINKLE_PMICR 0x0000000000200000 -#define IDLE_DEEPWINKLE_PMICR 0x0000000000300000 -#define IDLE_WINKLE_PMICR_MASK 0x0000000000300000 +#define IDLE_FASTWINKLE_PMICR 0x0000000000200000UL +#define IDLE_DEEPWINKLE_PMICR 0x0000000000300000UL +#define IDLE_WINKLE_PMICR_MASK 0x0000000000300000UL static struct cpu_idle_states power7_cpu_idle_states[] = { { /* nap */ |