The patch titled nozomi: use NULL for pointers has been removed from the -mm tree. Its filename was nozomi-use-null-for-pointers.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: nozomi: use NULL for pointers From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Use NULL instead of 0 for pointers: drivers/char/nozomi.c:1028:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1029:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1031:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1032:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1034:70: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1035:70: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1037:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1039:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1040:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1042:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1043:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1045:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1046:68: warning: Using plain integer as NULL pointer drivers/char/nozomi.c:1048:64: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/nozomi.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff -puN drivers/char/nozomi.c~nozomi-use-null-for-pointers drivers/char/nozomi.c --- a/drivers/char/nozomi.c~nozomi-use-null-for-pointers +++ a/drivers/char/nozomi.c @@ -1025,27 +1025,27 @@ static char *interrupt2str(u16 interrupt static char buf[TMP_BUF_MAX]; char *p = buf; - interrupt & MDM_DL1 ? p += snprintf(p, TMP_BUF_MAX, "MDM_DL1 ") : 0; - interrupt & MDM_DL2 ? p += snprintf(p, TMP_BUF_MAX, "MDM_DL2 ") : 0; + interrupt & MDM_DL1 ? p += snprintf(p, TMP_BUF_MAX, "MDM_DL1 ") : NULL; + interrupt & MDM_DL2 ? p += snprintf(p, TMP_BUF_MAX, "MDM_DL2 ") : NULL; - interrupt & MDM_UL1 ? p += snprintf(p, TMP_BUF_MAX, "MDM_UL1 ") : 0; - interrupt & MDM_UL2 ? p += snprintf(p, TMP_BUF_MAX, "MDM_UL2 ") : 0; + interrupt & MDM_UL1 ? p += snprintf(p, TMP_BUF_MAX, "MDM_UL1 ") : NULL; + interrupt & MDM_UL2 ? p += snprintf(p, TMP_BUF_MAX, "MDM_UL2 ") : NULL; - interrupt & DIAG_DL1 ? p += snprintf(p, TMP_BUF_MAX, "DIAG_DL1 ") : 0; - interrupt & DIAG_DL2 ? p += snprintf(p, TMP_BUF_MAX, "DIAG_DL2 ") : 0; + interrupt & DIAG_DL1 ? p += snprintf(p, TMP_BUF_MAX, "DIAG_DL1 ") : NULL; + interrupt & DIAG_DL2 ? p += snprintf(p, TMP_BUF_MAX, "DIAG_DL2 ") : NULL; - interrupt & DIAG_UL ? p += snprintf(p, TMP_BUF_MAX, "DIAG_UL ") : 0; + interrupt & DIAG_UL ? p += snprintf(p, TMP_BUF_MAX, "DIAG_UL ") : NULL; - interrupt & APP1_DL ? p += snprintf(p, TMP_BUF_MAX, "APP1_DL ") : 0; - interrupt & APP2_DL ? p += snprintf(p, TMP_BUF_MAX, "APP2_DL ") : 0; + interrupt & APP1_DL ? p += snprintf(p, TMP_BUF_MAX, "APP1_DL ") : NULL; + interrupt & APP2_DL ? p += snprintf(p, TMP_BUF_MAX, "APP2_DL ") : NULL; - interrupt & APP1_UL ? p += snprintf(p, TMP_BUF_MAX, "APP1_UL ") : 0; - interrupt & APP2_UL ? p += snprintf(p, TMP_BUF_MAX, "APP2_UL ") : 0; + interrupt & APP1_UL ? p += snprintf(p, TMP_BUF_MAX, "APP1_UL ") : NULL; + interrupt & APP2_UL ? p += snprintf(p, TMP_BUF_MAX, "APP2_UL ") : NULL; - interrupt & CTRL_DL ? p += snprintf(p, TMP_BUF_MAX, "CTRL_DL ") : 0; - interrupt & CTRL_UL ? p += snprintf(p, TMP_BUF_MAX, "CTRL_UL ") : 0; + interrupt & CTRL_DL ? p += snprintf(p, TMP_BUF_MAX, "CTRL_DL ") : NULL; + interrupt & CTRL_UL ? p += snprintf(p, TMP_BUF_MAX, "CTRL_UL ") : NULL; - interrupt & RESET ? p += snprintf(p, TMP_BUF_MAX, "RESET ") : 0; + interrupt & RESET ? p += snprintf(p, TMP_BUF_MAX, "RESET ") : NULL; return buf; } _ Patches currently in -mm which might be from randy.dunlap@xxxxxxxxxx are cpuidle-unsigned-bitfield.patch acpi-dock-use-null-for-pointer.patch git-drm.patch romfs-printk-format-warnings.patch git-netdev-all.patch git-scsi-misc.patch git-unionfs.patch git-ipwireless_cs.patch i386-fix-gdts-number-of-quadwords-in.patch scripts-kernel-doc-whitespace-cleanup.patch reiserfs-proc-support-requires-proc_fs.patch kprobes-fix-sparse-null-warning.patch ext4-use-null-for-pointers.patch some-grammatical-fixups-and-additions-to-atomich-kernel-doc.patch profile-likely-unlikely-macros.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html