]> Pileus Git - ~andy/linux/commitdiff
powerpc: Add some endian annotations to time and xics code
authorAnton Blanchard <anton@samba.org>
Tue, 6 Aug 2013 16:01:34 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 05:33:24 +0000 (15:33 +1000)
Fix a couple of sparse warnings.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/time.c
arch/powerpc/sysdev/xics/icp-native.c

index 65ab9e9093772e63d74e8c9b22ef00089718d6e8..c863aa1f524aea683a5deb6f91bfcde0fde983e8 100644 (file)
@@ -612,7 +612,7 @@ unsigned long long sched_clock(void)
 static int __init get_freq(char *name, int cells, unsigned long *val)
 {
        struct device_node *cpu;
-       const unsigned int *fp;
+       const __be32 *fp;
        int found = 0;
 
        /* The cpu node should have timebase and clock frequency properties */
index 7cd728b3b5e44129a7b49c0438454ed23e4f8aee..9dee47071af8a74bc61cf433da5366d8faef1d11 100644 (file)
@@ -216,7 +216,7 @@ static int __init icp_native_init_one_node(struct device_node *np,
                                           unsigned int *indx)
 {
        unsigned int ilen;
-       const u32 *ireg;
+       const __be32 *ireg;
        int i;
        int reg_tuple_size;
        int num_servers = 0;