> In this case, why not define it as: > static char buf[20*NR_CPUS + 100];
Actually you should near never use NR_CPUS now but always num_possible_cpus() (or even num_online_cpus()) Using NR_CPUS can lead to extreme waste of memory on kernels which are compiled for 4096 CPUs for example.