Skip to contentSkip to conversation

msm: boards: Fix fallout from removal of machine_desc in fixup

PATCH In review Stephen Boyd 3 participants 4 messages Oct 25, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 msm: boards: Fix fallout from removal of machine_desc in fixup

After 0744a3ee (ARM: platform fixups: remove mdesc argument to fixup function, 2010-12-20) the fixup functions introduced in 9e775ad (ARM: 7012/1: Set proper TEXT_OFFSET for newer MSMs, 2011-08-12) cause warnings like:

arch/arm/mach-msm/board-msm8x60.c:85: warning: initialization from incompatible pointer type

Fix them by removing the machine_desc argument from the fixup functions.

---

I sent this a few weeks back. Looks like it was dropped though and now the merge window is open and Linus' tree fails to boot on these boards.

 arch/arm/mach-msm/board-msm7x30.c |    4 ++--
 arch/arm/mach-msm/board-msm8960.c |    4 ++--
 arch/arm/mach-msm/board-msm8x60.c |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-msm/board-msm7x30.c +2 -2
index d1e4cc8..7a0af9f 100644
@@ -43,8 +43,8 @@
 
 extern struct sys_timer msm_timer;
 
-static void __init msm7x30_fixup(struct machine_desc *desc, struct tag *tag,
-			 char **cmdline, struct meminfo *mi)
+static void __init msm7x30_fixup(struct tag *tag, char **cmdline,
+		struct meminfo *mi)
 {
 	for (; tag->hdr.size; tag = tag_next(tag))
 		if (tag->hdr.tag == ATAG_MEM && tag->u.mem.start == 0x200000) {
arch/arm/mach-msm/board-msm8960.c +2 -2
index b04468e..6dc1cbd 100644
@@ -32,8 +32,8 @@
 
 #include "devices.h"
 
-static void __init msm8960_fixup(struct machine_desc *desc, struct tag *tag,
-			 char **cmdline, struct meminfo *mi)
+static void __init msm8960_fixup(struct tag *tag, char **cmdline,
+		struct meminfo *mi)
 {
 	for (; tag->hdr.size; tag = tag_next(tag))
 		if (tag->hdr.tag == ATAG_MEM &&
arch/arm/mach-msm/board-msm8x60.c +2 -2
index 9221f54..056d9d7 100644
@@ -30,8 +30,8 @@
 #include <mach/board.h>
 #include <mach/msm_iomap.h>
 
-static void __init msm8x60_fixup(struct machine_desc *desc, struct tag *tag,
-			 char **cmdline, struct meminfo *mi)
+static void __init msm8x60_fixup(struct tag *tag, char **cmdline,
+		struct meminfo *mi)
 {
 	for (; tag->hdr.size; tag = tag_next(tag))
 		if (tag->hdr.tag == ATAG_MEM &&
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Acked-by on v2 1/1
#1 lore raw
Quoted 5 lines · Stephen Boyd

After 0744a3ee (ARM: platform fixups: remove mdesc argument to fixup function, 2010-12-20) the fixup functions introduced in 9e775ad (ARM: 7012/1: Set proper TEXT_OFFSET for newer MSMs, 2011-08-12) cause warnings like:

Quoted 7 lines

arch/arm/mach-msm/board-msm8x60.c:85: warning: initialization from incompatible pointer type

Fix them by removing the machine_desc argument from the fixup functions.

Yes, these got missed among the merges.

Russell, would you prefer this to go through your tracker, or for me to push this to Arnd?

Thanks,
David

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
#2 lore raw
Quoted 12 lines · David Brown
Quoted 11 lines · Stephen Boyd

After 0744a3ee (ARM: platform fixups: remove mdesc argument to fixup function, 2010-12-20) the fixup functions introduced in 9e775ad (ARM: 7012/1: Set proper TEXT_OFFSET for newer MSMs, 2011-08-12) cause warnings like:

arch/arm/mach-msm/board-msm8x60.c:85: warning: initialization from incompatible pointer type

Fix them by removing the machine_desc argument from the fixup functions.

Quoted 8 lines
Quoted 1 line

Yes, these got missed among the merges.

Russell, would you prefer this to go through your tracker, or for me to push this to Arnd?

Either is fine.

#3 lore raw
Quoted 15 lines · Russell King - ARM Linux
Quoted 14 lines · David Brown
Quoted 12 lines · Stephen Boyd

After 0744a3ee (ARM: platform fixups: remove mdesc argument to fixup function, 2010-12-20) the fixup functions introduced in 9e775ad (ARM: 7012/1: Set proper TEXT_OFFSET for newer MSMs, 2011-08-12) cause warnings like:

arch/arm/mach-msm/board-msm8x60.c:85: warning: initialization from incompatible pointer type

Fix them by removing the machine_desc argument from the fixup functions.

Quoted 8 lines
Quoted 6 lines

Yes, these got missed among the merges.

Russell, would you prefer this to go through your tracker, or for me to push this to Arnd?

Either is fine.

I can pull it, then, since it is entirely inside of MSM.

Thanks,
David

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.