Re: [Nouveau] [PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables

2020-05-18 Thread Nathan Chancellor
On Wed, Apr 08, 2020 at 01:53:23PM -0700, Nathan Chancellor wrote: > When building with Clang + -Wtautological-compare and > CONFIG_CPUMASK_OFFSTACK unset: > > arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' > equal to a null pointer is alw

[Nouveau] [PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables

2020-04-24 Thread Nathan Chancellor
ommit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added cpumask_available to fix warnings of this nature. Use that here so that clang does not warn regardless of CONFIG_CPUMASK_OFFSTACK's value. Link: https://github.com/ClangBuiltLinux/linux/issues/982 Reported-by: Se