From patchwork Fri Jul 28 10:22:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 13331626 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A13DC001DE for ; Fri, 28 Jul 2023 10:22:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E62D28D0001; Fri, 28 Jul 2023 06:22:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E13056B0074; Fri, 28 Jul 2023 06:22:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB3768D0001; Fri, 28 Jul 2023 06:22:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id BC9196B0072 for ; Fri, 28 Jul 2023 06:22:57 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 62FD51A094A for ; Fri, 28 Jul 2023 10:22:57 +0000 (UTC) X-FDA: 81060632394.21.B4F44BC Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf28.hostedemail.com (Postfix) with ESMTP id 00383C0006 for ; Fri, 28 Jul 2023 10:22:54 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=XBgmHYz4; spf=pass (imf28.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690539775; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=b2/xOk2xDHfpXWH1hgnDJSv9UShq43dVSm0E+JsPR9w=; b=h/HTquKWmXhmkU0jbYQYudBdY30JCnAGCxGHNehuZ5U+yZyY3D9HvfXkXsdKZs5DSlhisQ L2zgJP/nsB9m+zV4ZcnaqCcotIXRJLuqHpkWy2MOGq6r+aKZhN1+F9nV9O4vX0QIk+dNDe F6WVOcb4x0Iu8SAJlowLsP9R19WS9is= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690539775; a=rsa-sha256; cv=none; b=8g+aBKla0lL2pgCh0glZt9ik08lgV+gJGm5ohjZr96lquXVzh3HXqcfykm3NYkwZm5m5Pd MCEvoX97ehf1SY1k5o3x3sgR4wQBeo1fSbbvoTjCHJBZ2ivx2Lxw+B9VJmzgRSWEta20FY dLWQHnsB8cjZ9F9f3g6ICYTfyf4tf6E= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=XBgmHYz4; spf=pass (imf28.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36SACVOI027393; Fri, 28 Jul 2023 10:22:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : content-transfer-encoding; s=pp1; bh=b2/xOk2xDHfpXWH1hgnDJSv9UShq43dVSm0E+JsPR9w=; b=XBgmHYz4I5RoOyXOnRMxso5Kc+omvctRFPHvYUWTL7ORPxh3wbwTvOEC10n5dNFXZbbU 9wKf6bXbtVCSLMpjSiB7+Oc/Jm+/ivtI1QgMfDRMDtEwlqwhIruCGpZsYXu7GSXug20y LTU1i6YlMw9cJTYoN9ElWJshvYQS4BQhxG3a1DCHp6pH25d2OmCPqWcCf9Mmg5dCy44h IBL/ni/Abw+i9NGlR5LHs9o77mIKoq79mvICwz5c0dGtxLl0Z1sxJVquzOaeeLrtddK8 i7BYhDhZDCikXIj2Hf3OJ8Dlsjd7Qd62S2bTaOo8p3F/QOFXzws6/73X27VCsLNkcexs Xg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s4bqer84f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Jul 2023 10:22:42 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36SAG4KI005758; Fri, 28 Jul 2023 10:22:42 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s4bqer840-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Jul 2023 10:22:42 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36S9bggY002068; Fri, 28 Jul 2023 10:22:40 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3s0tenn5nr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Jul 2023 10:22:40 +0000 Received: from smtpav02.wdc07v.mail.ibm.com (smtpav02.wdc07v.mail.ibm.com [10.39.53.229]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36SAMdho10551952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Jul 2023 10:22:40 GMT Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A8CAA58058; Fri, 28 Jul 2023 10:22:39 +0000 (GMT) Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 190CB5805B; Fri, 28 Jul 2023 10:22:34 +0000 (GMT) Received: from skywalker.linux.ibm.com (unknown [9.43.12.215]) by smtpav02.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 28 Jul 2023 10:22:33 +0000 (GMT) X-Mailer: emacs 29.0.91 (via feedmail 11-beta-1 I) From: "Aneesh Kumar K.V" To: linux-mm@kvack.org, akpm@linux-foundation.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, npiggin@gmail.com, christophe.leroy@csgroup.eu Cc: Oscar Salvador , Mike Kravetz , Dan Williams , Joao Martins , Catalin Marinas , Muchun Song , Will Deacon Subject: [PATCH v6 10/13 -fix2] powerpc/book3s64/vmemmap: Switch radix to use a different vmemmap handling function In-Reply-To: <20230724190759.483013-11-aneesh.kumar@linux.ibm.com> References: <20230724190759.483013-1-aneesh.kumar@linux.ibm.com> <20230724190759.483013-11-aneesh.kumar@linux.ibm.com> Date: Fri, 28 Jul 2023 15:52:31 +0530 Message-ID: <877cqkwd20.fsf@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: DP11UkbcSyNEaYwVZyyCjEEiwfDleoRT X-Proofpoint-GUID: xVOEHNyPBB_7QS4-2C-ExlMndzHkU0Ug X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-27_10,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 spamscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307280092 X-Rspamd-Queue-Id: 00383C0006 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: k5kf7133nw4hhrqrxz9onzbogfos3zdz X-HE-Tag: 1690539774-252272 X-HE-Meta: U2FsdGVkX1+/NdEnipscWDg9ZxbM6Zw019bLFh+v0N5a9SPqLGb10VzQzmZ5HG9h0n/f5j90I3Omoq/xo0c970i1q/vkDGo1yGM6KhWdZhXmdPK/+EOgQOwTMFS7jYJOUYva2PNgqnKd6+L1GPNg5Ff9ELcp6ItI2wZxVg/M7TtTXbzX34d0BiNDVjelUWg22TyBDdqI3J+vF0pX7esgC/qExjOoEcDeX12KlZtXSFOyUC18wb1zLp/hZHQEmTUSY8+G/mdYsEEvrPE73XAeQ31Vr5Rzq4rugsiPnozpuvZLzGJ3WX/4ZR0+NDu8sCV3sxFoYKv8bPy2NiJgJM5T7EzCfBU4iSJ+fD4q3S5AEJmnmyeQ3YZQeDzrwTpAAejUmqZSAnb7rxYbmpPNaigFeu8N+8io+s4Fl9hBuUuUPBrk7AV6/kS6N1vFoIOvO7XXmwi1/79Ls2U2Z9QPB1GP6XNpv/QHy13HlMSnTCTIphiil+XYDdmfnvrLUcDmjmEBL+POh3mOG90YKjSD+4c0ZftpX0o9AESgirLTN+6p4Nc9OyFHuw1BTFLQMYr71TfRW6ofdYz7e2Nz+3nscQoj88ZePqHBFAmaMPZffgNml5q7dVXfe+rSPOouVix8Tx+cobOYJYY6R8qOYKv6GPwg7fXZ2N6nf0y5e13KmaZBfxWSyLU+YAmzqx836+oCxbASV2jJQDoIJ79I9XOWer8WgTAz9/Ajq4lIcwxE607AIfsrnacaeO+iZ+ymsl0Wm1lzEhZJHbdcOQmBkhFncXbx1iMcgWPRUwUPHxP+KTunRYzWxO+5O44O9ryaUBhmC5Aabv8KxkRc52xnu/fGyU7C/lJSlxPu/x+mgfbN10elxmM6n3O2WwtKD3p68oQXGKzcbR3rbpGqyKgH0/xOy9ybEqKHk+++saOC6s9ORsiGSJAMNkNGizRJY5Q3k4Fx1SgOdUATSwKxtcC4l7vaV2y R44wst1R rgWvYOWtRgztRniVTfPxvdi4JcdN6fm/WQ9x+ejtPB590QvIFCMAqPBi5eI6mymmDtuEnteYaS3SqeNMmkHZXHsRei69LzBD8TPEBwbaq1mL+P724noKnVlm+L5O1bM4Y7Z6/qLGQ0YKlQz+EXE/C8q+tjw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From a3f49a79ffa78a7de736af77e13fdbb272c9f221 Mon Sep 17 00:00:00 2001 From: "Aneesh Kumar K.V" Date: Fri, 28 Jul 2023 15:36:53 +0530 Subject: [PATCH] powerpc/mm: Fix kernel build error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC arch/powerpc/mm/init_64.o src/linux/arch/powerpc/mm/init_64.c:324:12: error: no previous prototype for ‘__vmemmap_free’ [-Werror=missing-prototypes] 324 | void __ref __vmemmap_free(unsigned long start, unsigned long end, Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/init_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 2271c0a7ea0d..141c20d02797 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c @@ -308,8 +308,8 @@ static unsigned long vmemmap_list_free(unsigned long start) return vmem_back->phys; } -void __ref __vmemmap_free(unsigned long start, unsigned long end, - struct vmem_altmap *altmap) +static void __ref __vmemmap_free(unsigned long start, unsigned long end, + struct vmem_altmap *altmap) { unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; unsigned long page_order = get_order(page_size);