aboutsummaryrefslogtreecommitdiff
path: root/hw/slw.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 09:09:04 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 09:09:04 +1100
commitc04a6b7261e8b56f744f39010168507704edfc65 (patch)
tree4538c88eddad1cdff9b248ae72fd070f8c663341 /hw/slw.c
parentee407ac983f13ca43022f6695a6e2b0417475333 (diff)
downloadskiboot-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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/slw.c b/hw/slw.c
index 710d16b..e1b4368 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -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 */