KVM: PPC: Book3S HV: Fix constant size warning
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 7 Jul 2018 09:07:25 +0000 (11:07 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 18 Jul 2018 05:14:45 +0000 (15:14 +1000)
The constants are 64bit but not explicitly declared UL resulting
in sparse warnings. Fix this by declaring the constants UL.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/reg.h
arch/powerpc/kvm/book3s_hv.c

index 562568414cf42ace1e40a012ced84d17abff7295..858aa7984ab0c8c4b422018b08a1d1f3c7c52049 100644 (file)
 #define PSSCR_ESL              0x00200000 /* Enable State Loss */
 #define PSSCR_SD               0x00400000 /* Status Disable */
 #define PSSCR_PLS      0xf000000000000000 /* Power-saving Level Status */
-#define PSSCR_GUEST_VIS        0xf0000000000003ff /* Guest-visible PSSCR fields */
+#define PSSCR_GUEST_VIS        0xf0000000000003ffUL /* Guest-visible PSSCR fields */
 #define PSSCR_FAKE_SUSPEND     0x00000400 /* Fake-suspend bit (P9 DD2.2) */
 #define PSSCR_FAKE_SUSPEND_LG  10         /* Fake-suspend bit position */
 
index fba21c91b2ffd5a9c9754c900db6c295d5a058dd..d73b29b6aaa139dcd7d34b8be3a73b1f8a7eeea8 100644 (file)
@@ -128,14 +128,14 @@ static int kvmppc_hv_setup_htab_rma(struct kvm_vcpu *vcpu);
  * and SPURR count and should be set according to the number of
  * online threads in the vcore being run.
  */
-#define RWMR_RPA_P8_1THREAD    0x164520C62609AECA
-#define RWMR_RPA_P8_2THREAD    0x7FFF2908450D8DA9
-#define RWMR_RPA_P8_3THREAD    0x164520C62609AECA
-#define RWMR_RPA_P8_4THREAD    0x199A421245058DA9
-#define RWMR_RPA_P8_5THREAD    0x164520C62609AECA
-#define RWMR_RPA_P8_6THREAD    0x164520C62609AECA
-#define RWMR_RPA_P8_7THREAD    0x164520C62609AECA
-#define RWMR_RPA_P8_8THREAD    0x164520C62609AECA
+#define RWMR_RPA_P8_1THREAD    0x164520C62609AECAUL
+#define RWMR_RPA_P8_2THREAD    0x7FFF2908450D8DA9UL
+#define RWMR_RPA_P8_3THREAD    0x164520C62609AECAUL
+#define RWMR_RPA_P8_4THREAD    0x199A421245058DA9UL
+#define RWMR_RPA_P8_5THREAD    0x164520C62609AECAUL
+#define RWMR_RPA_P8_6THREAD    0x164520C62609AECAUL
+#define RWMR_RPA_P8_7THREAD    0x164520C62609AECAUL
+#define RWMR_RPA_P8_8THREAD    0x164520C62609AECAUL
 
 static unsigned long p8_rwmr_values[MAX_SMT_THREADS + 1] = {
        RWMR_RPA_P8_1THREAD,