]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
asm-generic: page.h: Remove useless get_user_page and free_user_page
authorChen Gang <gang.chen.5i5j@gmail.com>
Wed, 18 Nov 2015 19:24:42 +0000 (03:24 +0800)
committerArnd Bergmann <arnd@arndb.de>
Fri, 26 Feb 2016 14:24:55 +0000 (15:24 +0100)
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>
arch/arc/include/asm/page.h
arch/arm/include/asm/page-nommu.h
arch/frv/include/asm/page.h
arch/m68k/include/asm/page_mm.h
arch/m68k/include/asm/page_no.h
arch/openrisc/include/asm/page.h
include/asm-generic/page.h

index 429957f1c2365566006d674bb37311cddb97cc00..adf5cbb141a5cdfae601dfa0d014e30aad99dec6 100644 (file)
@@ -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)
 
index d1b162a18dcb16402cde824488047fcd2d708a98..503f488053de6b362fd39e8dff79109fce9b1d5b 100644 (file)
@@ -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)
 
index 688d8076a43a8cbdaaa2bd5e29c816888cee5f6f..ec5eebce4fb3c127ed912bee838aa2f389d8df90 100644 (file)
@@ -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)
 
index 5029f73e6294763239b7f1766ad073e29b273520..e7a1946455a88a295afb4d9a7b16607e626c5943 100644 (file)
@@ -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.
  */
index ef209169579a9897aee22e1fd3cc80fa348ff7bb..fa7f32d9836b3a4e58c055ce4ea57c5f6c7e6c45 100644 (file)
@@ -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)
 
index 108906f991d6766c7ec9d9dd94e3ab3da1aec07c..e613d367303412a09e2b298d2a58801f13cb6c1c 100644 (file)
@@ -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)
 
index 37d1fe28960a8ae7d82b2f804008b444c7fde556..67cfb7dbc28474921c607d33307bcd84f53aa1b6 100644 (file)
@@ -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)