[PATCH v3] powerpc/traps: Enhance readability for trap types

Segher Boessenkool segher at kernel.crashing.org
Sun Apr 11 02:46:11 AEST 2021


On Sat, Apr 10, 2021 at 11:42:41AM +0200, Christophe Leroy wrote:
> Le 10/04/2021 à 02:04, Michael Ellerman a écrit :
> >I think these can all be avoided by defining most of the values
> >regardless of what platform we're building for. Only the values that
> >overlap need to be kept behind an ifdef.
> 
> Even if values overlap we can keep multiple definitions for the same value.

That works, but it can lead to puzzling bugs.  Of course we all *like*
working on more challenging bugs, but :-)


Segher


More information about the Linuxppc-dev mailing list