Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: add missing include to mmu_context_mm.h

mmu_context_mm.h is using struct task_struct, which is defined in
linux/sched.h. Source files that include mm_context_mm.h
(directly or indirectly) and doesn't include linux/sched.h will generate
an error. An example of that is drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c

This patch adds an include of linux/sched.h to mmu_context_mm.h to avoid
such errors.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>

authored by

Oded Gabbay and committed by
Michal Simek
da25f490 0b07194b

+1
+1
arch/microblaze/include/asm/mmu_context_mm.h
··· 13 13 14 14 #include <linux/atomic.h> 15 15 #include <linux/mm_types.h> 16 + #include <linux/sched.h> 16 17 17 18 #include <asm/bitops.h> 18 19 #include <asm/mmu.h>