From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (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 A5AA5D520; Wed, 25 Sep 2024 18:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727287371; cv=none; b=eBfSJwDtPfILa2uVY4/9rXNwjI80TF1s2Goin3UvhPeYN0q74krIpgpgAuxAVdDyVvIwyokymEh6BfxXZLyOuzMsuT0ac/afdF7pVHf/vnPPxp6xjQWDCrzbj9TZOAsruezJeXpObpU/rDco0ZRY6Ps/uo7jDWWmKmbMwNOJT0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727287371; c=relaxed/simple; bh=ubZtjqgkEHcSLKdzn6nGGJAAygV9tuUOg+CSvkLi0js=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=JhNH77yRlPxoVt0ojnGZd7zEpkL5XycT5GU5Er+UmGYpt2jkU/ex8slEs9qyJJvw1RabtvVaNjcrfg9Ap8DrK16s9T+pNguLTtOZVk37tKhPu3cDuKpl2cGHveB7XAQCZsdUTvFI2qRMFLKihwnKQaHQe/ZISwRTgu1LaZCSKDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=RyC5TMn7; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="RyC5TMn7" DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 7B12242B30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1727287363; bh=KhWuW/hYDA06KYXwRlFbqTyp8jMGMd12FTTtzzUby4U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RyC5TMn7I/DipJ8q07f3+pbjTqMT5u8yWGSBxpiUQddzY+OFcYk7iAvPnRBm0Sm+P M4F3IqGx3osI60chgcozOAZChMVSNAOE6ka1Dcr8QhSPWZoeZJeiAvUAkUtslDiINf QevD3Ivw9WalwF/zfi8hlziaIHPtRcJHpNFBtjkdo//QV9TTzabLiz5dLqvfjtrgZ6 fFvAoiSWDsYqTgZeG6dTV1mTufwn0o5zaXDeF90X2TccQAHLIVSatI/X8cpb75zDhZ ZCJWOznTgLP0C4/P+Z2UPGFCaZfznWiaByjMp2YKksDeFqlYvp2o68KijWns2aba7E /jr+2VxofeNFw== Received: from localhost (bo-18-143-171.service.infuturo.it [151.18.143.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 7B12242B30; Wed, 25 Sep 2024 18:02:42 +0000 (UTC) From: Jonathan Corbet To: Nam Cao , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?utf-8?Q?Cl=C3=A9ment_L=C3=A9ger?= , Evan Green , Charlie Jenkins , Andrew Jones , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nam Cao Subject: Re: [PATCH] Documentation: riscv: Fix typo MIMPLID -> MIMPID In-Reply-To: <20240925142532.31808-1-namcao@linutronix.de> References: <20240925142532.31808-1-namcao@linutronix.de> Date: Wed, 25 Sep 2024 12:02:39 -0600 Message-ID: <87h6a3fw74.fsf@trenco.lwn.net> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Nam Cao writes: > The macro that is really defined is RISCV_HWPROBE_KEY_MIMPID, not > RISCV_HWPROBE_KEY_MIMPLID (difference is the 'L'). > > Also, the riscv privileged specification names the register "mimpid", not > "mimplid". > > Correct these typos. > > Signed-off-by: Nam Cao > --- > ask me how I found out.. > > Documentation/arch/riscv/hwprobe.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/riscv/hwprobe.rst > index 85b709257918..fb0affa61eb9 100644 > --- a/Documentation/arch/riscv/hwprobe.rst > +++ b/Documentation/arch/riscv/hwprobe.rst > @@ -51,7 +51,7 @@ The following keys are defined: > * :c:macro:`RISCV_HWPROBE_KEY_MARCHID`: Contains the value of ``marchid``, as > defined by the RISC-V privileged architecture specification. > > -* :c:macro:`RISCV_HWPROBE_KEY_MIMPLID`: Contains the value of ``mimplid``, as > +* :c:macro:`RISCV_HWPROBE_KEY_MIMPID`: Contains the value of ``mimpid``, as > defined by the RISC-V privileged architecture specification. You should be able to just say RISCV_HWPROBE_KEY_MIMPID() without the :c:macro: markup and have the right thing happen. Thanks, jon