]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: inst.h: Stop including asm.h to avoid various build failures
authorHuacai Chen <chenhc@lemote.com>
Fri, 8 May 2020 09:30:12 +0000 (17:30 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 8 May 2020 10:00:03 +0000 (12:00 +0200)
commit5c7035097a1d1fd840bde7edfe087c8b8ad27e39
tree2e7b652a17d1b077c661abaead836f16c7cffba3
parentf8d8141a6b4746c9f48b621368bc999d1fd84f28
MIPS: inst.h: Stop including asm.h to avoid various build failures

Commit 33fea91e6e85111 ("MIPS: Move unaligned load/store helpers to
inst.h") causes a lot of build failures because macros in asm.h conflict
with various subsystems. Some of these conflictions has been fixed (such
as LONG, PANIC and PRINT) by adjusting asm.h, but some of them is nearly
impossible to fix (such as PTR and END). The only reason of including
asm.h in inst.h is that we need the PTR macro which is used by unaligned
load/store helpers. So in this patch we define a new PTR_STR macro and
use it to replace STR(PTR), then we can stop including asm.h to avoid
various build failures.

Fixes: 33fea91e6e85111 ("MIPS: Move unaligned load/store helpers to inst.h")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/inst.h