Received: by 2002:a05:7412:a9a3:b0:f9:93eb:408e with SMTP id o35csp76496rdh; Wed, 20 Dec 2023 23:47:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2BfhiFHqAYXlxbMbkjOYvt0+1jJfWUL8kAy8mVZksvQr2Sie9ykgisDYhr7O43Arlj4cv X-Received: by 2002:a17:906:f2c8:b0:a23:62fd:e2f6 with SMTP id gz8-20020a170906f2c800b00a2362fde2f6mr325971ejb.30.1703144844483; Wed, 20 Dec 2023 23:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703144844; cv=none; d=google.com; s=arc-20160816; b=052+wLsexO141otsdGp8gP6HL6sPBFBqTPbP2GpHXvK6Wq+aaBJfpGp1Tk08EKtAa8 gZgltriC2pws8eZLD7egmCttfP8WuBQItG5PFvlAx2RCSF6M7nMg1JbNvXJgkwrhJGIM h36mwVva5l1hj4G4MPii7fxn4W3VKiIg/twCXns9Z4G8Jpc18rgXLU5uZi7dPGI37U1H yRLEJZMEuCCtVUuURDRVGf70z0u8T1MuC6Elm837sUsqiJX0n8XSEhV6pdTv08vMfK4S u9ETZypuHafBMGqEQdf2Bc/Bu88Juc5vboW4oOMh+LtkNRGgBSd9Gh0QAo0eFJYAz56X elPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=aLppS2YMtDlvENVY9eKoEHVNde6Jrf7JHZsfXnaQzRM=; fh=CnLcs7Hp8qcC1yC0kv8pl4xurW2cBbFckiDeAZ0arhc=; b=X0q/gpQh11hdp6Z9vYprwAgeUlsicMKd9ULfnRGmknbBb9R2ovo2zE8wh7EwH927Z1 ve296fulW7+a9bNEc+Dob9EsrzP16diPMPLHxp8DSN4jNA+tiWv6ik7SIi1XKDEcZu3/ Pd7XtE59ldrnyOH66XHgXAM7svbCy8OE7HIKxUATQCf5uigqqC3LTRP4LMytJXv4I9dG 5EM/LCHndIZBXYZgTb3vYtxTjRqwQzMZnfzb6dbBZmN5UTpX9GQwdZs/aKoNQyKJs0qq WsW7tQchVYRfoSSMTdscXqrErs5M+GvE3UrphUKl42RQtj+NbqzTso4CtzAarFk44NZ2 Uldg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r25-20020a170906365900b00a269f8fd5b8si560270ejb.264.2023.12.20.23.47.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 23:47:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E158C1F2369C for ; Thu, 21 Dec 2023 07:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10EEC156E4; Thu, 21 Dec 2023 07:46:11 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A74C156C3; Thu, 21 Dec 2023 07:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4SwjCR6mPNz1wp7V; Thu, 21 Dec 2023 15:45:39 +0800 (CST) Received: from kwepemd100002.china.huawei.com (unknown [7.221.188.184]) by mail.maildlp.com (Postfix) with ESMTPS id 812C414011B; Thu, 21 Dec 2023 15:45:55 +0800 (CST) Received: from M910t (10.110.54.157) by kwepemd100002.china.huawei.com (7.221.188.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.28; Thu, 21 Dec 2023 15:45:54 +0800 Date: Thu, 21 Dec 2023 15:45:43 +0800 From: Changbin Du To: Stephen Rothwell CC: Andrew Morton , Changbin Du , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the mm tree Message-ID: <20231221074543.ahl6zmvmkgw7i52k@M910t> References: <20231221183803.1dd342aa@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231221183803.1dd342aa@canb.auug.org.au> X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemd100002.china.huawei.com (7.221.188.184) Hi, Rothwell, Please hold this patch. It need more discussion and probably the flush can be simply removed. On Thu, Dec 21, 2023 at 06:38:03PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the mm tree, today's linux-next build (x86_64 allnoconfig) > failed like this: > > x86_64-linux-gnu-ld: init/main.o: in function `kernel_init': > main.c:(.ref.text+0xbf): undefined reference to `flush_module_init_free_work' > > Caused by commit > > 1d8053432676 ("modules: wait do_free_init correctly") > > This build has > # CONFIG_MODULES is not set > > I have applied this (hack) patch for today. > > From: Stephen Rothwell > Date: Thu, 21 Dec 2023 18:27:07 +1100 > Subject: [PATCH] fix up for "modules: wait do_free_init correctly" > > Signed-off-by: Stephen Rothwell > --- > init/main.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/init/main.c b/init/main.c > index f0b7e21ac67f..1df1106ff09b 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -1407,7 +1407,9 @@ static void mark_readonly(void) > * flushed so that we don't hit false positives looking for > * insecure pages which are W+X. > */ > +#ifdef CONFIG_MODULES > flush_module_init_free_work(); > +#endif > mark_rodata_ro(); > rodata_test(); > } else > -- > 2.43.0 > > -- > Cheers, > Stephen Rothwell -- Cheers, Changbin Du