Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1998283rda; Tue, 24 Oct 2023 09:14:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjK/4OtWrFlBD2wJlDOgBx/VncRbYrCfR0hVKMr1pUUhbvyoLRNr7EZFWHkimHBxEhpzGc X-Received: by 2002:a05:6a21:4985:b0:16b:977d:f7cf with SMTP id ax5-20020a056a21498500b0016b977df7cfmr3544458pzc.36.1698164079565; Tue, 24 Oct 2023 09:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698164079; cv=none; d=google.com; s=arc-20160816; b=N0+HDbcHNOpHEGCoKW7zq5MEcO2PxuZ7YERoVBiP5idvqDXBaGvTEVlEGnwkTwQOEI 3vg0N+9gRMMGSmu4oNroyb0YPqCkRSq5kg3y/ii7NmDN2LTpGb9szmhvgRrvRxqxz47R 5NWoPjp6KLjxkK+fOwM7xiENkhOaM9A+bbW7pzwYl1WLhcJnJeFodOFkMxC7RNt2n/84 Mf0Gmu0tG5p4v/sT5Vfo2dM+N36pcRYm8YlGNu1oF15e5ukFWruU9CvrilB5xqSOeyzN GtdsSFnBsCi9r7V/rabJ1lR98FHgKLrPekxpTrvohPoDwXK79EEvEcRc79EB0e4hyZB3 02JQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=d/KH2r+ZaJ0J6Pl1RXTWO+5r19ajfKZw7wzuNTxNV44=; fh=4reCoAXegxSpewmDdOk117xjAIwNAkAesy8sJGkbpV8=; b=dhUbglyWtmjG5UM334b4OUyhUXFEdOWLgKOcl9LcWd5rtApPJ97w0pNKQ7Z0y9oORx 8+cUnOjiO63//MWo95PzxHz9dpiDMciccatQWLjPlHZv9k3THpLaq2Xmorf3d9NZJA9l +AWZwqOmebGMjerB2aAL8X8ePflj7TuoabkJdLqQe3ZayYQlHdO1ulVqACxXeifoDhyo Wv7uVZP/rPKBc1o2TISSWWwHkH+K0SgitWchwZiR4RDTybNjMsPCpldezGtjlIx8Z+0Q bCbzb22Wia/2hGckZSpyL7w3hed/mGeUs84xlInyKrQciNrFsTRyW1BzdoWm+qQ6paGd FK2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id d13-20020a056a0024cd00b006b6efb7f99fsi8812282pfv.280.2023.10.24.09.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 09:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C4D618046F03; Tue, 24 Oct 2023 09:14:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234736AbjJXQOb (ORCPT + 99 others); Tue, 24 Oct 2023 12:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234820AbjJXQOa (ORCPT ); Tue, 24 Oct 2023 12:14:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91B73A1; Tue, 24 Oct 2023 09:14:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EE17C433CC; Tue, 24 Oct 2023 16:14:26 +0000 (UTC) Date: Tue, 24 Oct 2023 17:14:24 +0100 From: Catalin Marinas To: Ard Biesheuvel Cc: Stephen Rothwell , Will Deacon , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the arm64 tree Message-ID: References: <20231024172409.7b519868@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 24 Oct 2023 09:14:37 -0700 (PDT) On Tue, Oct 24, 2023 at 03:42:20PM +0200, Ard Biesheuvel wrote: > On Tue, 24 Oct 2023 at 11:55, Catalin Marinas wrote: > > > > + Ard > > > > On Tue, Oct 24, 2023 at 05:24:09PM +1100, Stephen Rothwell wrote: > > > After merging the arm64 tree, today's linux-next build (arm64 defconfig) > > > produced this warning: > > > > > > WARNING: modpost: vmlinux: section mismatch in reference: __pi_$x+0x38 (section: .text) -> __pi_map_range (section: .init.text) > > > > > > I don't know what caused this. > > > > For some reason, building linux-next doesn't inline all the functions in > > the map_range.c file and we end up with some of them in different > > sections. I didn't get this when building the arm64 for-next/core > > separately. > > > > Strange, I never ran into this before. > > I guess commit 24cc769d70d8bda055a028aa6a is implicated in this, if we > run into more trouble like this i'll look whether we can bring that > logic back in some way. > > The fix looks fine to me. Thanks. I applied this fix locally (will push it out in a bit). I added a fixes tag for a latter commit introducing map_segment() etc. -- Catalin