Re: [PATCH] powerpc: make irq_chip const, __initdata and __initconst

2017-09-20 Thread Michael Ellerman
Julia Lawall writes: > On Wed, 20 Sep 2017, Michael Ellerman wrote: > >> Bhumika Goyal writes: >> >> > Make ehv_pic_irq_chip, mpic_ipi_chip and mpic_tm_chip const as they are >> > used only as a copy operation. This usage is during init, so make them >>

Re: [PATCH] powerpc: make irq_chip const, __initdata and __initconst

2017-09-20 Thread Julia Lawall
On Wed, 20 Sep 2017, Michael Ellerman wrote: > Bhumika Goyal writes: > > > Make ehv_pic_irq_chip, mpic_ipi_chip and mpic_tm_chip const as they are > > used only as a copy operation. This usage is during init, so make them > > __initconst too. > > Make mpic_ipi_chip

Re: [PATCH] powerpc: make irq_chip const, __initdata and __initconst

2017-09-20 Thread Michael Ellerman
Bhumika Goyal writes: > Make ehv_pic_irq_chip, mpic_ipi_chip and mpic_tm_chip const as they are > used only as a copy operation. This usage is during init, so make them > __initconst too. > Make mpic_ipi_chip __initdata as it is only modified during the init > phase and there

[PATCH] powerpc: make irq_chip const, __initdata and __initconst

2017-09-18 Thread Bhumika Goyal
Make ehv_pic_irq_chip, mpic_ipi_chip and mpic_tm_chip const as they are used only as a copy operation. This usage is during init, so make them __initconst too. Make mpic_ipi_chip __initdata as it is only modified during the init phase and there is no reference of it anywhere after init.