Assignee: unassigned at gcc dot gnu.org
Reporter: mhocko at kernel dot org
Target Milestone: ---
Hi,
in the kernel we have a uggly^Wmacro to help printing numa mask defined as
follows
#define nodemask_pr_args(maskp) MAX_NUMNODES : (maskp)->bits
I have updated it to allow NULL maskp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82963
--- Comment #1 from Michal Hocko ---
Btw. the compiler doesn't complain if I rewrite the macro to do an explicit
NULL check
(maskp != NULL) ? MAX_NUMNODES : 0, (maskp != NULL) ? (maskp)->bits : NULL
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82963
--- Comment #3 from Michal Hocko ---
(In reply to Manuel López-Ibáñez from comment #2)
[...]
> > Moreover the warning itself is quite inconsistent. E.g. the following warns
> > about the explicit &m but not for n. So I believe this is more of a
>