#ifdef CONFIG_PPC_PSERIES
 
+#define LPPACA_SIZE 0x400
+
 /*
  * See asm/lppaca.h for more detail.
  *
 
        *lppaca = (struct lppaca) {
                .desc = cpu_to_be32(0xd397d781),        /* "LpPa" */
-               .size = cpu_to_be16(0x400),
+               .size = cpu_to_be16(LPPACA_SIZE),
                .fpregs_in_use = 1,
                .slb_count = cpu_to_be16(64),
                .vmxregs_in_use = 0,
 static struct lppaca * __init new_lppaca(int cpu, unsigned long limit)
 {
        struct lppaca *lp;
-       size_t size = 0x400;
 
-       BUILD_BUG_ON(size < sizeof(struct lppaca));
+       BUILD_BUG_ON(sizeof(struct lppaca) > LPPACA_SIZE);
 
        if (early_cpu_has_feature(CPU_FTR_HVMODE))
                return NULL;
 
-       lp = alloc_paca_data(size, 0x400, limit, cpu);
+       lp = alloc_paca_data(LPPACA_SIZE, 0x400, limit, cpu);
        init_lppaca(lp);
 
        return lp;
 }
-#endif /* CONFIG_PPC_BOOK3S */
+#endif /* CONFIG_PPC_PSERIES */
 
 #ifdef CONFIG_PPC_BOOK3S_64