Re: [RFC PATCH] Use IS_ENABLED() instead of #ifdefs

2020-02-25 Thread Jason Yan
在 2020/2/26 13:04, Christophe Leroy 写道: --- This works for me. Only had to leave the #ifdef around the map_mem_in_cams() Also had to set linear_sz and ram for the alternative case, otherwise I get Great. Thank you for the illustration. Jason

[RFC PATCH] Use IS_ENABLED() instead of #ifdefs

2020-02-25 Thread Christophe Leroy
--- This works for me. Only had to leave the #ifdef around the map_mem_in_cams() Also had to set linear_sz and ram for the alternative case, otherwise I get arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': arch/powerpc/mm/nohash/kaslr_booke.c:355:33: error: 'linear_sz' may b