Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2932243rdh; Mon, 27 Nov 2023 02:40:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbUbvFCrTzASQphy8BNVWEnI5lm0TabjTnmd2cBrdM4wfHnXgjX2BDN+ik2QUGIOLXtJMB X-Received: by 2002:a05:6a20:258b:b0:18c:4811:cf69 with SMTP id k11-20020a056a20258b00b0018c4811cf69mr9949567pzd.61.1701081602323; Mon, 27 Nov 2023 02:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701081602; cv=none; d=google.com; s=arc-20160816; b=u8bUNGJOvRq00kWJsA9xL7YG/pZdqgexCcgMWd3ynF0f569V0ySOSfhHxbFEsZX6PZ hx7vZ+mc2yelX4/OEyxNRA0LRzv4WGXCSYOCZdSkEI8I9I1RPHR7kzOLhOuEmGty3Bzm 5DRatWhQr++B1cZW/mUgOYuUhf5+Rgv/wBMSq8UaeHt8bcA+x2bJl422Zv1tOrlLWCQe E7JIePtXpDuMAvZiCOjW1NPS08emTqMxp4lJqXk05s3Vhmmj0x90qj9oYJU+JgJzd1wC T1gclEUPyI8a6dMJ/EvCfnYvDvsTqxNL5lp/JVe2e7+OqeRPv+JrORmG53D3PjUnO7Ln Urmw== 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=I9f3Z5f3HHlX5Ph6hmxbJ4NMyKrJBGUSe16mLcp9bqg=; fh=fnnjVztOn+GxtH71DKI1vOclRHHZnykyGAaqO2Nptns=; b=LfYfW8AOS+jaR6mvYcQ/gkQbq/eEwXyRJmfWZYtgi/UlFtRFuxglfxpyJzsCwSPd5L 9wFnMdXIL0rIdpf4Y33EDL8RBmCJ3AC1UAf41pjDg6cN4bx/GuImA9+COjFiiZkk4HdE LyzLy4di4yLqybAM27g9Cw71MHXbjxNNr6CtO6xmeFBQo+tQVI3jk4gbvq7wTII1icLB LmVTcNYeYtx1GFAd/6ZF9bQEc0Jyx+VZ3PLBIqkmC/f4zw8iJhsmcka4F3Avu10goCEV TFPJ7X7k+MS2Os9RA7y0Vk2j35rIWQHCml71T7VB3PU9MubJ09CzJ9f2Y1LQYZQiTkiB UFZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=trPP0gLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q88-20020a17090a17e100b00283a4089360si9913212pja.142.2023.11.27.02.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:40:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=trPP0gLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DD76B8051AB1; Mon, 27 Nov 2023 02:39:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233028AbjK0Kjp (ORCPT + 99 others); Mon, 27 Nov 2023 05:39:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232991AbjK0Kjo (ORCPT ); Mon, 27 Nov 2023 05:39:44 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6336810F for ; Mon, 27 Nov 2023 02:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1701081590; x=1732617590; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CB+2fZP2xBpokIIQMBo8XFvxl4A+THV4m/A7MXEQi6k=; b=trPP0gLRz8acAbL64fFpY9/CJAmIBAzT0UQ4Pe3EehbAwAzvN16GEdQY ANiUBDuJ1Iijkkx5LTqzvpuTu6orHjCKX9k3x7PsbzVPLTGdI7WOqpLM0 Bz1zlLWI0WtCJhlpPvGjepBxajZf46mool16OMYD4CL/XZlHIKVbPev7f fkqSqNJZ6OT37wNmsYV0zNJ8fZMVouVpvaj1H3hZzlLOMk4VYBcgweCQb sW7y7ndQ2YUisLb3O2lMxV6pNETcSoea9YLLW0PJ+3HJ1eKAP5tOwDR/c 1tjPUDYj3CYKQ4r/fN6poIsDunVNHjSyksugW5q/8LL0/63frqQJtGT00 Q==; X-CSE-ConnectionGUID: ToBQd87lTZW/CiPHi8AqRA== X-CSE-MsgGUID: OQfIFRUhT/eBCUlo5fisew== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="asc'?scan'208";a="12250684" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 27 Nov 2023 03:39:49 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 27 Nov 2023 03:39:46 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 27 Nov 2023 03:39:44 -0700 Date: Mon, 27 Nov 2023 10:39:16 +0000 From: Conor Dooley To: Jisheng Zhang CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , , Subject: Re: [PATCH] riscv: Use asm-generic for {read,write}{bwlq} and their relaxed variant Message-ID: <20231127-swell-garnish-3f2104647aa0@wendy> References: <20231123142003.1759-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="X4t7/KZjh6cGf8um" Content-Disposition: inline In-Reply-To: <20231123142003.1759-1-jszhang@kernel.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Mon, 27 Nov 2023 02:40:00 -0800 (PST) --X4t7/KZjh6cGf8um Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 23, 2023 at 10:20:03PM +0800, Jisheng Zhang wrote: > The asm-generic implementation is functionally identical to the riscv > version. >=20 > Signed-off-by: Jisheng Zhang This fails to build for nommu: /tmp/tmp.ojumpiEgOt/arch/riscv/include/asm/timex.h:20:16: error: implicit= declaration of function 'readq_relaxed' [-Werror=3Dimplicit-function-decla= ration] /tmp/tmp.ojumpiEgOt/include/asm-generic/io.h:342:23: error: conflicting t= ypes for 'readq_relaxed'; have 'u64(const volatile void *)' {aka 'long long= unsigned int(const volatile void *)'} Cheers, Conor. --X4t7/KZjh6cGf8um Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZWRx1AAKCRB4tDGHoIJi 0irzAP0RCdfnnaJu4CokpQ6Q2/Kpn4q5enQfhf/S5SrCa3QOLQD/U6teAtmdkAp4 TaY6f2exqhWTKIYqlWEjC1tLf0KZMQo= =v04p -----END PGP SIGNATURE----- --X4t7/KZjh6cGf8um--