Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3444346ybi; Tue, 18 Jun 2019 00:34:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTqoKBpUauapcERkipwj027YNS+UDm92142Vl44IgL965I7I2mpdSDBPT7B5X13PFTRnnq X-Received: by 2002:a17:902:42a5:: with SMTP id h34mr75984887pld.16.1560843253288; Tue, 18 Jun 2019 00:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560843253; cv=none; d=google.com; s=arc-20160816; b=EO6w4HffFueZ67VB4SrtvYbbQDaOGC1N2J1vlbOkfUjjxnrzomi5AKVStJVzWLC90h fZVTHgZ3M0Fm+9dBXDwSCf6EFRdQyYwKOLgSBf/WYZX0nDAkRDdJCexSkC/G4F2zwo4G k9oOtdYzJXHLly9Bdw3p6H9Sk/Dwc8XHRjO/WqD9kuPpuYFVd9jIdqCMZYokY89ElFAW AFhVdPOcxJZfdwbc2MGdXA6IXnk2H7Sv82D2nzdCumiZ+8auLvekfpaYRXvnGF1PrcDB +uVrAeEt3lX0PhspB7Bg0/gaLdi/b+zWfDIPznIqhfNHo7l71vf91ld3QN34ShSxlvQM olYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=74HL889peYR3czd0O1hHxo0J/IaCxhDuYag2WrXiebc=; b=Oh1RCrevjw3RJbjIKmbNxtQ2Tra5wrYdLIutcWdN8yENIyGl1GA8ETn2RiJFy+DtEA BLmIWCsFTdFVdbUvakEvvZnu+lfgImYFQs8zBBBDZdQBC8fqRrdW2kr6yv3dKOmc99+R S7SqjrcAiS7Oh7iKrMelt/A6ng5Qx5xF6Y0MF2AAuJ/+gnUGSka6hXeZI/Sy92F5IJq5 FaExqBUUBIMSxVJgvZ2MK0jFlWtWhxE8+2Ft3dLN8N9HbyFU9LFLVErnBK+Zi1FB1O7J Lgl3mvZO12+FUVBZcWDk6pRp8SyeTfroxfrUGuL3/CHey2guI/Imt6XOsLWdIpn3UfF5 0ORA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si12438090pgj.284.2019.06.18.00.33.55; Tue, 18 Jun 2019 00:34:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726308AbfFRHck (ORCPT + 99 others); Tue, 18 Jun 2019 03:32:40 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44456 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725870AbfFRHck (ORCPT ); Tue, 18 Jun 2019 03:32:40 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5I7SVn7104593 for ; Tue, 18 Jun 2019 03:32:38 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2t6ta4b7mt-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Jun 2019 03:32:38 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 18 Jun 2019 08:32:37 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 18 Jun 2019 08:32:33 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x5I7WWdI32702618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jun 2019 07:32:32 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 94A9C4C046; Tue, 18 Jun 2019 07:32:32 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DFB6B4C063; Tue, 18 Jun 2019 07:32:30 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.53]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 18 Jun 2019 07:32:30 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 18 Jun 2019 10:32:30 +0300 From: Mike Rapoport To: Will Deacon Cc: Mark Rutland , Qian Cai , Andrew Morton , Catalin Marinas , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Mike Rapoport Subject: [PATCH] arm64/mm: don't initialize pgd_cache twice Date: Tue, 18 Jun 2019 10:32:29 +0300 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 19061807-0016-0000-0000-0000028A04C9 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19061807-0017-0000-0000-000032E7538F Message-Id: <1560843149-13845-1-git-send-email-rppt@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-18_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=857 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906180062 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When PGD_SIZE != PAGE_SIZE, arm64 uses kmem_cache for allocation of PGD memory. That cache was initialized twice: first through pgtable_cache_init() alias and then as an override for weak pgd_cache_init(). Remove the alias from pgtable_cache_init() and keep the only pgd_cache initialization in pgd_cache_init(). Fixes: caa841360134 ("x86/mm: Initialize PGD cache during mm initialization") Signed-off-by: Mike Rapoport --- arch/arm64/include/asm/pgtable.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index 2c41b04..851c68d 100644 --- a/arch/arm64/include/asm/pgtable.h +++ b/arch/arm64/include/asm/pgtable.h @@ -812,8 +812,7 @@ extern int kern_addr_valid(unsigned long addr); #include -void pgd_cache_init(void); -#define pgtable_cache_init pgd_cache_init +static inline void pgtable_cache_init(void) { } /* * On AArch64, the cache coherency is handled via the set_pte_at() function. -- 2.7.4