The patch titled acpi: cm_sbs: use NULL instead of 0 for ptr has been added to the -mm tree. Its filename is acpi-cm_sbs-use-null-instead-of-0-for-ptr.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: acpi: cm_sbs: use NULL instead of 0 for ptr From: Randy Dunlap <rdunlap@xxxxxxxxxxxx> Use NULL instead of 0 for pointer value, eliminate sparse warnings. Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx> Cc: "Brown, Len" <len.brown@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/acpi/cm_sbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/acpi/cm_sbs.c~acpi-cm_sbs-use-null-instead-of-0-for-ptr drivers/acpi/cm_sbs.c --- a/drivers/acpi/cm_sbs.c~acpi-cm_sbs-use-null-instead-of-0-for-ptr +++ a/drivers/acpi/cm_sbs.c @@ -67,7 +67,7 @@ void acpi_unlock_ac_dir(struct proc_dir_ lock_ac_dir_cnt--; if (lock_ac_dir_cnt == 0 && acpi_ac_dir_param && acpi_ac_dir) { remove_proc_entry(ACPI_AC_CLASS, acpi_root_dir); - acpi_ac_dir = 0; + acpi_ac_dir = NULL; } mutex_unlock(&cm_sbs_mutex); } @@ -99,7 +99,7 @@ void acpi_unlock_battery_dir(struct proc if (lock_battery_dir_cnt == 0 && acpi_battery_dir_param && acpi_battery_dir) { remove_proc_entry(ACPI_BATTERY_CLASS, acpi_root_dir); - acpi_battery_dir = 0; + acpi_battery_dir = NULL; } mutex_unlock(&cm_sbs_mutex); return; _ Patches currently in -mm which might be from rdunlap@xxxxxxxxxxxx are origin.patch add-kerneldocs-for-some-functions-in-mm-memoryc.patch ext3-add-more-comments-in-block-allocation-reservation-code.patch acpi-fix-printk-format-warnings.patch acpi-cm_sbs-use-null-instead-of-0-for-ptr.patch git-lxdialog.patch mtd-printk-format-warning.patch pcmcia-ds-must_check-fixes.patch pcie-check-and-return-bus_register-errors-fix.patch dc395x-fix-printk-format-warning.patch tiacx-sparse-cleanups.patch consistently-use-max_errno-in-__syscall_return.patch consistently-use-max_errno-in-__syscall_return-fix.patch eisa-bus-modalias-attributes-support-1.patch kernel-params-must_check-fixes.patch blockdevc-check-errors.patch block-handle-subsystem_register-init-errors.patch fs-namespace-handle-init-registration-errors.patch kernel-doc-for-relay-interface.patch kernel-doc-move-filesystems-together.patch include-documentation-for-functions-in-drivers-base-classc.patch fix-parameter-names-in-drivers-base-classc.patch fix-kerneldoc-comments-in-kernel-timerc-fix.patch cdev-documentation-was-drop-second-arg-of-unregister_chrdev.patch docbook-fix-segfault-in-docprocc.patch doc-fix-kernel-parameters-quiet.patch mention-documenation-abi-requirements-in-documentation-submitchecklist.patch allow-proc-configgz-to-be-built-as-a-module.patch fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-cachefiles-printk-format-warning.patch ecryptfs-fix-printk-format-warnings.patch ide-core-must_check-fixes.patch documentation-fixes-in-intel810txt.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