linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: add missing includes to header files
@ 2017-07-04 13:25 Johan Hovold
  2017-07-04 13:25 ` [PATCH 1/2] ARM: scu: add missing errno include Johan Hovold
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Johan Hovold @ 2017-07-04 13:25 UTC (permalink / raw)
  To: Russell King, Rafael J. Wysocki
  Cc: Pavel Machek, linux-arm-kernel, linux-kernel, linux-pm,
	Tony Lindgren, Dave Gerlach, linux-omap, Johan Hovold

Add two missing include directives to two header files to avoid
compile breakage when the required symbols have not already been
defined.

The missing SCU include broke compilation of the (not-yet-merged)
suspend support for am335x when !CONFIG_HAVE_ARM_SCU for example:

	https://lkml.kernel.org/r/20170704131441.GH27842@localhost

Johan


Johan Hovold (2):
  ARM: scu: add missing errno include
  ARM: pm: add missing types include

 arch/arm/include/asm/smp_scu.h | 1 +
 arch/arm/include/asm/suspend.h | 2 ++
 2 files changed, 3 insertions(+)

-- 
2.13.2

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

* [PATCH 1/2] ARM: scu: add missing errno include
  2017-07-04 13:25 [PATCH 0/2] ARM: add missing includes to header files Johan Hovold
@ 2017-07-04 13:25 ` Johan Hovold
  2017-07-04 13:25 ` [PATCH 2/2] ARM: pm: add missing types include Johan Hovold
  2017-07-06 15:16 ` [PATCH 0/2] ARM: add missing includes to header files Russell King - ARM Linux
  2 siblings, 0 replies; 6+ messages in thread
From: Johan Hovold @ 2017-07-04 13:25 UTC (permalink / raw)
  To: Russell King, Rafael J. Wysocki
  Cc: Pavel Machek, linux-arm-kernel, linux-kernel, linux-pm,
	Tony Lindgren, Dave Gerlach, linux-omap, Johan Hovold

Add missing errno include to make the header self-contained and avoid
compilation breakage when compiling shared code without
CONFIG_HAVE_ARM_SCU.

Signed-off-by: Johan Hovold <johan@kernel.org>
---
 arch/arm/include/asm/smp_scu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/include/asm/smp_scu.h b/arch/arm/include/asm/smp_scu.h
index bfe163c40024..5983f6bc62d5 100644
--- a/arch/arm/include/asm/smp_scu.h
+++ b/arch/arm/include/asm/smp_scu.h
@@ -7,6 +7,7 @@
 
 #ifndef __ASSEMBLER__
 
+#include <linux/errno.h>
 #include <asm/cputype.h>
 
 static inline bool scu_a9_has_base(void)
-- 
2.13.2

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

* [PATCH 2/2] ARM: pm: add missing types include
  2017-07-04 13:25 [PATCH 0/2] ARM: add missing includes to header files Johan Hovold
  2017-07-04 13:25 ` [PATCH 1/2] ARM: scu: add missing errno include Johan Hovold
@ 2017-07-04 13:25 ` Johan Hovold
  2017-07-05 16:01   ` Pavel Machek
  2017-07-06 15:16 ` [PATCH 0/2] ARM: add missing includes to header files Russell King - ARM Linux
  2 siblings, 1 reply; 6+ messages in thread
From: Johan Hovold @ 2017-07-04 13:25 UTC (permalink / raw)
  To: Russell King, Rafael J. Wysocki
  Cc: Pavel Machek, linux-arm-kernel, linux-kernel, linux-pm,
	Tony Lindgren, Dave Gerlach, linux-omap, Johan Hovold

Add missing types.h include to make the suspend header self-contained
and avoid compilation breakage due to include-directive ordering.

Signed-off-by: Johan Hovold <johan@kernel.org>
---
 arch/arm/include/asm/suspend.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/include/asm/suspend.h b/arch/arm/include/asm/suspend.h
index 6c7182f32cef..a61905c86732 100644
--- a/arch/arm/include/asm/suspend.h
+++ b/arch/arm/include/asm/suspend.h
@@ -1,6 +1,8 @@
 #ifndef __ASM_ARM_SUSPEND_H
 #define __ASM_ARM_SUSPEND_H
 
+#include <linux/types.h>
+
 struct sleep_save_sp {
 	u32 *save_ptr_stash;
 	u32 save_ptr_stash_phys;
-- 
2.13.2

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

* Re: [PATCH 2/2] ARM: pm: add missing types include
  2017-07-04 13:25 ` [PATCH 2/2] ARM: pm: add missing types include Johan Hovold
@ 2017-07-05 16:01   ` Pavel Machek
  0 siblings, 0 replies; 6+ messages in thread
From: Pavel Machek @ 2017-07-05 16:01 UTC (permalink / raw)
  To: Johan Hovold
  Cc: Russell King, Rafael J. Wysocki, linux-arm-kernel, linux-kernel,
	linux-pm, Tony Lindgren, Dave Gerlach, linux-omap

On Tue 2017-07-04 15:25:42, Johan Hovold wrote:
> Add missing types.h include to make the suspend header self-contained
> and avoid compilation breakage due to include-directive ordering.
> 
> Signed-off-by: Johan Hovold <johan@kernel.org>

Acked-by: Pavel Machek <pavel@ucw.cz>

> +++ b/arch/arm/include/asm/suspend.h
>  #define __ASM_ARM_SUSPEND_H
>  
> +#include <linux/types.h>
> +
>  struct sleep_save_sp {

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [PATCH 0/2] ARM: add missing includes to header files
  2017-07-04 13:25 [PATCH 0/2] ARM: add missing includes to header files Johan Hovold
  2017-07-04 13:25 ` [PATCH 1/2] ARM: scu: add missing errno include Johan Hovold
  2017-07-04 13:25 ` [PATCH 2/2] ARM: pm: add missing types include Johan Hovold
@ 2017-07-06 15:16 ` Russell King - ARM Linux
  2017-07-24 13:01   ` Johan Hovold
  2 siblings, 1 reply; 6+ messages in thread
From: Russell King - ARM Linux @ 2017-07-06 15:16 UTC (permalink / raw)
  To: Johan Hovold
  Cc: Rafael J. Wysocki, Dave Gerlach, Tony Lindgren, linux-pm,
	linux-kernel, Pavel Machek, linux-omap, linux-arm-kernel

On Tue, Jul 04, 2017 at 03:25:40PM +0200, Johan Hovold wrote:
> Add two missing include directives to two header files to avoid
> compile breakage when the required symbols have not already been
> defined.
> 
> The missing SCU include broke compilation of the (not-yet-merged)
> suspend support for am335x when !CONFIG_HAVE_ARM_SCU for example:
> 
> 	https://lkml.kernel.org/r/20170704131441.GH27842@localhost

These look reasonable, please send them to the patch system for merging
after this merge window, thanks.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

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

* Re: [PATCH 0/2] ARM: add missing includes to header files
  2017-07-06 15:16 ` [PATCH 0/2] ARM: add missing includes to header files Russell King - ARM Linux
@ 2017-07-24 13:01   ` Johan Hovold
  0 siblings, 0 replies; 6+ messages in thread
From: Johan Hovold @ 2017-07-24 13:01 UTC (permalink / raw)
  To: Russell King - ARM Linux
  Cc: Johan Hovold, Rafael J. Wysocki, Dave Gerlach, Tony Lindgren,
	linux-pm, linux-kernel, Pavel Machek, linux-omap,
	linux-arm-kernel

On Thu, Jul 06, 2017 at 04:16:07PM +0100, Russell King - ARM Linux wrote:
> On Tue, Jul 04, 2017 at 03:25:40PM +0200, Johan Hovold wrote:
> > Add two missing include directives to two header files to avoid
> > compile breakage when the required symbols have not already been
> > defined.
> > 
> > The missing SCU include broke compilation of the (not-yet-merged)
> > suspend support for am335x when !CONFIG_HAVE_ARM_SCU for example:
> > 
> > 	https://lkml.kernel.org/r/20170704131441.GH27842@localhost
> 
> These look reasonable, please send them to the patch system for merging
> after this merge window, thanks.

These two are now in your patch tracker (since a week).

Thanks,
Johan

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

end of thread, other threads:[~2017-07-24 13:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-04 13:25 [PATCH 0/2] ARM: add missing includes to header files Johan Hovold
2017-07-04 13:25 ` [PATCH 1/2] ARM: scu: add missing errno include Johan Hovold
2017-07-04 13:25 ` [PATCH 2/2] ARM: pm: add missing types include Johan Hovold
2017-07-05 16:01   ` Pavel Machek
2017-07-06 15:16 ` [PATCH 0/2] ARM: add missing includes to header files Russell King - ARM Linux
2017-07-24 13:01   ` Johan Hovold

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