* [merged] mm-check-the-argument-of-kunmap-on-architectures-without-highmem.patch removed from -mm tree
@ 2009-06-17 18:35 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2009-06-17 18:35 UTC (permalink / raw)
To: matthew, dwmw2, willy, mm-commits
The patch titled
mm: check the argument of kunmap on architectures without highmem
has been removed from the -mm tree. Its filename was
mm-check-the-argument-of-kunmap-on-architectures-without-highmem.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: mm: check the argument of kunmap on architectures without highmem
From: Matthew Wilcox <matthew@wil.cx>
If you're using a non-highmem architecture, passing an argument with the
wrong type to kunmap() doesn't give you a warning because the ifdef
doesn't check the type.
Using a static inline function solves the problem nicely.
Reported-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/highmem.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff -puN include/linux/highmem.h~mm-check-the-argument-of-kunmap-on-architectures-without-highmem include/linux/highmem.h
--- a/include/linux/highmem.h~mm-check-the-argument-of-kunmap-on-architectures-without-highmem
+++ a/include/linux/highmem.h
@@ -55,7 +55,9 @@ static inline void *kmap(struct page *pa
return page_address(page);
}
-#define kunmap(page) do { (void) (page); } while (0)
+static inline void kunmap(struct page *page)
+{
+}
static inline void *kmap_atomic(struct page *page, enum km_type idx)
{
_
Patches currently in -mm which might be from matthew@wil.cx are
origin.patch
linux-next.patch
ptrace-remove-pt_dtrace-from-avr32-mn10300-parisc-s390-sh-xtensa.patch
make-sure-nobodys-leaking-resources.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-17 18:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 18:35 [merged] mm-check-the-argument-of-kunmap-on-architectures-without-highmem.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.