Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp948069rwb; Thu, 12 Jan 2023 14:42:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+Pc7C9IhgOgvsC6qVYnRgmY7jChsakCSUKzhWG9HPSfbkF5mK+5WoU+hOXAqdQMMgYIos X-Received: by 2002:a17:907:62a9:b0:85d:dd20:60a2 with SMTP id nd41-20020a17090762a900b0085ddd2060a2mr12209440ejc.7.1673563358102; Thu, 12 Jan 2023 14:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673563358; cv=none; d=google.com; s=arc-20160816; b=o8EPDRmOc0xsifxnLmWH5pIDmLbFAcMVIGKc1fXXzztZYmJz1G8iSYXQwZHlRVwWzI biKizhlk18ZF15j300bQtnMdtqIHHkSpAkahvCL7ofPSfnCV47SvIOuvp5f6iMawnIqT 5/hA1EIqgaISE8bAXgMd7MSJMWy+njP9OMvcu7sbVzBMfkdm72FN8TncccgQ4X/zRAru Kixfq2JxPgro0LodHwVR37k494nRxduZuUoOTpK15rpaxmTHKyDy6ga/rneavQtUi70G w3vh1PJEa5tNqe6/EMK9g2+VK388sKnhrgI38VLPP2kt2vJECHlrDkz0gPPVc39Rq0Ql pdFQ== 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=21qOr5ofjI0VZ+FaLxZNWR9dKNLETTZnsIGn68IKTlk=; b=AOuvDT3qHtpVL7xhjTVtyZwhOsbT6qXUG5XnHLppZOK/41UPm4vqr/GWxSvjiwqbFC N68OKGmzFQmpunkYt60adCA6qffmQXx+8OC0uwZKSGonhihazOur2/CP3eeDgOFKMrQY eZlWBP/d3SIEH++kZaoGjob6o87rr+ucdySfrxxPoTW1DqsoFz7ml/al7M/NGjjZUAsk EWsxcFVGRAPtzVxjqApZvF8xKtjMcUuxZ/aOdtiWbFZzqs4RDehtlHmSxIxc+FmzA+u6 igZalHbpzcBXfkgsrQt8AiczFzt9KGIVS/B7Jaox4lKku8syljc4d+KFWhScKFPIio2j +qjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ieaVvY3n; 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 t4-20020a056402524400b0046bd9b65cd9si11132803edd.242.2023.01.12.14.42.25; Thu, 12 Jan 2023 14:42:38 -0800 (PST) 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=ieaVvY3n; 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 S232125AbjALWHt (ORCPT + 50 others); Thu, 12 Jan 2023 17:07:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjALWGk (ORCPT ); Thu, 12 Jan 2023 17:06:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5726DD4; Thu, 12 Jan 2023 13:55:58 -0800 (PST) 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 79C0262174; Thu, 12 Jan 2023 21:55:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA2D7C433EF; Thu, 12 Jan 2023 21:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673560557; bh=PiMWPgePScKOV0uoyAba+JA0J1HRl0Cq4MC1tYQpJ2I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ieaVvY3nG9tFozYB829OQL4xsKrLLExAZQQ/gKKeLggpsaa7ibA0jEqO73ITQggos v0TRc4N275UabsCNRMqf0ae6dxvAGVmADjDesNdW4wn24Fweou7DJHu2G49sABOElM fF3ThLKH3cldAsnBbIsBlCvU/srsCqL1G6MXK9QPlQrccCpCRivPbqzOLllK6OkiRA tcd6txb3MbRKzs4cCbOh7GJMHZyVWpTYbeVyHgWjuoyMik23zCm4kk3+9FQHSyoxmF ISmPED5Z+8hgi5nL5LIo10efpRJMggv5sWl9hYbQ81HeUy1Wlh2vvliRWkxuX0tI8A x7oOmaLMRaPyQ== Date: Thu, 12 Jan 2023 21:55:52 +0000 From: Conor Dooley To: Conor Dooley , jszhang@kernel.org Cc: Jisheng Zhang , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Heiko Stuebner , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, Guo Ren , Andrew Jones Subject: Re: [PATCH v3 10/13] riscv: alternative: patch alternatives in the vDSO Message-ID: References: <20230111171027.2392-1-jszhang@kernel.org> <20230111171027.2392-11-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="t6Mgjx3f2BNOzJab" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 --t6Mgjx3f2BNOzJab Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 12, 2023 at 07:48:29AM +0000, Conor Dooley wrote: > Hey Jisheng, >=20 > On Thu, Jan 12, 2023 at 01:10:24AM +0800, Jisheng Zhang wrote: > > Make it possible to use alternatives in the vDSO, so that better > > implementations can be used if possible. > >=20 > > Signed-off-by: Jisheng Zhang > > Reviewed-by: Guo Ren > > Reviewed-by: Andrew Jones >=20 > FYI, from this patch onwards the rv32 build is broken. > Should be reproduceable with the in-tree rv32_defconfig. >=20 > Unfortunately no logs for you, I've got a CI bug to fix! Here's the error: =2E./arch/riscv/kernel/alternative.c:174:21: error: incompatible pointer ty= pes passing 'const struct elf64_hdr *' to parameter of type 'const Elf32_Eh= dr *' (aka 'const struct elf32_hdr *') [-Werror,-Wincompatible-pointer-type= s] alt =3D find_section(hdr, shdr, ".alternative"); ^~~ =2E./arch/riscv/include/asm/module.h:115:60: note: passing argument to para= meter 'hdr' here static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr, ^ =2E./arch/riscv/kernel/alternative.c:174:26: error: incompatible pointer ty= pes passing 'const struct elf64_shdr *' to parameter of type 'const Elf32_S= hdr *' (aka 'const struct elf32_shdr *') [-Werror,-Wincompatible-pointer-ty= pes] alt =3D find_section(hdr, shdr, ".alternative"); ^~~~ =2E./arch/riscv/include/asm/module.h:116:25: note: passing argument to para= meter 'sechdrs' here const Elf_Shdr *sechdrs, ^ =2E./arch/riscv/kernel/alternative.c:174:6: error: incompatible pointer typ= es assigning to 'const struct elf64_shdr *' from 'const Elf32_Shdr *' (aka = 'const struct elf32_shdr *') [-Werror,-Wincompatible-pointer-types] alt =3D find_section(hdr, shdr, ".alternative"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. Thanks, Conor. --t6Mgjx3f2BNOzJab Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY8CB6AAKCRB4tDGHoIJi 0tFCAP0SCpBMI4iFNNCGroUlQ0Fd+5ofL2sPC2i+e4AjAW6TugD8Do9NPn+zAurA /29Zj40trR91yfFMsLQgNM2qHVlkZAU= =kql5 -----END PGP SIGNATURE----- --t6Mgjx3f2BNOzJab--