On 29.08.2022 13:00, Wei Chen wrote: >> -----Original Message----- >> From: Jan Beulich <jbeul...@suse.com> >> Sent: 2022年8月25日 21:06 >> >> Note that there's an alternative with less #ifdef-ary: >> >> config NR_NUMA_NODES >> int "Maximum number of NUMA nodes supported" if NUMA >> range 2 64 if NUMA >> default "1" if !NUMA >> default "64" >> >> But I can see reasons why one might deem it better for there to >> not be any CONFIG_NR_NUMA_NODES in the resulting .config when >> !NUMA. >> > > Is it because there are many places where alternative patches need to > be added for #ifndef CONFIG_NR_NUMA_NODES?
Well, yes - that's why I said "with less #ifdef-ary". As you may have noticed, excessive use of #ifdef easily makes code hard to read. Jan