From patchwork Mon Nov 27 02:28:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Rothwell X-Patchwork-Id: 169949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2807460vqx; Sun, 26 Nov 2023 18:28:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGFWk6sZNysRHM3bFWFEOsptXN242mN0W7MyU2bNij9ZAVtZI7JJavuCXZE3tTyaUhLzVPu X-Received: by 2002:a05:6808:1188:b0:3ab:83fe:e18f with SMTP id j8-20020a056808118800b003ab83fee18fmr12868765oil.35.1701052105736; Sun, 26 Nov 2023 18:28:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701052105; cv=none; d=google.com; s=arc-20160816; b=F+DOfFXQZqVsTp8KI05CN4qrbwruGedgnizL2ubvy+0hyPm9ctEbLGtniRM1OrEKP6 nBaY6bl5KpgZXBKZHSFKpesRJuJUs6XbTpkpdHJaFfNSP+Yl3Fr2n6Vv8mkmUu/V0EXM gfVZNOrk4lhe6YFTByRjydRu0NNiy90CdH/ZWMkfWzYJvYfelvpgc1aQajEWEXX0zW2P RnvlRK5w457T3aEp/7zAPb88bxR2Z1k7wEPkV3cx5RA8YWQEWbanZvl1WWez3HFj4ypT uthpAEkhJja/71jEcQ0MS5PDAsAHJAdTkPU5A+ynNlzcizXeS6FadQrkGFEqUoDfxCCR 2/GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=qhOqTKNBi/EFmiADHd5ayMEH+8UZij1qQS+GarSvOk8=; fh=D2h4ktC6nF/netB5lIh9ji1lVzbP0UQjXgEV4wEkrkE=; b=ny1hnnqAogYSaAsEDDHPGuS5QBDCT4lNhko/zUCi4GaK2oly76nu7JtQ8bHBMF9yGZ 1IE4x1TOaLLD5SgfbDG0XSiXI9kcYhS063GpVsjSX/x7Vt2phpboyzWCYF8cDcjIBAWn uOqelxtKteX5wO+CsgrOpME5ElCp5op9vkxKvMl74//Qgu9ClumeqAP6Nv22AVIAWUhM Cp5xA1p2MHkJu9RKXEnaLhlLh6RhU1gznHSXpj3+KLyJY3PEns6MAKSdklYgZaZHPM5G BgiT9ykJXMQxhVvN7SrryAYLABm4zpUyDUfkueWDrXtGIKqiqk4j8DXEcwhvjJsTZf5d APbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=LhNCEe3s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z7-20020a631907000000b005b3d703ca05si8960034pgl.780.2023.11.26.18.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 18:28:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=LhNCEe3s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AD73D806290C; Sun, 26 Nov 2023 18:28:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbjK0C2L (ORCPT + 99 others); Sun, 26 Nov 2023 21:28:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjK0C2K (ORCPT ); Sun, 26 Nov 2023 21:28:10 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03904C5; Sun, 26 Nov 2023 18:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1701052092; bh=qhOqTKNBi/EFmiADHd5ayMEH+8UZij1qQS+GarSvOk8=; h=Date:From:To:Cc:Subject:From; b=LhNCEe3skKSb/ECq4ppTKq8aHTaRWKOeb+3+Du8FdQ27ddNvgc6GPe0sPt7OQYk7j s4ToPmGWPchF1qiRJr31AjSpZmgZPvMFCftOdTOuE5BB+K2Chuhzn6IKiSIXm23h9h FO/pK2udynSyu8+5gIFfiKkbbH7v1W2+FAuW/w9E4DPmQ3d3gHMTY3NEgCAhRFCV79 hblnISeNqVKlM3SQPei03+PaOkjmLREgeg8Qs+d9oTdDJeKpRh9R1PkIziilbTI98i N9FbQE2RuXOjbN6Xnb7FuT/9kb40ofY2ihmEmvBO5DMZCMfT3U+lccXjTdrzBnSSGI idGhksHo7LcQA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SdqJC5XRsz4wcJ; Mon, 27 Nov 2023 13:28:11 +1100 (AEDT) Date: Mon, 27 Nov 2023 13:28:09 +1100 From: Stephen Rothwell To: Andrew Morton Cc: Arnd Bergmann , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the mm tree Message-ID: <20231127132809.45c2b398@canb.auug.org.au> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 26 Nov 2023 18:28:20 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783682412460626818 X-GMAIL-MSGID: 1783682412460626818 Hi all, After merging the mm tree, today's linux-next build (powerpc64 allnoconfig) failed like this: arch/powerpc/mm/book3s64/pgtable.c:557:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes] 557 | int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl, | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Caused by commit c6345dfa6e3e ("Makefile.extrawarn: turn on missing-prototypes globally") I have added the following patch for today (which could be applied to the mm or powerpc trees): From 194805b44c11b4c0aa28bdcdc0bb0d82acef394c Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 27 Nov 2023 13:08:57 +1100 Subject: [PATCH] powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE Signed-off-by: Stephen Rothwell --- arch/powerpc/mm/book3s64/pgtable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/mm/book3s64/pgtable.c b/arch/powerpc/mm/book3s64/pgtable.c index be229290a6a7..3438ab72c346 100644 --- a/arch/powerpc/mm/book3s64/pgtable.c +++ b/arch/powerpc/mm/book3s64/pgtable.c @@ -542,6 +542,7 @@ void ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, set_pte_at(vma->vm_mm, addr, ptep, pte); } +#ifdef CONFIG_TRANSPARENT_HUGEPAGE /* * For hash translation mode, we use the deposited table to store hash slot * information and they are stored at PTRS_PER_PMD offset from related pmd @@ -563,6 +564,7 @@ int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl, return true; } +#endif /* * Does the CPU support tlbie?