summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2016-05-18 11:16:52 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-06-16 22:40:19 +1000
commita9650e9bc53239c30c39f77d9d8541e84641298a (patch)
tree00b108bed7f2768dd26c3cf69933317d983b7788 /drivers/misc
parent665e87ffe1c400c525c3a4cd6fcb5db75972fadd (diff)
downloadop-kernel-dev-a9650e9bc53239c30c39f77d9d8541e84641298a.zip
op-kernel-dev-a9650e9bc53239c30c39f77d9d8541e84641298a.tar.gz
powerpc/align: Use #ifdef __BIG_ENDIAN__ #else for REG_BYTE
Sparse complains that it doesn't know what REG_BYTE is: arch/powerpc/kernel/align.c:313:29: error: undefined identifier 'REG_BYTE' REG_BYTE is defined differently based on whether we're compiling for LE, BE32 or BE64. Sparse apparently doesn't provide __BIG_ENDIAN__ or __LITTLE_ENDIAN__, which means we get no definition. Rather than check for __BIG_ENDIAN__ and then separately for __LITTLE_ENDIAN__, just switch the #ifdef to check for __BIG_ENDIAN__ and then #else we define the little endian version. Technically that's dicey because PDP_ENDIAN is also a possibility, but we already do it in a lot of places so one more hardly matters. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud