From patchwork Tue Jul 31 05:15:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 10549883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9DA9415E2 for ; Tue, 31 Jul 2018 05:15:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B2B228553 for ; Tue, 31 Jul 2018 05:15:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E83E2A03C; Tue, 31 Jul 2018 05:15:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FE6D28553 for ; Tue, 31 Jul 2018 05:15:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727161AbeGaGx7 (ORCPT ); Tue, 31 Jul 2018 02:53:59 -0400 Received: from mail02.asahi-net.or.jp ([202.224.55.14]:40711 "EHLO mail02.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbeGaGx7 (ORCPT ); Tue, 31 Jul 2018 02:53:59 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.vps.ablenet.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail02.asahi-net.or.jp (Postfix) with ESMTPA id 52D56FAC50; Tue, 31 Jul 2018 14:15:32 +0900 (JST) Received: from yo-satoh-debian.localdomain (ZM028236.ppp.dion.ne.jp [222.8.28.236]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 0A72B24006D; Tue, 31 Jul 2018 14:15:31 +0900 (JST) From: Yoshinori Sato To: dalias@libc.org, linux-sh@vger.kernel.org Cc: Yoshinori Sato Subject: [PATCH] sh: remove unneeded constructor. Date: Tue, 31 Jul 2018 14:15:19 +0900 Message-Id: <20180731051519.101249-1-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.11.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP pgd_cache specifies __GFP_ZERO when allocating. This constructor is meaningless. Signed-off-by: Yoshinori Sato --- arch/sh/mm/pgtable.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/sh/mm/pgtable.c b/arch/sh/mm/pgtable.c index 5c8f9247c3c2..4b8be7525fba 100644 --- a/arch/sh/mm/pgtable.c +++ b/arch/sh/mm/pgtable.c @@ -9,20 +9,11 @@ static struct kmem_cache *pgd_cachep; static struct kmem_cache *pmd_cachep; #endif -void pgd_ctor(void *x) -{ - pgd_t *pgd = x; - - memcpy(pgd + USER_PTRS_PER_PGD, - swapper_pg_dir + USER_PTRS_PER_PGD, - (PTRS_PER_PGD - USER_PTRS_PER_PGD) * sizeof(pgd_t)); -} - void pgtable_cache_init(void) { pgd_cachep = kmem_cache_create("pgd_cache", PTRS_PER_PGD * (1< 2 pmd_cachep = kmem_cache_create("pmd_cache", PTRS_PER_PMD * (1<