OSDN Git Service

arm64: move TASK_* definitions to <asm/processor.h>
authorYury Norov <ynorov@caviumnetworks.com>
Thu, 31 Aug 2017 08:30:50 +0000 (11:30 +0300)
committerWill Deacon <will.deacon@arm.com>
Mon, 2 Oct 2017 09:13:04 +0000 (10:13 +0100)
commiteef94a3d09aab437c8c254de942d8b1aa76455e2
treeff3264e41adc8cc455599614795dba136ac891c8
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
arm64: move TASK_* definitions to <asm/processor.h>

ILP32 series [1] introduces the dependency on <asm/is_compat.h> for
TASK_SIZE macro. Which in turn requires <asm/thread_info.h>, and
<asm/thread_info.h> include <asm/memory.h>, giving a circular dependency,
because TASK_SIZE is currently located in <asm/memory.h>.

In other architectures, TASK_SIZE is defined in <asm/processor.h>, and
moving TASK_SIZE there fixes the problem.

Discussion: https://patchwork.kernel.org/patch/9929107/

[1] https://github.com/norov/linux/tree/ilp32-next

CC: Will Deacon <will.deacon@arm.com>
CC: Laura Abbott <labbott@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: James Morse <james.morse@arm.com>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/memory.h
arch/arm64/include/asm/processor.h
arch/arm64/kernel/entry.S