Skip to content

Commit

Permalink
asm-generic: page.h: Remove useless get_user_page and free_user_page
Browse files Browse the repository at this point in the history
They are not symmetric with each other, neither are used in real world
(can not be found by grep command in source code root directory), so
remove them.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Chen-Gang authored and arndb committed Feb 26, 2016
1 parent 36f90b0 commit 4e0b6ca
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions arch/arc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(paddr) memset((paddr), 0, PAGE_SIZE)
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/arm/include/asm/page-nommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#define KTHREAD_SIZE PAGE_SIZE
#endif

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/frv/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/m68k/include/asm/page_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include <linux/compiler.h>
#include <asm/module.h>

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

/*
* We don't need to check for alignment etc.
*/
Expand Down
3 changes: 0 additions & 3 deletions arch/m68k/include/asm/page_no.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
extern unsigned long memory_start;
extern unsigned long memory_end;

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/openrisc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions include/asm-generic/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down

0 comments on commit 4e0b6ca

Please sign in to comment.