Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[linux-2.6-microblaze.git] / include / linux / nodemask.h
index de1c50b..15cab39 100644 (file)
@@ -104,7 +104,9 @@ extern nodemask_t _unused_nodemask_arg_;
  *
  * Can be used to provide arguments for '%*pb[l]' when printing a nodemask.
  */
-#define nodemask_pr_args(maskp)                MAX_NUMNODES, (maskp)->bits
+#define nodemask_pr_args(maskp)                                \
+       ((maskp) != NULL) ? MAX_NUMNODES : 0,           \
+       ((maskp) != NULL) ? (maskp)->bits : NULL
 
 /*
  * The inline keyword gives the compiler room to decide to inline, or