Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f7aba7b authored by Anton Blanchard's avatar Anton Blanchard Committed by Benjamin Herrenschmidt
Browse files

powerpc: Add some endian annotations to time and xics code



Fix a couple of sparse warnings.

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 43f88120
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -612,7 +612,7 @@ unsigned long long sched_clock(void)
static int __init get_freq(char *name, int cells, unsigned long *val)
static int __init get_freq(char *name, int cells, unsigned long *val)
{
{
	struct device_node *cpu;
	struct device_node *cpu;
	const unsigned int *fp;
	const __be32 *fp;
	int found = 0;
	int found = 0;


	/* The cpu node should have timebase and clock frequency properties */
	/* The cpu node should have timebase and clock frequency properties */
+1 −1
Original line number Original line Diff line number Diff line
@@ -216,7 +216,7 @@ static int __init icp_native_init_one_node(struct device_node *np,
					   unsigned int *indx)
					   unsigned int *indx)
{
{
	unsigned int ilen;
	unsigned int ilen;
	const u32 *ireg;
	const __be32 *ireg;
	int i;
	int i;
	int reg_tuple_size;
	int reg_tuple_size;
	int num_servers = 0;
	int num_servers = 0;