Re: [PATCH] powerpc/64s: Fix possible corruption on big endian due to pgd/pud_present()
From: Andreas Schwab
Date: Sat Feb 16 2019 - 08:15:33 EST
On Feb 14 2019, Michael Ellerman <mpe@xxxxxxxxxxxxxx> wrote:
> The fix is simple, we need to convert the result of the bitwise && to
> an int before returning it.
Alternatively, the return type could be changed to bool, so that the
compiler does the right thing by itself.
Andreas.
--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."