summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-08-06 18:01:34 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 07:33:24 +0200
commit6f7aba7bb4bd09824992cda7f77d4e8b1704a04c (patch)
tree5a2533ce2f0999cabdfcb684a316f0745f72b61c /arch
parentpowerpc: More little endian fixes for setup-common.c (diff)
downloadlinux-6f7aba7bb4bd09824992cda7f77d4e8b1704a04c.tar.xz
linux-6f7aba7bb4bd09824992cda7f77d4e8b1704a04c.zip
powerpc: Add some endian annotations to time and xics code
Fix a couple of sparse warnings. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/time.c2
-rw-r--r--arch/powerpc/sysdev/xics/icp-native.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 65ab9e909377..c863aa1f524a 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -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 */
diff --git a/arch/powerpc/sysdev/xics/icp-native.c b/arch/powerpc/sysdev/xics/icp-native.c
index 7cd728b3b5e4..9dee47071af8 100644
--- a/arch/powerpc/sysdev/xics/icp-native.c
+++ b/arch/powerpc/sysdev/xics/icp-native.c
@@ -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;