Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1730067 > unrolled thread

[PATCH] sparc64: mmu_context: Add missing include files

Started byGuenter Roeck <linux@roeck-us.net>
First post2017-09-10 22:50 +0200
Last post2017-09-24 18:50 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] sparc64: mmu_context: Add missing include files Guenter Roeck <linux@roeck-us.net> - 2017-09-10 22:50 +0200
    Re: [PATCH] sparc64: mmu_context: Add missing include files Oded Gabbay <oded.gabbay@gmail.com> - 2017-09-24 12:20 +0200
      Re: [PATCH] sparc64: mmu_context: Add missing include files David Miller <davem@davemloft.net> - 2017-09-24 18:50 +0200

#1730067 — [PATCH] sparc64: mmu_context: Add missing include files

FromGuenter Roeck <linux@roeck-us.net>
Date2017-09-10 22:50 +0200
Subject[PATCH] sparc64: mmu_context: Add missing include files
Message-ID<uohl0-HY-13@gated-at.bofh.it>
Fix the following build errors.

In file included from arch/sparc/include/asm/mmu_context.h:4:0,
                 from include/linux/mmu_context.h:4,
		 from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29,
		 from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:
arch/sparc/include/asm/mmu_context_64.h:22:37: error:
	unknown type name 'per_cpu_secondary_mm'

arch/sparc/include/asm/mmu_context_64.h: In function 'switch_mm':
arch/sparc/include/asm/mmu_context_64.h:79:2: error:
	implicit declaration of function 'smp_processor_id'

Fixes: 70539bd79500 ("drm/amd: Update MEC HQD loading code for KFD")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
"Exposed-by:" instead of "Fixes:" might be more appropriate.

 arch/sparc/include/asm/mmu_context_64.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/sparc/include/asm/mmu_context_64.h b/arch/sparc/include/asm/mmu_context_64.h
index 87841d687f8d..a34315e1f0ed 100644
--- a/arch/sparc/include/asm/mmu_context_64.h
+++ b/arch/sparc/include/asm/mmu_context_64.h
@@ -7,9 +7,11 @@
 
 #include <linux/spinlock.h>
 #include <linux/mm_types.h>
+#include <linux/smp.h>
 
 #include <asm/spitfire.h>
 #include <asm-generic/mm_hooks.h>
+#include <asm/percpu.h>
 
 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
 {
-- 
2.7.4

[toc] | [next] | [standalone]


#1738128

FromOded Gabbay <oded.gabbay@gmail.com>
Date2017-09-24 12:20 +0200
Message-ID<utcaZ-7rK-5@gated-at.bofh.it>
In reply to#1730067
On Sun, Sep 10, 2017 at 11:44 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> Fix the following build errors.
>
> In file included from arch/sparc/include/asm/mmu_context.h:4:0,
>                  from include/linux/mmu_context.h:4,
>                  from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29,
>                  from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:
> arch/sparc/include/asm/mmu_context_64.h:22:37: error:
>         unknown type name 'per_cpu_secondary_mm'
>
> arch/sparc/include/asm/mmu_context_64.h: In function 'switch_mm':
> arch/sparc/include/asm/mmu_context_64.h:79:2: error:
>         implicit declaration of function 'smp_processor_id'
>
> Fixes: 70539bd79500 ("drm/amd: Update MEC HQD loading code for KFD")
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> "Exposed-by:" instead of "Fixes:" might be more appropriate.
>
>  arch/sparc/include/asm/mmu_context_64.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/sparc/include/asm/mmu_context_64.h b/arch/sparc/include/asm/mmu_context_64.h
> index 87841d687f8d..a34315e1f0ed 100644
> --- a/arch/sparc/include/asm/mmu_context_64.h
> +++ b/arch/sparc/include/asm/mmu_context_64.h
> @@ -7,9 +7,11 @@
>
>  #include <linux/spinlock.h>
>  #include <linux/mm_types.h>
> +#include <linux/smp.h>
>
>  #include <asm/spitfire.h>
>  #include <asm-generic/mm_hooks.h>
> +#include <asm/percpu.h>
>
>  static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
>  {
> --
> 2.7.4
>


This patch is:
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>


HI David,
Could you please pick-up this patch for -rc3/4 ?
We constantly get kbuild error reports due to this issue.

Thanks,
Oded

[toc] | [prev] | [next] | [standalone]


#1738226

FromDavid Miller <davem@davemloft.net>
Date2017-09-24 18:50 +0200
Message-ID<utigp-2CI-3@gated-at.bofh.it>
In reply to#1738128
From: Oded Gabbay <oded.gabbay@gmail.com>
Date: Sun, 24 Sep 2017 13:14:01 +0300

> Could you please pick-up this patch for -rc3/4 ?
> We constantly get kbuild error reports due to this issue.

I sure will.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web