* [PATCH] mm/mmap: Remove sparse-warning (NULL as 0).
@ 2007-12-08 11:02 Richard Knutsson
2007-12-22 0:27 ` James Morris
0 siblings, 1 reply; 2+ messages in thread
From: Richard Knutsson @ 2007-12-08 11:02 UTC (permalink / raw)
To: Eric Paris, James Morris; +Cc: linux-kernel, Richard Knutsson
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 <ricknu-0@student.ltu.se>
---
Added by: 8869477a49c3e99def1fcdadd6bbc407fea14b45 (Linus' tree)
Compile-tested on i386 with all[yes|mod|no]config.
diff --git a/mm/mmap.c b/mm/mmap.c
index 15678aa..bfa389f 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1620,7 +1620,7 @@ static inline int expand_downwards(struct vm_area_struct *vma,
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;
@@ -1941,7 +1941,7 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/mmap: Remove sparse-warning (NULL as 0).
2007-12-08 11:02 [PATCH] mm/mmap: Remove sparse-warning (NULL as 0) Richard Knutsson
@ 2007-12-22 0:27 ` James Morris
0 siblings, 0 replies; 2+ messages in thread
From: James Morris @ 2007-12-22 0:27 UTC (permalink / raw)
To: Richard Knutsson; +Cc: Eric Paris, linux-kernel
On Sat, 8 Dec 2007, Richard Knutsson wrote:
> 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 <ricknu-0@student.ltu.se>
> ---
> Added by: 8869477a49c3e99def1fcdadd6bbc407fea14b45 (Linus' tree)
> Compile-tested on i386 with all[yes|mod|no]config.
Thanks, applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6.git#for-akpm
- James
--
James Morris
<jmorris@namei.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-22 0:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-08 11:02 [PATCH] mm/mmap: Remove sparse-warning (NULL as 0) Richard Knutsson
2007-12-22 0:27 ` James Morris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome