linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] microblaze: add missing include to mmu_context_mm.h
@ 2017-10-26  8:43 Oded Gabbay
  2017-10-30 13:18 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Oded Gabbay @ 2017-10-26  8:43 UTC (permalink / raw)
  To: monstr; +Cc: linux-kernel

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] microblaze: add missing include to mmu_context_mm.h
  2017-10-26  8:43 [PATCH] microblaze: add missing include to mmu_context_mm.h Oded Gabbay
@ 2017-10-30 13:18 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2017-10-30 13:18 UTC (permalink / raw)
  To: Oded Gabbay; +Cc: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 1331 bytes --]

On 26.10.2017 10:43, Oded Gabbay wrote:
> 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>
> 

Applied to next.

Thanks,
Michal

-- 
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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-30 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26  8:43 [PATCH] microblaze: add missing include to mmu_context_mm.h Oded Gabbay
2017-10-30 13:18 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).