lkml.org 
[lkml]   [2017]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] microblaze: add missing include to mmu_context_mm.h
Date
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>
---
arch/microblaze/include/asm/mmu_context_mm.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/microblaze/include/asm/mmu_context_mm.h b/arch/microblaze/include/asm/mmu_context_mm.h
index 99472d2ca340..97559fe0b953 100644
--- a/arch/microblaze/include/asm/mmu_context_mm.h
+++ b/arch/microblaze/include/asm/mmu_context_mm.h
@@ -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>
--
2.13.6
\
 
 \ /
  Last update: 2017-10-26 10:44    [W:0.029 / U:2.376 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site