Re: [PATCH v2] c6x: kernel: setup: Remove 'const' for local variables in machine_init

2015-03-26 Thread Mark Salter
On Wed, 2015-03-04 at 04:55 +0800, Chen Gang wrote: > early_init_dt_scan() accepts "void *", the related warning: > > CC arch/c6x/kernel/setup.o > arch/c6x/kernel/setup.c: In function 'machine_init': > arch/c6x/kernel/setup.c:290:21: warning: passing argument 1 of >

Re: [PATCH v2] c6x: kernel: setup: Remove 'const' for local variables in machine_init

2015-03-26 Thread Mark Salter
On Wed, 2015-03-04 at 04:55 +0800, Chen Gang wrote: early_init_dt_scan() accepts void *, the related warning: CC arch/c6x/kernel/setup.o arch/c6x/kernel/setup.c: In function 'machine_init': arch/c6x/kernel/setup.c:290:21: warning: passing argument 1 of 'early_init_dt_scan'

[PATCH v2] c6x: kernel: setup: Remove 'const' for local variables in machine_init

2015-03-03 Thread Chen Gang
early_init_dt_scan() accepts "void *", the related warning: CC arch/c6x/kernel/setup.o arch/c6x/kernel/setup.c: In function 'machine_init': arch/c6x/kernel/setup.c:290:21: warning: passing argument 1 of 'early_init_dt_scan' discards 'const' qualifier from pointer target type

[PATCH v2] c6x: kernel: setup: Remove 'const' for local variables in machine_init

2015-03-03 Thread Chen Gang
early_init_dt_scan() accepts void *, the related warning: CC arch/c6x/kernel/setup.o arch/c6x/kernel/setup.c: In function 'machine_init': arch/c6x/kernel/setup.c:290:21: warning: passing argument 1 of 'early_init_dt_scan' discards 'const' qualifier from pointer target type