Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anton Blanchard and committed by
Benjamin Herrenschmidt
6f7aba7b 43f88120

+2 -2
+1 -1
arch/powerpc/kernel/time.c
··· 612 612 static int __init get_freq(char *name, int cells, unsigned long *val) 613 613 { 614 614 struct device_node *cpu; 615 - const unsigned int *fp; 615 + const __be32 *fp; 616 616 int found = 0; 617 617 618 618 /* The cpu node should have timebase and clock frequency properties */
+1 -1
arch/powerpc/sysdev/xics/icp-native.c
··· 216 216 unsigned int *indx) 217 217 { 218 218 unsigned int ilen; 219 - const u32 *ireg; 219 + const __be32 *ireg; 220 220 int i; 221 221 int reg_tuple_size; 222 222 int num_servers = 0;