Re: [PATCH] mm/init-mm.c: use CPU_BITS_NONE to initialize .cpu_bitmap

2019-08-22 Thread Mike Rapoport
Hi, On Thu, Aug 22, 2019 at 09:52:07AM +0200, Rasmus Villemoes wrote: > init_mm is sizeof(long) larger than it needs to be. Use the > CPU_BITS_NONE macro meant for this, which will initialize just the > indices 0...(BITS_TO_LONGS(NR_CPUS)-1) and hence make the array size > actually BITS_TO_LONGS(N

[PATCH] mm/init-mm.c: use CPU_BITS_NONE to initialize .cpu_bitmap

2019-08-22 Thread Rasmus Villemoes
init_mm is sizeof(long) larger than it needs to be. Use the CPU_BITS_NONE macro meant for this, which will initialize just the indices 0...(BITS_TO_LONGS(NR_CPUS)-1) and hence make the array size actually BITS_TO_LONGS(NR_CPUS). Signed-off-by: Rasmus Villemoes --- mm/init-mm.c | 2 +- 1 file cha