From patchwork Sat Dec 16 19:50:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 179920 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp399986dyi; Sat, 16 Dec 2023 11:55:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1qlSy4pB4OesahqvtuUcOghlzw9G0rTFFlHOTsImIpCiLOM5jqyikMcCgXJAEZk7NekDP X-Received: by 2002:ac2:4d82:0:b0:50e:27df:74da with SMTP id g2-20020ac24d82000000b0050e27df74damr131914lfe.118.1702756559247; Sat, 16 Dec 2023 11:55:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702756559; cv=none; d=google.com; s=arc-20160816; b=06e9Gym44477g8/eAT75IDDUMC3MfFKel01/9qEADx8BtT3t7rT1xKiA1Jj3O2DBlN QNbfc5Yg14FKzhf1aCtU7EZXOACi+e3b1L6/X7PUgxndn2zzMN6qGrt5mgxcrnFjOpWu U9z7VyNVnA6HUaFslZ5zBbWHdL2I+gIB508fg5fwYinzCM/ALmUTfTyKHVgT7S5WQHJ/ FJ3KLcu6tSYAN3HUiRaac9Yr2z8/YzfzZ2DiDiAAlNeiOqNoQrv63rqbX04aoUMmAN4W kBdtaV0xDquFwF7qvMGQWssHjHqFv7D2nLt1rDS0kbpTw4t1ohXPyYMDgw7+frC3oUKb 1OnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8Gi4x3Inp2xxLyTPy1lJV9jnNXXCCUrVYWMh7677tSA=; fh=wjzWRtN/xYGnn82q+R9UnZJVTfNCDDfxOelQuv/78fU=; b=pAynDpnDrxqeiwzYf5zdBUdh/RfhaIG4YNF/nrhLrmvBNWvFu5Nk8Ypl7xV7CHxde+ 0MAqMmXtRFf8hax7NKyBXl1H3RQBd9hLiEtxSmIx5IrSaEmu3jAc6d1Z3NC+0w9B/bJQ TfKj9g0zkfoyLlsEow1nXR7JTSnW2bi9bHtNeHJoeFj0Y0SI9PSqPKp/lTdrOGH7XqFd CCKhpbuwzdwI3V5T0r4JghS8PYm4/wC5nStCuIv77ulUhSsJ3j7Z2P5NDUzER5Fk4ktr lAGKVfVp76c0KQdFCvCv8TWY5XsAFCB43IaGV0x1JVCBNmhK3xTd8snpqa8rDfgTkTpR iy1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=n7WvxKfH; spf=pass (google.com: domain of linux-kernel+bounces-2351-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2351-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j27-20020a170906279b00b00a1d3bc7754dsi8567722ejc.853.2023.12.16.11.55.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 11:55:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2351-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=n7WvxKfH; spf=pass (google.com: domain of linux-kernel+bounces-2351-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2351-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 230531F24451 for ; Sat, 16 Dec 2023 19:50:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B162C32C8D; Sat, 16 Dec 2023 19:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="n7WvxKfH" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 318FF321B9 for ; Sat, 16 Dec 2023 19:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=8Gi4x3Inp2xxLyTPy1lJV9jnNXXCCUrVYWMh7677tSA=; b=n7WvxKfH0MpM2VjSa9rOtaTbAu cnOVlkXGSRkE83w90MS9IvndZBoHQd+xan5z0Ac44AQWimTRq2hA/CWtLovV6FxG7/J/5/mBWH12f GrDXsxFb1Gvx6gHLCHDURtUAyyBzwpwWkXm4G6JGruJUlRbXynwNHpObsBOlSMCbsDZckGKMkU7hr hcG5phmB1QQ+uE+QEa5lOw19WzX63oIWMKbJzoplBIroz/YPDLfmgHAekDTXARs8ibIPRE59V3U9/ GttyjrkhjeUgJt/yzz1ZoTOhqN5PuCCAQo6mdA3wvF/PdtPeuFE7qwS8HXRP08Fh6pec0lyt03xKJ pSxYX2Ug==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rEaft-006eQs-2C; Sat, 16 Dec 2023 19:50:13 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Subject: [PATCH] x86/insn-eval: fix function param name in get_eff_addr_sib() Date: Sat, 16 Dec 2023 11:50:13 -0800 Message-ID: <20231216195013.29117-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785469661620649740 X-GMAIL-MSGID: 1785469661620649740 Change "regoff" to "base_offset" in 2 places in the kernel-doc comments to prevent warnings: insn-eval.c:1152: warning: Function parameter or member 'base_offset' not described in 'get_eff_addr_sib' insn-eval.c:1152: warning: Excess function parameter 'regoff' description in 'get_eff_addr_sib' Signed-off-by: Randy Dunlap Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org --- arch/x86/lib/insn-eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -- a/arch/x86/lib/insn-eval.c b/arch/x86/lib/insn-eval.c --- a/arch/x86/lib/insn-eval.c +++ b/arch/x86/lib/insn-eval.c @@ -1129,15 +1129,15 @@ static int get_eff_addr_modrm_16(struct * get_eff_addr_sib() - Obtain referenced effective address via SIB * @insn: Instruction. Must be valid. * @regs: Register values as seen when entering kernel mode - * @regoff: Obtained operand offset, in pt_regs, associated with segment + * @base_offset: Obtained operand offset, in pt_regs, associated with segment * @eff_addr: Obtained effective address * * Obtain the effective address referenced by the SIB byte of @insn. After * identifying the registers involved in the indexed, register-indirect memory * reference, its value is obtained from the operands in @regs. The computed * address is stored @eff_addr. Also, the register operand that indicates the - * associated segment is stored in @regoff, this parameter can later be used to - * determine such segment. + * associated segment is stored in @base_offset; this parameter can later be + * used to determine such segment. * * Returns: *