From patchwork Wed Nov 18 19:40:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 546178 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 22BB7141428 for ; Thu, 19 Nov 2015 06:40:51 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zz8b3-00082r-Fw; Wed, 18 Nov 2015 19:40:49 +0000 Received: from col004-omc4s15.hotmail.com ([65.55.34.217]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zz8b1-0007ww-16; Wed, 18 Nov 2015 19:40:48 +0000 Received: from COL130-W7 ([65.55.34.200]) by COL004-OMC4S15.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 18 Nov 2015 11:40:26 -0800 X-TMN: [GGTvpysuzFVXZ/N4TAunFZy//XF0VVbj] X-Originating-Email: [xili_gchen_5257@hotmail.com] Message-ID: From: Chen Gang To: "vgupta@synopsys.com" , "dhowells@redhat.com" , "linux@arm.linux.org.uk" , "geert@linux-m68k.org" , "gerg@uclinux.org" , "jonas@southpole.se" , Arnd Bergmann , "abrodkin@synopsys.com" , Andrew Morton Subject: [PATCH] include: asm-generic: page.h: Remove useless get_user_page and free_user_page Date: Thu, 19 Nov 2015 03:40:25 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 18 Nov 2015 19:40:26.0088 (UTC) FILETIME=[F8F69E80:01D12238] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151118_114047_275451_712F170B X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.9 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [65.55.34.217 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [65.55.34.217 listed in wl.mailspike.net] -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (xili_gchen_5257[at]hotmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (xili_gchen_5257[at]hotmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-arch@vger.kernel.org" , kernel mailing list , "linux-m68k@lists.linux-m68k.org" , linux@lists.openrisc.net, "linux-snps-arc@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From ba7c00c4cb976109b6a35812ce9649aaeda81e2d Mon Sep 17 00:00:00 2001 From: Chen Gang Date: Thu, 19 Nov 2015 03:24:42 +0800 Subject: [PATCH] include: asm-generic: page.h: Remove useless get_user_page and free_user_page 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 Acked-by: Russell King Acked-by: Greg Ungerer ---  arch/arc/include/asm/page.h       | 3 ---  arch/arm/include/asm/page-nommu.h | 3 ---  arch/frv/include/asm/page.h       | 3 ---  arch/m68k/include/asm/page_mm.h   | 3 ---  arch/m68k/include/asm/page_no.h   | 3 ---  arch/openrisc/include/asm/page.h  | 3 ---  include/asm-generic/page.h        | 3 ---  7 files changed, 21 deletions(-) --  1.9.3 diff --git a/arch/arc/include/asm/page.h b/arch/arc/include/asm/page.h index 429957f..adf5cbb 100644 --- a/arch/arc/include/asm/page.h +++ b/arch/arc/include/asm/page.h @@ -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)   diff --git a/arch/arm/include/asm/page-nommu.h b/arch/arm/include/asm/page-nommu.h index d1b162a..503f488 100644 --- a/arch/arm/include/asm/page-nommu.h +++ b/arch/arm/include/asm/page-nommu.h @@ -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)   diff --git a/arch/frv/include/asm/page.h b/arch/frv/include/asm/page.h index 8c97068..52ace96 100644 --- a/arch/frv/include/asm/page.h +++ b/arch/frv/include/asm/page.h @@ -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)   diff --git a/arch/m68k/include/asm/page_mm.h b/arch/m68k/include/asm/page_mm.h index 5029f73..e7a1946 100644 --- a/arch/m68k/include/asm/page_mm.h +++ b/arch/m68k/include/asm/page_mm.h @@ -6,9 +6,6 @@  #include  #include   -#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.   */ diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h index ef20916..fa7f32d 100644 --- a/arch/m68k/include/asm/page_no.h +++ b/arch/m68k/include/asm/page_no.h @@ -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)   diff --git a/arch/openrisc/include/asm/page.h b/arch/openrisc/include/asm/page.h index 108906f..e613d36 100644 --- a/arch/openrisc/include/asm/page.h +++ b/arch/openrisc/include/asm/page.h @@ -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)   diff --git a/include/asm-generic/page.h b/include/asm-generic/page.h index 37d1fe2..67cfb7d 100644 --- a/include/asm-generic/page.h +++ b/include/asm-generic/page.h @@ -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)