Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3621512rwr; Sat, 29 Apr 2023 10:34:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vwgviUXj0fMhHMBNOIWqrVSmP7y9jHcMBjsjQ4KGp+g3WSp/2+K5gxBCFLKw996ZHX50O X-Received: by 2002:a17:90a:183:b0:236:1ec1:6d30 with SMTP id 3-20020a17090a018300b002361ec16d30mr8045778pjc.3.1682789640697; Sat, 29 Apr 2023 10:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682789640; cv=none; d=google.com; s=arc-20160816; b=ZNLke4VqvK7UUel5aehjwN17MZ0Iia+8gV7uHI4ZilGxgIuuqH9+Oo1Ax4yuguYCGf AJ8py18bve3rSEGCz44jL74C0wZWhwd/IMn6Kqnid0FYVfCNRXq6aswGxCU9HIajtypl UfkgLVmELn9yZrIitTArcBwBqB0PU4/ICFw+CrwNYOFzUWthP1lXdU7a5zZdsVdzHDa/ K9BqW7BtuHeu5ZU4c/O0t613Lh+WBDSH/eTRHHZJa0ON9XiLtbZqDpittbQJ+L6osn2C /UrQONJ6CLYRJRZwd8L0B6Vx9h+Kvfv0oBv4r6WqPxesCMPhwMj1F/SXaUJ9VsJ3gu1k NCNA== 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:dkim-signature; bh=sq6usrIlQ/28LQDt+r0twkGl5RyrXFGOWOiorZPC7k8=; b=cvUXLyIdMQ9/SO9s5akoVKdQ+pTNnwhTJQsskA2gTZ7xAuaWBaMFJqOQqITC1B8Dk4 8l4qgHnU/LjI6PjqzrOp+IqvAlpuRIjUY5WN6yO3huEzKgSyYvG78w4nvYfwaEknwS9w RDLMa+dwgbhp8ugm/LeaHTFHxIcII2tUMdrdnMdWQ89bYav71CvD17BNUVR85q7+VJ/G VSgx2HdZlb3TMTrZiL11ddgQkCV09g757D8+RR6Tqlykt/8RjGe/djCfHugNy8StwtXL Vcz3i46Qah8j/kwvl/+ulAHlQDlN9g6ErjmczlqX3Vmo6scCCfCVxvvUAVfnGtBQuIxE ZThw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nqLQ+5EC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j69-20020a638048000000b00528d1d9c7b3si1724298pgd.732.2023.04.29.10.33.45; Sat, 29 Apr 2023 10:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nqLQ+5EC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229573AbjD2RYn (ORCPT + 99 others); Sat, 29 Apr 2023 13:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjD2RYm (ORCPT ); Sat, 29 Apr 2023 13:24:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC70019A3 for ; Sat, 29 Apr 2023 10:24:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 391AB61253 for ; Sat, 29 Apr 2023 17:24:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBD71C433D2; Sat, 29 Apr 2023 17:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682789080; bh=sq6usrIlQ/28LQDt+r0twkGl5RyrXFGOWOiorZPC7k8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nqLQ+5ECtDNIbOffcTdLxO2hn87/xtKq7hEpcucl2BmkeWJIrde0onY3If9Vb4Lsv eEJaEr5jXHxr4sw1e3V3HI5PhSqxf8ODwQSADc8eeILAeLxD4tluZwAUAY4SpfYGBx xaU5JgW9xVHgGnZvHmDHV4mDSCTZat8ba/bo0ParGMu1fvvsug9vZVmuVshME1IDBv hE1smY0M/85a3miNYbXMzhoVCI7MQ+FbpGTM+U7kgx8N7YOdaLUsTsEaerg93jzxa3 RGUOFnzqYcL+rhmCVK4CjFhcr7t97m55uWjB5AIWpSwACxvTezRWzOyoRNQJ0gcGQk Wkwu4ow7NZOwA== Date: Sat, 29 Apr 2023 18:24:36 +0100 From: Conor Dooley To: Evan Green Cc: Randy Dunlap , linux-kernel@vger.kernel.org, Heiko Stuebner , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Subject: Re: [PATCH v2] RISC-V: fix sifive and thead section mismatches in errata Message-ID: <20230429-outboard-hypocrite-983e977103d2@spud> References: <20230429155247.12131-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="y0dbtxqGgkaAbUFx" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --y0dbtxqGgkaAbUFx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 29, 2023 at 10:21:39AM -0700, Evan Green wrote: > On Sat, Apr 29, 2023 at 8:52=E2=80=AFAM Randy Dunlap wrote: > > > > When CONFIG_MODULES is set, __init_or_module becomes , but when > > CONFIG_MODULES is not set, __init_or_module becomes __init. > > In the latter case, it causes section mismatch warnings: > > > > WARNING: modpost: vmlinux.o: section mismatch in reference: riscv_fill_= cpu_mfr_info (section: .text) -> sifive_errata_patch_func (section: .init.t= ext) > > WARNING: modpost: vmlinux.o: section mismatch in reference: riscv_fill_= cpu_mfr_info (section: .text) -> thead_errata_patch_func (section: .init.te= xt) > > > > Fixes: bb3f89487fd9 ("RISC-V: hwprobe: Remove __init on probe_vendor_fe= atures()") > > Signed-off-by: Randy Dunlap > > Cc: Heiko Stuebner > > Cc: Paul Walmsley > > Cc: Palmer Dabbelt > > Cc: Albert Ou > > Cc: linux-riscv@lists.infradead.org > > Cc: Conor Dooley > > Cc: Evan Green > > --- >=20 > Thanks, Randy. I'm confused at how I didn't see that when I made the > original fix. I feel like repro of these section mismatch errors > depend on some other factor I'm not understanding. In any case: Perhaps you had a cut-down config that did not enable either of the relevant ARCH_ options to get those errata compiled? Thanks for changing the fixes tag Randy, Reviewed-by: Conor Dooley Thanks, Conor. --y0dbtxqGgkaAbUFx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZE1S1AAKCRB4tDGHoIJi 0gygAP49xJB5js4hmJBkRf6uchyUWmMJgValg/hKIRsFfeVQLgD/b15lZi/lR3Od Bau17tKRXdMw89zA5WCPAgb83tghyQY= =6g9o -----END PGP SIGNATURE----- --y0dbtxqGgkaAbUFx--