Re: [PATCH] memory-failure: fix section mismatch

2018-03-16 Thread Matthias Kaehlcke
El Sat, Mar 03, 2018 at 11:16:11PM -0800 Nick Desaulniers ha dit: > Clang complains when a variable is declared extern twice, but with two > different sections. num_poisoned_pages is marked extern and __read_mostly > in include/linux/swapops.h, but only extern in include/linux/mm.h. Some > c sourc

Re: [PATCH] memory-failure: fix section mismatch

2018-03-13 Thread Michal Hocko
On Sat 03-03-18 23:16:11, Nick Desaulniers wrote: > Clang complains when a variable is declared extern twice, but with two > different sections. num_poisoned_pages is marked extern and __read_mostly > in include/linux/swapops.h, but only extern in include/linux/mm.h. Some > c source files must incl

[PATCH] memory-failure: fix section mismatch

2018-03-03 Thread Nick Desaulniers
Clang complains when a variable is declared extern twice, but with two different sections. num_poisoned_pages is marked extern and __read_mostly in include/linux/swapops.h, but only extern in include/linux/mm.h. Some c source files must include both, and thus see the conflicting declarations. Sign