Re: [PATCH] powerpc: remapping too much memory

2017-06-28 Thread Michael Ellerman
Dan Carpenter writes: > There is a cut and paste error here so we use "sizeof(struct mpc83xx_pmc)" > to remap the memory for "clock_regs". That sizeof() is 20 bytes and we > only need to remap 12 bytes. It presumably doesn't affect run time too > much... I don't know 83xx well, but I suspect m

[PATCH] powerpc: remapping too much memory

2017-06-28 Thread Dan Carpenter
There is a cut and paste error here so we use "sizeof(struct mpc83xx_pmc)" to remap the memory for "clock_regs". That sizeof() is 20 bytes and we only need to remap 12 bytes. It presumably doesn't affect run time too much... I changed them to both use "sizeof(*variable_name)" because that's the