microblaze: add missing include to mmu_context_mm.h
PATCH 1/1 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.
--- arch/microblaze/include/asm/mmu_context_mm.h | 1 + 1 file changed, 1 insertion(+)
arch/microblaze/include/asm/mmu_context_mm.h +1 -0
@@ -13,6 +13,7 @@#include <linux/atomic.h> #include <linux/mm_types.h> +#include <linux/sched.h> #include <asm/bitops.h> #include <asm/mmu.h>
Signature · 1 line
2.13.6
Quoted 19 lines · Oded Gabbay
mmu_context_mm.his using structtask_struct, which is defined inlinux/sched.h. Source files that includemm_context_mm.h(directly or indirectly) and doesn't includelinux/sched.hwill generate an error. An example of that isdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.cThis patch adds an include of
linux/sched.htommu_context_mm.hto avoid such errors.Signed-off-by Oded Gabbay <[email protected]>--- arch/microblaze/include/asm/mmu_context_mm.h | 1 + 1 file changed, 1 insertion(+)arch/microblaze/include/asm/mmu_context_mm.h +0
-0
arch/microblaze/include/asm/mmu_context_mm.h line 19
Quoted 7 lines
arch/microblaze/include/asm/mmu_context_mm.h +1
-0@@ -13,6 +13,7 @@#include <linux/atomic.h> #include <linux/mm_types.h> +#include <linux/sched.h> #include <asm/bitops.h> #include <asm/mmu.h>
Applied to next.
Thanks,
Michal
Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs