All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ARM:Gemini:Fix compiler warning due wrong data type.
@ 2015-05-11 16:13 ` Hans Ulli Kroll
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Ulli Kroll @ 2015-05-11 16:13 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Arnd Bergmann, linux-kernel, Hans Ulli Kroll

This patch fixes a compiler warning in gemini_restart()
issued by commit

7b6d864b48d95e6ea1df7df64475b9cb9616dcf9
reboot:arm: reboot_mode changes from char to enum reboot_mode.

Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
---
 arch/arm/mach-gemini/common.h | 4 +++-
 arch/arm/mach-gemini/reset.c  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-gemini/common.h b/arch/arm/mach-gemini/common.h
index 38a4526..dd88369 100644
--- a/arch/arm/mach-gemini/common.h
+++ b/arch/arm/mach-gemini/common.h
@@ -12,6 +12,8 @@
 #ifndef __GEMINI_COMMON_H__
 #define __GEMINI_COMMON_H__
 
+#include <linux/reboot.h>
+
 struct mtd_partition;
 
 extern void gemini_map_io(void);
@@ -26,6 +28,6 @@ extern int platform_register_pflash(unsigned int size,
 				    struct mtd_partition *parts,
 				    unsigned int nr_parts);
 
-extern void gemini_restart(char mode, const char *cmd);
+extern void gemini_restart(enum reboot_mode mode, const char *cmd);
 
 #endif /* __GEMINI_COMMON_H__ */
diff --git a/arch/arm/mach-gemini/reset.c b/arch/arm/mach-gemini/reset.c
index b266597..21a6d6d 100644
--- a/arch/arm/mach-gemini/reset.c
+++ b/arch/arm/mach-gemini/reset.c
@@ -14,7 +14,9 @@
 #include <mach/hardware.h>
 #include <mach/global_reg.h>
 
-void gemini_restart(char mode, const char *cmd)
+#include "common.h"
+
+void gemini_restart(enum reboot_mode mode, const char *cmd)
 {
 	__raw_writel(RESET_GLOBAL | RESET_CPU1,
 		     IO_ADDRESS(GEMINI_GLOBAL_BASE) + GLOBAL_RESET);
-- 
2.3.5


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

* [PATCH 1/1] ARM:Gemini:Fix compiler warning due wrong data type.
@ 2015-05-11 16:13 ` Hans Ulli Kroll
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Ulli Kroll @ 2015-05-11 16:13 UTC (permalink / raw)
  To: linux-arm-kernel

This patch fixes a compiler warning in gemini_restart()
issued by commit

7b6d864b48d95e6ea1df7df64475b9cb9616dcf9
reboot:arm: reboot_mode changes from char to enum reboot_mode.

Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
---
 arch/arm/mach-gemini/common.h | 4 +++-
 arch/arm/mach-gemini/reset.c  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-gemini/common.h b/arch/arm/mach-gemini/common.h
index 38a4526..dd88369 100644
--- a/arch/arm/mach-gemini/common.h
+++ b/arch/arm/mach-gemini/common.h
@@ -12,6 +12,8 @@
 #ifndef __GEMINI_COMMON_H__
 #define __GEMINI_COMMON_H__
 
+#include <linux/reboot.h>
+
 struct mtd_partition;
 
 extern void gemini_map_io(void);
@@ -26,6 +28,6 @@ extern int platform_register_pflash(unsigned int size,
 				    struct mtd_partition *parts,
 				    unsigned int nr_parts);
 
-extern void gemini_restart(char mode, const char *cmd);
+extern void gemini_restart(enum reboot_mode mode, const char *cmd);
 
 #endif /* __GEMINI_COMMON_H__ */
diff --git a/arch/arm/mach-gemini/reset.c b/arch/arm/mach-gemini/reset.c
index b266597..21a6d6d 100644
--- a/arch/arm/mach-gemini/reset.c
+++ b/arch/arm/mach-gemini/reset.c
@@ -14,7 +14,9 @@
 #include <mach/hardware.h>
 #include <mach/global_reg.h>
 
-void gemini_restart(char mode, const char *cmd)
+#include "common.h"
+
+void gemini_restart(enum reboot_mode mode, const char *cmd)
 {
 	__raw_writel(RESET_GLOBAL | RESET_CPU1,
 		     IO_ADDRESS(GEMINI_GLOBAL_BASE) + GLOBAL_RESET);
-- 
2.3.5

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

* Re: [PATCH 1/1] ARM:Gemini:Fix compiler warning due wrong data type.
  2015-05-11 16:13 ` Hans Ulli Kroll
@ 2015-05-12 14:46   ` Arnd Bergmann
  -1 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2015-05-12 14:46 UTC (permalink / raw)
  To: Hans Ulli Kroll; +Cc: linux-arm-kernel, linux-kernel

On Monday 11 May 2015 18:13:11 Hans Ulli Kroll wrote:
> This patch fixes a compiler warning in gemini_restart()
> issued by commit
> 
> 7b6d864b48d95e6ea1df7df64475b9cb9616dcf9
> reboot:arm: reboot_mode changes from char to enum reboot_mode.
> 
> Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>

Applied to the fixes branch, with a slightly updated commit message:

Author: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Date:   Mon May 11 18:13:11 2015 +0200

    ARM: gemini: fix compiler warning due wrong data type
    
    This patch fixes a compiler warning in gemini_restart()
    issued by commit 7b6d864b48d9 ("reboot:arm: reboot_mode
    changes from char to enum reboot_mode").
    
    arch/arm/mach-gemini/board-rut1xx.c:93:2: warning: initialization from incompatible pointer type
    
    The warning is harmless, and the patch does not need to
    be backported to stable kernels.
    
    Fixes: 7b6d864b48d ("reboot:arm: reboot_mode changes from char to enum reboot_mode.")
    Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Note the exact format of the subject line (with spaces after ':', and
the 'Fixes' tag at the Signed-off-by line.

	Arnd

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

* [PATCH 1/1] ARM:Gemini:Fix compiler warning due wrong data type.
@ 2015-05-12 14:46   ` Arnd Bergmann
  0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2015-05-12 14:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Monday 11 May 2015 18:13:11 Hans Ulli Kroll wrote:
> This patch fixes a compiler warning in gemini_restart()
> issued by commit
> 
> 7b6d864b48d95e6ea1df7df64475b9cb9616dcf9
> reboot:arm: reboot_mode changes from char to enum reboot_mode.
> 
> Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>

Applied to the fixes branch, with a slightly updated commit message:

Author: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Date:   Mon May 11 18:13:11 2015 +0200

    ARM: gemini: fix compiler warning due wrong data type
    
    This patch fixes a compiler warning in gemini_restart()
    issued by commit 7b6d864b48d9 ("reboot:arm: reboot_mode
    changes from char to enum reboot_mode").
    
    arch/arm/mach-gemini/board-rut1xx.c:93:2: warning: initialization from incompatible pointer type
    
    The warning is harmless, and the patch does not need to
    be backported to stable kernels.
    
    Fixes: 7b6d864b48d ("reboot:arm: reboot_mode changes from char to enum reboot_mode.")
    Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Note the exact format of the subject line (with spaces after ':', and
the 'Fixes' tag at the Signed-off-by line.

	Arnd

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

end of thread, other threads:[~2015-05-12 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11 16:13 [PATCH 1/1] ARM:Gemini:Fix compiler warning due wrong data type Hans Ulli Kroll
2015-05-11 16:13 ` Hans Ulli Kroll
2015-05-12 14:46 ` Arnd Bergmann
2015-05-12 14:46   ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.