]> 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)
commit89ae315b306f4b03e82a16d0482aeba1061e8f89
tree2e7b652a17d1b077c661abaead836f16c7cffba3
parent90b6b5cb2c83ab48f40566b6d2fae1d0d0025978
MIPS: inst.h: Stop including asm.h to avoid various build failures

Commit 2af2c4ae1ec08f9 ("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: 2af2c4ae1ec08f9 ("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