Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] MEMORY MANAGEMENT: Remove deprecated memclear_highpage_flush().

0 views
Skip to first unread message

Robert P. J. Day

unread,
Mar 11, 2010, 9:00:02 AM3/11/10
to

Since this routine is all of static, deprecated and unreferenced, it
seems safe to delete it.

Signed-off-by: Robert P. J. Day <rpj...@crashcourse.ca>

---


diff --git a/include/linux/highmem.h b/include/linux/highmem.h
index 74152c0..c77f913 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
@@ -173,12 +173,6 @@ static inline void zero_user(struct page *page,
zero_user_segments(page, start, start + size, 0, 0);
}

-static inline void __deprecated memclear_highpage_flush(struct page *page,
- unsigned int offset, unsigned int size)
-{
- zero_user(page, offset, size);
-}
-
#ifndef __HAVE_ARCH_COPY_USER_HIGHPAGE

static inline void copy_user_highpage(struct page *to, struct page *from,

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Johannes Weiner

unread,
Mar 11, 2010, 9:50:03 AM3/11/10
to
On Thu, Mar 11, 2010 at 08:49:21AM -0500, Robert P. J. Day wrote:
>
> Since this routine is all of static, deprecated and unreferenced, it
> seems safe to delete it.
>
> Signed-off-by: Robert P. J. Day <rpj...@crashcourse.ca>

Acked-by: Johannes Weiner <han...@cmpxchg.org>

> diff --git a/include/linux/highmem.h b/include/linux/highmem.h
> index 74152c0..c77f913 100644
> --- a/include/linux/highmem.h
> +++ b/include/linux/highmem.h
> @@ -173,12 +173,6 @@ static inline void zero_user(struct page *page,
> zero_user_segments(page, start, start + size, 0, 0);
> }
>
> -static inline void __deprecated memclear_highpage_flush(struct page *page,
> - unsigned int offset, unsigned int size)
> -{
> - zero_user(page, offset, size);
> -}
> -
> #ifndef __HAVE_ARCH_COPY_USER_HIGHPAGE
>
> static inline void copy_user_highpage(struct page *to, struct page *from,
>
> ========================================================================
> Robert P. J. Day Waterloo, Ontario, CANADA
>
> Linux Consulting, Training and Kernel Pedantry.
>
> Web page: http://crashcourse.ca
> Twitter: http://twitter.com/rpjday
> ========================================================================
>
> --

> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majo...@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"do...@kvack.org"> em...@kvack.org </a>

0 new messages