]> git.samba.org - sfrench/cifs-2.6.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)
commite701656ec4db60f560f7b790235fe94819837db3
tree2e7b652a17d1b077c661abaead836f16c7cffba3
parentda706e5034c34602e0fb199e5be712ab7bf2c028
MIPS: inst.h: Stop including asm.h to avoid various build failures

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