]> asedeno.scripts.mit.edu Git - linux.git/commit
nds32: define __NDS32_E[BL]__ for sparse
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 28 May 2018 16:29:02 +0000 (18:29 +0200)
committerGreentime Hu <greentime@andestech.com>
Tue, 19 Jun 2018 07:41:18 +0000 (15:41 +0800)
commit97d1e3dc8d98f97b65350f8ab221e6d061705abc
treee4b8956a7b992858f8eea2e2386f5b76a2de36c6
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
nds32: define __NDS32_E[BL]__ for sparse

nds32 depends on the macros '__NDS32_E[BL]__' to correctly
select or define endian-specific macros, structures or pieces
of code.

These macros are predefined by the compiler but sparse knows nothing
about them and thus may pre-process files differently from what
GCC would.

Fix this by adding '-D__NDS32_E[BL]__' to CHECKFLAGS.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/Makefile