[PATCH] cpm_load_patch() - declartion conflict

From: Kamalesh Babulal
Date: Mon Nov 05 2007 - 05:50:57 EST


Hi,

The build fails with following error

CC arch/powerpc/sysdev/micropatch.o
arch/powerpc/sysdev/micropatch.c:625: error: conflicting types for âcpm_load_patchâ
include/asm/commproc.h:94: error: previous declaration of âcpm_load_patchâ was here
arch/powerpc/sysdev/micropatch.c: In function âcpm_load_patchâ:
arch/powerpc/sysdev/micropatch.c:630: warning: unused variable âsmpâ
arch/powerpc/sysdev/micropatch.c:629: warning: unused variable âsppâ
arch/powerpc/sysdev/micropatch.c:628: warning: unused variable âiipâ
make[1]: *** [arch/powerpc/sysdev/micropatch.o] Error 1
make: *** [arch/powerpc/sysdev] Error 2

The commit f2a0bd3753dad7ea4605ebd5435716b39e9f92bb defines the function
with void cpm_load_patch(cpm8xx_t *cp) prtotype and is declared as
extern void cpm_load_patch(volatile immap_t *immr) in the header file.

Signed-off-by: Kamalesh Babulal <kamalesh@xxxxxxxxxxxxxxxxxx>
--
diff --git a/include/asm-powerpc/commproc.h b/include/asm-powerpc/commproc.h
index 0307c84..a2328b8 100644
--- a/include/asm-powerpc/commproc.h
+++ b/include/asm-powerpc/commproc.h
@@ -91,7 +91,7 @@ extern uint m8xx_cpm_hostalloc(uint size);
extern int m8xx_cpm_hostfree(uint start);
extern void m8xx_cpm_hostdump(void);

-extern void cpm_load_patch(volatile immap_t *immr);
+extern void cpm_load_patch(cpm8xx_t *cp);

/* Buffer descriptors used by many of the CPM protocols.
*/


--
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/