linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM64 compilation fixes for missing header includes
@ 2015-01-06  1:51 Paul Walmsley
  2015-01-06  1:52 ` [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h Paul Walmsley
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06  1:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Will & Catalin,

An ARM64 build here on next-20150105 breaks due to some missing
header file includes.  Looks like someone reorganized some
headers - although I have not tracked down what the root cause
is.  These patches get the kernel building again.  They are based
on the arm64 fixes/core branch.

The patches are also available via git at this signed tag:

git://git.kernel.org/pub/scm/linux/kernel/git/pjw/tegra-pending tags/arm64-header-fixes-20150105


Compile-tested only.


- Paul

---

Paul Walmsley (4):
      arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h
      arm64: fix missing linux/bug.h include in asm/arch_timer.h
      arm64: fix missing asm/alternative.h include in kernel/module.c
      arm64: fix missing asm/io.h include in kernel/smp_spin_table.c


 arch/arm64/include/asm/arch_timer.h |    1 +
 arch/arm64/include/asm/processor.h  |    1 +
 arch/arm64/kernel/module.c          |    1 +
 arch/arm64/kernel/smp_spin_table.c  |    1 +
 4 files changed, 4 insertions(+)

arm64-header-file-fixes-v3.19-rc1
   text	   data	    bss	    dec	    hex	filename
7173728	 449984	 199064	7822776	 775db8	vmlinux
7173728	 449984	 199064	7822776	 775db8	vmlinux

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

* [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h
  2015-01-06  1:51 [PATCH 0/4] ARM64 compilation fixes for missing header includes Paul Walmsley
@ 2015-01-06  1:52 ` Paul Walmsley
  2015-01-06 10:37   ` Mark Rutland
  2015-01-06  1:52 ` [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h Paul Walmsley
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06  1:52 UTC (permalink / raw)
  To: linux-arm-kernel

On next-20150105, defconfig compilation breaks with:

./arch/arm64/include/asm/processor.h:47:32: error: ?PHYS_MASK? undeclared (first use in this function)

Fix by including asm/pgtable-hwdef.h, where PHYS_MASK is defined.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
---
 arch/arm64/include/asm/processor.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h
index 286b1bec547c..e271690753ff 100644
--- a/arch/arm64/include/asm/processor.h
+++ b/arch/arm64/include/asm/processor.h
@@ -33,6 +33,7 @@
 #include <asm/hw_breakpoint.h>
 #include <asm/ptrace.h>
 #include <asm/types.h>
+#include <asm/pgtable-hwdef.h>
 
 #ifdef __KERNEL__
 #define STACK_TOP_MAX		TASK_SIZE_64

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

* [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h
  2015-01-06  1:51 [PATCH 0/4] ARM64 compilation fixes for missing header includes Paul Walmsley
  2015-01-06  1:52 ` [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h Paul Walmsley
@ 2015-01-06  1:52 ` Paul Walmsley
  2015-01-06 10:27   ` Mark Rutland
  2015-01-06  1:52 ` [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c Paul Walmsley
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06  1:52 UTC (permalink / raw)
  To: linux-arm-kernel

On next-20150105, defconfig compilation breaks with:

./arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function ?BUG? [-Werror=implicit-function-declaration]

Fix by including linux/bug.h, where the BUG macro is defined.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
---
 arch/arm64/include/asm/arch_timer.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/include/asm/arch_timer.h b/arch/arm64/include/asm/arch_timer.h
index b1fa4e614718..779455564c9a 100644
--- a/arch/arm64/include/asm/arch_timer.h
+++ b/arch/arm64/include/asm/arch_timer.h
@@ -23,6 +23,7 @@
 
 #include <linux/init.h>
 #include <linux/types.h>
+#include <linux/bug.h>
 
 #include <clocksource/arm_arch_timer.h>
 

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

* [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c
  2015-01-06  1:51 [PATCH 0/4] ARM64 compilation fixes for missing header includes Paul Walmsley
  2015-01-06  1:52 ` [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h Paul Walmsley
  2015-01-06  1:52 ` [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h Paul Walmsley
@ 2015-01-06  1:52 ` Paul Walmsley
  2015-01-06 10:40   ` Mark Rutland
  2015-01-06  1:52 ` [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c Paul Walmsley
  2015-01-07 11:08 ` [PATCH 0/4] ARM64 compilation fixes for missing header includes Will Deacon
  4 siblings, 1 reply; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06  1:52 UTC (permalink / raw)
  To: linux-arm-kernel

On next-20150105, defconfig compilation breaks with:

arch/arm64/kernel/module.c:408:4: error: implicit declaration of function ?apply_alternatives? [-Werror=implicit-function-declaration]

Fix by including asm/alternative.h, where the apply_alternatives()
prototype is declared.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
---
 arch/arm64/kernel/module.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c
index fd027b101de5..ac081d6fe184 100644
--- a/arch/arm64/kernel/module.c
+++ b/arch/arm64/kernel/module.c
@@ -27,6 +27,7 @@
 #include <linux/vmalloc.h>
 #include <asm/insn.h>
 #include <asm/sections.h>
+#include <asm/alternative.h>
 
 #define	AARCH64_INSN_IMM_MOVNZ		AARCH64_INSN_IMM_MAX
 #define	AARCH64_INSN_IMM_MOVK		AARCH64_INSN_IMM_16

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

* [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c
  2015-01-06  1:51 [PATCH 0/4] ARM64 compilation fixes for missing header includes Paul Walmsley
                   ` (2 preceding siblings ...)
  2015-01-06  1:52 ` [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c Paul Walmsley
@ 2015-01-06  1:52 ` Paul Walmsley
  2015-01-06 10:34   ` Mark Rutland
  2015-01-07 11:08 ` [PATCH 0/4] ARM64 compilation fixes for missing header includes Will Deacon
  4 siblings, 1 reply; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06  1:52 UTC (permalink / raw)
  To: linux-arm-kernel

On next-20150105, defconfig compilation breaks with:

arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function ?ioremap_cache? [-Werror=implicit-function-declaration]
arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function ?writeq_relaxed? [-Werror=implicit-function-declaration]
arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function ?iounmap? [-Werror=implicit-function-declaration]

Fix by including asm/io.h, which contains definitions or prototypes
for these macros or functions.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
---
 arch/arm64/kernel/smp_spin_table.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/smp_spin_table.c b/arch/arm64/kernel/smp_spin_table.c
index 4f93c67e63de..4d9f10b9d869 100644
--- a/arch/arm64/kernel/smp_spin_table.c
+++ b/arch/arm64/kernel/smp_spin_table.c
@@ -26,6 +26,7 @@
 #include <asm/cpu_ops.h>
 #include <asm/cputype.h>
 #include <asm/smp_plat.h>
+#include <asm/io.h>
 
 extern void secondary_holding_pen(void);
 volatile unsigned long secondary_holding_pen_release = INVALID_HWID;

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

* [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h
  2015-01-06  1:52 ` [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h Paul Walmsley
@ 2015-01-06 10:27   ` Mark Rutland
  2015-01-06 20:30     ` Paul Walmsley
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2015-01-06 10:27 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Paul,

On Tue, Jan 06, 2015 at 01:52:15AM +0000, Paul Walmsley wrote:
> On next-20150105, defconfig compilation breaks with:
> 
> ./arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function ?BUG? [-Werror=implicit-function-declaration]
> 
> Fix by including linux/bug.h, where the BUG macro is defined.
> 
> Signed-off-by: Paul Walmsley <paul@pwsan.com>
> Cc: Paul Walmsley <pwalmsley@nvidia.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> ---
>  arch/arm64/include/asm/arch_timer.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/include/asm/arch_timer.h b/arch/arm64/include/asm/arch_timer.h
> index b1fa4e614718..779455564c9a 100644
> --- a/arch/arm64/include/asm/arch_timer.h
> +++ b/arch/arm64/include/asm/arch_timer.h
> @@ -23,6 +23,7 @@
>  
>  #include <linux/init.h>
>  #include <linux/types.h>
> +#include <linux/bug.h>

Nit: could you move this above the include of linux/init.h so as to keep
these in alphabetical order?

Otherwise:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Thanks,
Mark.

>  
>  #include <clocksource/arm_arch_timer.h>
>  
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c
  2015-01-06  1:52 ` [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c Paul Walmsley
@ 2015-01-06 10:34   ` Mark Rutland
  2015-01-06 20:32     ` Paul Walmsley
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2015-01-06 10:34 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Paul,

On Tue, Jan 06, 2015 at 01:52:26AM +0000, Paul Walmsley wrote:
> On next-20150105, defconfig compilation breaks with:
> 
> arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function ?ioremap_cache? [-Werror=implicit-function-declaration]
> arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function ?writeq_relaxed? [-Werror=implicit-function-declaration]
> arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function ?iounmap? [-Werror=implicit-function-declaration]
> 
> Fix by including asm/io.h, which contains definitions or prototypes
> for these macros or functions.
> 
> Signed-off-by: Paul Walmsley <paul@pwsan.com>
> Cc: Paul Walmsley <pwalmsley@nvidia.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> ---
>  arch/arm64/kernel/smp_spin_table.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/kernel/smp_spin_table.c b/arch/arm64/kernel/smp_spin_table.c
> index 4f93c67e63de..4d9f10b9d869 100644
> --- a/arch/arm64/kernel/smp_spin_table.c
> +++ b/arch/arm64/kernel/smp_spin_table.c
> @@ -26,6 +26,7 @@
>  #include <asm/cpu_ops.h>
>  #include <asm/cputype.h>
>  #include <asm/smp_plat.h>
> +#include <asm/io.h>

Nit: please move between the include of asm/cputype and asm/smp_plat.h,
so as to keep the list in alphabetical order.

Otherwise:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Thanks,
Mark.

>  
>  extern void secondary_holding_pen(void);
>  volatile unsigned long secondary_holding_pen_release = INVALID_HWID;
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h
  2015-01-06  1:52 ` [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h Paul Walmsley
@ 2015-01-06 10:37   ` Mark Rutland
  2015-01-06 20:34     ` Paul Walmsley
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2015-01-06 10:37 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 06, 2015 at 01:52:10AM +0000, Paul Walmsley wrote:
> On next-20150105, defconfig compilation breaks with:
> 
> ./arch/arm64/include/asm/processor.h:47:32: error: ?PHYS_MASK? undeclared (first use in this function)
> 
> Fix by including asm/pgtable-hwdef.h, where PHYS_MASK is defined.
> 
> Signed-off-by: Paul Walmsley <paul@pwsan.com>
> Cc: Paul Walmsley <pwalmsley@nvidia.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> ---
>  arch/arm64/include/asm/processor.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h
> index 286b1bec547c..e271690753ff 100644
> --- a/arch/arm64/include/asm/processor.h
> +++ b/arch/arm64/include/asm/processor.h
> @@ -33,6 +33,7 @@
>  #include <asm/hw_breakpoint.h>
>  #include <asm/ptrace.h>
>  #include <asm/types.h>
> +#include <asm/pgtable-hwdef.h>

If you can move this above the include of asm/ptrace.h,

Acked-by: Mark Rutland <mark.rutland@arm.com>

Thanks,
Mark.

>  
>  #ifdef __KERNEL__
>  #define STACK_TOP_MAX		TASK_SIZE_64
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c
  2015-01-06  1:52 ` [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c Paul Walmsley
@ 2015-01-06 10:40   ` Mark Rutland
  2015-01-06 20:36     ` Paul Walmsley
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2015-01-06 10:40 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 06, 2015 at 01:52:20AM +0000, Paul Walmsley wrote:
> On next-20150105, defconfig compilation breaks with:
> 
> arch/arm64/kernel/module.c:408:4: error: implicit declaration of function ?apply_alternatives? [-Werror=implicit-function-declaration]
> 
> Fix by including asm/alternative.h, where the apply_alternatives()
> prototype is declared.
> 
> Signed-off-by: Paul Walmsley <paul@pwsan.com>
> Cc: Paul Walmsley <pwalmsley@nvidia.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> ---
>  arch/arm64/kernel/module.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c
> index fd027b101de5..ac081d6fe184 100644
> --- a/arch/arm64/kernel/module.c
> +++ b/arch/arm64/kernel/module.c
> @@ -27,6 +27,7 @@
>  #include <linux/vmalloc.h>
>  #include <asm/insn.h>
>  #include <asm/sections.h>
> +#include <asm/alternative.h>

If this can move above the include of asm/insn.h:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Thanks,
Mark.

>  
>  #define	AARCH64_INSN_IMM_MOVNZ		AARCH64_INSN_IMM_MAX
>  #define	AARCH64_INSN_IMM_MOVK		AARCH64_INSN_IMM_16
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h
  2015-01-06 10:27   ` Mark Rutland
@ 2015-01-06 20:30     ` Paul Walmsley
  0 siblings, 0 replies; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06 20:30 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Mark,

On Tue, 6 Jan 2015, Mark Rutland wrote:

> Nit: could you move this above the include of linux/init.h so as to keep
> these in alphabetical order?

Done.  Updated patch below.  Thanks for the review,


- Paul

From: Paul Walmsley <pwalmsley@nvidia.com>
Date: Mon, 5 Jan 2015 17:38:41 -0700
Subject: [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h

On next-20150105, defconfig compilation breaks with:

./arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function ?BUG? [-Werror=implicit-function-declaration]

Fix by including linux/bug.h, where the BUG macro is defined.

This second version incorporates a comment from Mark Rutland
<mark.rutland@arm.com> to keep the includes in alphabetical order
by filename.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm64/include/asm/arch_timer.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/include/asm/arch_timer.h b/arch/arm64/include/asm/arch_timer.h
index b1fa4e614718..fbe0ca31a99c 100644
--- a/arch/arm64/include/asm/arch_timer.h
+++ b/arch/arm64/include/asm/arch_timer.h
@@ -21,6 +21,7 @@
 
 #include <asm/barrier.h>
 
+#include <linux/bug.h>
 #include <linux/init.h>
 #include <linux/types.h>
 
-- 
2.1.4

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

* [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c
  2015-01-06 10:34   ` Mark Rutland
@ 2015-01-06 20:32     ` Paul Walmsley
  0 siblings, 0 replies; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06 20:32 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Mark,

On Tue, 6 Jan 2015, Mark Rutland wrote:

> Nit: please move between the include of asm/cputype and asm/smp_plat.h,
> so as to keep the list in alphabetical order.

Done.  Updated patch below.  Thanks for the review,


- Paul


From: Paul Walmsley <pwalmsley@nvidia.com>
Date: Mon, 5 Jan 2015 17:38:42 -0700
Subject: [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c

On next-20150105, defconfig compilation breaks with:

arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function ?ioremap_cache? [-Werror=implicit-function-declaration]
arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function ?writeq_relaxed? [-Werror=implicit-function-declaration]
arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function ?iounmap? [-Werror=implicit-function-declaration]

Fix by including asm/io.h, which contains definitions or prototypes
for these macros or functions.

This second version incorporates a comment from Mark Rutland
<mark.rutland@arm.com> to keep the includes in alphabetical order
by filename.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm64/kernel/smp_spin_table.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/smp_spin_table.c b/arch/arm64/kernel/smp_spin_table.c
index 4f93c67e63de..14944e5b28da 100644
--- a/arch/arm64/kernel/smp_spin_table.c
+++ b/arch/arm64/kernel/smp_spin_table.c
@@ -25,6 +25,7 @@
 #include <asm/cacheflush.h>
 #include <asm/cpu_ops.h>
 #include <asm/cputype.h>
+#include <asm/io.h>
 #include <asm/smp_plat.h>
 
 extern void secondary_holding_pen(void);
-- 
2.1.4

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

* [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h
  2015-01-06 10:37   ` Mark Rutland
@ 2015-01-06 20:34     ` Paul Walmsley
  0 siblings, 0 replies; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06 20:34 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Mark,

On Tue, 6 Jan 2015, Mark Rutland wrote:

> If you can move this above the include of asm/ptrace.h,

Done; updated patch below.  Thanks for the review,


- Paul

From: Paul Walmsley <pwalmsley@nvidia.com>
Date: Mon, 5 Jan 2015 17:38:41 -0700
Subject: [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h

On next-20150105, defconfig compilation breaks with:

./arch/arm64/include/asm/processor.h:47:32: error: ?PHYS_MASK? undeclared (first use in this function)

Fix by including asm/pgtable-hwdef.h, where PHYS_MASK is defined.

This second version incorporates a comment from Mark Rutland
<mark.rutland@arm.com> to keep the includes in alphabetical order
by filename.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm64/include/asm/processor.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h
index 286b1bec547c..d646241a78f6 100644
--- a/arch/arm64/include/asm/processor.h
+++ b/arch/arm64/include/asm/processor.h
@@ -31,6 +31,7 @@
 
 #include <asm/fpsimd.h>
 #include <asm/hw_breakpoint.h>
+#include <asm/pgtable-hwdef.h>
 #include <asm/ptrace.h>
 #include <asm/types.h>
 
-- 
2.1.4

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

* [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c
  2015-01-06 10:40   ` Mark Rutland
@ 2015-01-06 20:36     ` Paul Walmsley
  0 siblings, 0 replies; 14+ messages in thread
From: Paul Walmsley @ 2015-01-06 20:36 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Mark,

On Tue, 6 Jan 2015, Mark Rutland wrote:

> If this can move above the include of asm/insn.h:

Done; updated patch below.  

cheers,

- Paul


From: Paul Walmsley <pwalmsley@nvidia.com>
Date: Mon, 5 Jan 2015 17:38:41 -0700
Subject: [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c

On next-20150105, defconfig compilation breaks with:

arch/arm64/kernel/module.c:408:4: error: implicit declaration of function ?apply_alternatives? [-Werror=implicit-function-declaration]

Fix by including asm/alternative.h, where the apply_alternatives()
prototype is declared.

This second version incorporates a comment from Mark Rutland
<mark.rutland@arm.com> to keep the includes in alphabetical order
by filename.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm64/kernel/module.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c
index fd027b101de5..9b6f71db2709 100644
--- a/arch/arm64/kernel/module.c
+++ b/arch/arm64/kernel/module.c
@@ -25,6 +25,7 @@
 #include <linux/mm.h>
 #include <linux/moduleloader.h>
 #include <linux/vmalloc.h>
+#include <asm/alternative.h>
 #include <asm/insn.h>
 #include <asm/sections.h>
 
-- 
2.1.4

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

* [PATCH 0/4] ARM64 compilation fixes for missing header includes
  2015-01-06  1:51 [PATCH 0/4] ARM64 compilation fixes for missing header includes Paul Walmsley
                   ` (3 preceding siblings ...)
  2015-01-06  1:52 ` [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c Paul Walmsley
@ 2015-01-07 11:08 ` Will Deacon
  4 siblings, 0 replies; 14+ messages in thread
From: Will Deacon @ 2015-01-07 11:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 06, 2015 at 01:51:56AM +0000, Paul Walmsley wrote:
> Hi Will & Catalin,
> 
> An ARM64 build here on next-20150105 breaks due to some missing
> header file includes.  Looks like someone reorganized some
> headers - although I have not tracked down what the root cause
> is.  These patches get the kernel building again.  They are based
> on the arm64 fixes/core branch.

Thanks Paul. Whilst the breakage appears in -next, I'll queue these for 3.19
as they are straight-forward fixes.

Will

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

end of thread, other threads:[~2015-01-07 11:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-06  1:51 [PATCH 0/4] ARM64 compilation fixes for missing header includes Paul Walmsley
2015-01-06  1:52 ` [PATCH 1/4] arm64: fix missing asm/pgtable-hwdef.h include in asm/processor.h Paul Walmsley
2015-01-06 10:37   ` Mark Rutland
2015-01-06 20:34     ` Paul Walmsley
2015-01-06  1:52 ` [PATCH 2/4] arm64: fix missing linux/bug.h include in asm/arch_timer.h Paul Walmsley
2015-01-06 10:27   ` Mark Rutland
2015-01-06 20:30     ` Paul Walmsley
2015-01-06  1:52 ` [PATCH 3/4] arm64: fix missing asm/alternative.h include in kernel/module.c Paul Walmsley
2015-01-06 10:40   ` Mark Rutland
2015-01-06 20:36     ` Paul Walmsley
2015-01-06  1:52 ` [PATCH 4/4] arm64: fix missing asm/io.h include in kernel/smp_spin_table.c Paul Walmsley
2015-01-06 10:34   ` Mark Rutland
2015-01-06 20:32     ` Paul Walmsley
2015-01-07 11:08 ` [PATCH 0/4] ARM64 compilation fixes for missing header includes Will Deacon

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