powerpc: Fix definition of PCR bits to work with old binutils
authorAlistair Popple <alistair@popple.id.au>
Tue, 17 Sep 2019 00:46:04 +0000 (10:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Sep 2019 22:36:53 +0000 (08:36 +1000)
commitc6fadabb2868f817299ddb338ac15885e25d12d2
treecffd80ce9371eb127aaea012a3800c0ff202c88f
parent7aec584eaf1cc1a527dcbe7d80f2e44e3bfcfe1d
powerpc: Fix definition of PCR bits to work with old binutils

Commit 388cc6e133132 ("KVM: PPC: Book3S HV: Support POWER6
compatibility mode on POWER7") introduced new macros defining the PCR
bits. When used from assembly files these definitions lead to build
errors using older versions of binutils that don't support the 'ul'
suffix. This fixes the build errors by updating the definitions to use
the __MASK() macro which selects the appropriate suffix.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190917004605.22471-1-alistair@popple.id.au
arch/powerpc/include/asm/reg.h