Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4192348rdb; Mon, 11 Dec 2023 11:25:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7V+VFIDenNzO2ijQV0/AKK9SKk5irKFe28+5P3FtvQnMoMo/v7lKaDHDI35WiZEPKZHgc X-Received: by 2002:a05:6e02:b22:b0:35d:59a2:2bd with SMTP id e2-20020a056e020b2200b0035d59a202bdmr7715552ilu.93.1702322733451; Mon, 11 Dec 2023 11:25:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702322733; cv=none; d=google.com; s=arc-20160816; b=woZNWU8e5KVRIlsSajP/jfMCSa7ZaCl59nynQISRb8dfTUarAyF5vqkczit7jV21ME rlGb3eXOAHqnH6nTIiGoYG1Z+8eEJP2aY9+LLkSXEYFlhVG2ISIyiqbpig/AvUBHKaDN 6FQmTx0jNHkXU6tJYONxre1SCNxb5H47MTn4mOr+2QlDKsWV1B8FRVWw4MCWeL4GbO3T yME+0nRZPC8r6L/o2VWcoN+OKTUoMCsIkk2Ds4xuPMUF/WdeT8M63/Wv5O1H00dgWuWw n6Sbm99ILkRyJAevBsoXWvAtNhC02FdR4t1wYsgSq0pVrhbdj39dC1YhNLASpqZWbION wJwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=g+vj8h5bQ6vZDfhKWD5PwxhRlKf++3gbeBs7wv6EQbA=; fh=tYAbXdqTqgcQhwLnbS84AyzX3jahcsm8TDRcsAszOyQ=; b=Cyrr2jp1E1nHUA1HzvtaD+SKFMwLElma6FGtfHsEtsiwq9bOLZno4liAtfrBxvLiah QZXU4SIA4QXfC0UNw9L1CEs9w7WV75jxlc2CUZVK+HTwWmLHYbsGi+vNUIUB2lwUImaH E4r2m4TQiAWT/qZR5c+1il5F2NO3dq90pNDUHOEY7ZpAGoauGLKvwY0Z0Yab6RNvoAl8 +af/Xg+3hfzvD2zbxA20/ZbSxk0N7UBdwqpqDfqhWX2mcn9e2Zxs0EmgC76d2vzXLL65 pf7EK50pw9vGLGzZIbOB5d5QnQ7nBcHqOVdyxszL5eeZIChx02DVdYXI7DlpqF3al8EK B1Zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bk5-20020a056a02028500b005c67398f70fsi6906562pgb.379.2023.12.11.11.25.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 11:25:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D112D806E4C1; Mon, 11 Dec 2023 11:25:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344661AbjLKTZS (ORCPT + 99 others); Mon, 11 Dec 2023 14:25:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbjLKTZR (ORCPT ); Mon, 11 Dec 2023 14:25:17 -0500 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C10DBD5; Mon, 11 Dec 2023 11:25:21 -0800 (PST) Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-5ca0b968d8dso569447a12.1; Mon, 11 Dec 2023 11:25:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702322721; x=1702927521; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g+vj8h5bQ6vZDfhKWD5PwxhRlKf++3gbeBs7wv6EQbA=; b=pzJ2ZaPGGYpvNlJmdkTSpJqHpMhyFzkT7MYho5TFX1/Nphvqit3mypeQZKjesLZezU de1Y1+N0P6muFU+kbl7O1Up5kgPtIStCPGuJPQ0q+goGzJdxyjknOO3fjdCoxy8D+c/5 NCns5ZSr5tsl8e1GChNP7p94xvOMvUl+XbqE03iY9kTh3UywbukAot3R67v99OMRRvmC 2mlUVUSU58Kp993nkY0K/8PXpS14oqSdpc2gPeilwMqM6pqZMQyde+2t93JRJZdro1eY SlBoYRveUXt9BGQ0rWy2BkNBr3N5CUQ3QE4mV5i0J2IoqkhmGOs8QBeAGvs8scvRXPvy +7ug== X-Gm-Message-State: AOJu0YzKfUA5it4nkeaHKmR6nicA4HKEei3kxuOThIOs78g9vJK9L+E0 aGZYdvISnYWIiQbMvDSaf0I= X-Received: by 2002:a05:6a20:9706:b0:18d:b43:78f9 with SMTP id hr6-20020a056a20970600b0018d0b4378f9mr1765345pzc.39.1702322721017; Mon, 11 Dec 2023 11:25:21 -0800 (PST) Received: from snowbird ([199.73.127.3]) by smtp.gmail.com with ESMTPSA id ka36-20020a056a0093a400b006ce7f0502f0sm6646512pfb.151.2023.12.11.11.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 11:25:20 -0800 (PST) Date: Mon, 11 Dec 2023 11:25:14 -0800 From: Dennis Zhou To: Alexandre Ghiti Cc: Stephen Rothwell , Tejun Heo , Christoph Lameter , Ingo Molnar , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the percpu tree Message-ID: References: <20231211171406.71fdc29b@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 11:25:30 -0800 (PST) Hello, On Mon, Dec 11, 2023 at 09:31:25AM +0100, Alexandre Ghiti wrote: > Hi Stephen, > > On Mon, Dec 11, 2023 at 7:14 AM Stephen Rothwell wrote: > > > > Hi all, > > > > After merging the percpu tree, today's linux-next build (sparc64 > > defconfig) failed like this: > > > > mm/percpu.c: In function 'pcpu_page_first_chunk': > > mm/percpu.c:3336:17: error: implicit declaration of function 'flush_cache_vmap_early'; did you mean 'flush_cache_vmap'? [-Werror=implicit-function-declaration] > > 3336 | flush_cache_vmap_early(unit_addr, unit_addr + ai->unit_size); > > | ^~~~~~~~~~~~~~~~~~~~~~ > > | flush_cache_vmap > > cc1: some warnings being treated as errors > > > > Caused by commit > > > > a95c15a43f4a ("mm: Introduce flush_cache_vmap_early() and its riscv implementation") > > > > I have applied the following fix patch for today. Are there other > > archs that don't use asm-generic/cacheflush.h? > I'm surprised automation didn't catch this as this should have failed for any sparc build? It passed `sparc allmodconfig gcc` on my branches. > It seems like most archs do not include this file, I should have > checked. As I'm a bit scared of the possible side-effects of including > asm-generic/cacheflush.h, I'll define flush_cache_vmap_early() on all > archs that do define flush_cache_vmap(). > Hmmm. That makes sense, but we'd still need to check so we have the generic #ifndef definition included everywhere too. > Stephen, do you want a patch fix? Or do you want me to send a new > version of the current patches so that you can drop them for now? > The for-next tree gets recreated from pulls of the maintainers' trees. I'm going to drop the series from percpu and then we can go again with a v2. > Sorry for the oversight, > All good it happens. It's why the automation is there. Thanks, Dennis > Thanks, > > Alex > > > > > From: Stephen Rothwell > > Date: Mon, 11 Dec 2023 16:57:00 +1100 > > Subject: [PATCH] fix up for "mm: Introduce flush_cache_vmap_early() and its riscv implementation" > > > > Signed-off-by: Stephen Rothwell > > --- > > arch/sparc/include/asm/cacheflush.h | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/arch/sparc/include/asm/cacheflush.h b/arch/sparc/include/asm/cacheflush.h > > index 881ac76eab93..9d87b2bcb217 100644 > > --- a/arch/sparc/include/asm/cacheflush.h > > +++ b/arch/sparc/include/asm/cacheflush.h > > @@ -10,4 +10,11 @@ > > #else > > #include > > #endif > > + > > +#ifndef __ASSEMBLY__ > > +static inline void flush_cache_vmap_early(unsigned long start, unsigned long end) > > +{ > > +} > > +#endif > > + > > #endif > > -- > > 2.40.1 > > > > -- > > Cheers, > > Stephen Rothwell