The patch titled
     mm/mmap: remove sparse-warning (NULL as 0)
has been added to the -mm tree.  Its filename is
     mm-mmap-remove-sparse-warning-null-as-0.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: mm/mmap: remove sparse-warning (NULL as 0)
From: Richard Knutsson <[EMAIL PROTECTED]>

Fixing:
  CHECK   mm/mmap.c
mm/mmap.c:1623:29: warning: Using plain integer as NULL pointer
mm/mmap.c:1623:29: warning: Using plain integer as NULL pointer
mm/mmap.c:1944:29: warning: Using plain integer as NULL pointer

Signed-off-by: Richard Knutsson <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 mm/mmap.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN mm/mmap.c~mm-mmap-remove-sparse-warning-null-as-0 mm/mmap.c
--- a/mm/mmap.c~mm-mmap-remove-sparse-warning-null-as-0
+++ a/mm/mmap.c
@@ -1625,7 +1625,7 @@ static inline int expand_downwards(struc
                return -ENOMEM;
 
        address &= PAGE_MASK;
-       error = security_file_mmap(0, 0, 0, 0, address, 1);
+       error = security_file_mmap(NULL, 0, 0, 0, address, 1);
        if (error)
                return error;
 
@@ -1946,7 +1946,7 @@ unsigned long do_brk(unsigned long addr,
        if (is_hugepage_only_range(mm, addr, len))
                return -EINVAL;
 
-       error = security_file_mmap(0, 0, 0, 0, addr, 1);
+       error = security_file_mmap(NULL, 0, 0, 0, addr, 1);
        if (error)
                return error;
 
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

origin.patch
kernel-compliment-va_copy-with-va_end.patch
git-dvb.patch
mm-mmap-remove-sparse-warning-null-as-0.patch
dio-array_size-cleanup-update.patch
dio-array_size-cleanup-update-checkpatch-fixes.patch
reiserfs-complement-va_start-with-va_end.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to