From patchwork Tue Feb 13 21:52:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 200706 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp841847dyb; Tue, 13 Feb 2024 14:25:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0MSOLhkxsexOaX7skUc8jkTZwr4EKFUkD9XAAiXm420/45k2Y9CdoGfUkfRcQI2ATYZr3wI+Wv1f7etc5fIqTvE0xWw== X-Google-Smtp-Source: AGHT+IF9og9XoXLm3mk188TxSO4NO+pTKOqf3eyi8fXoSog9E9eTZI3CdRSJjVnJGsxYOjr5K5XB X-Received: by 2002:a17:902:ac97:b0:1db:3f08:d322 with SMTP id h23-20020a170902ac9700b001db3f08d322mr821052plr.8.1707863108196; Tue, 13 Feb 2024 14:25:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707863108; cv=pass; d=google.com; s=arc-20160816; b=lvOkToc0KUyaJ3TY1a4E0wYRXS/QEveVlPETRi59/KTdHmnKNHAHOosMHcLtdzZVuI kxxdxu8tD/W7mYdcBPGdQuyTx4zOx8d9xSATDdgDYpV8OTAdYHCB1+dryZwBEEKP99Tm 8MrJck6NbrlfZci9ZcGgCOSpL6b0uQdIjWzjLd8zL2gJ3GK87WRRd6r1KK77GVMMrSiw Dh2h6ubJVdp+SlE+vgiHCsfiIZwFnKFpBSsOFfGCPQu+N9ZKpaq8RRRlNnqBpiM/v/l0 fam0yJBrwl9BrJJViB8nZWWW6gPkl/nB39cDFOJ2zVdPQTbSsOd21NQf94K8puCvXBAb f0hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=19iTsMkau0+gvmH5V9k/ovuDFOlwlqGTMwHgxTP+yrY=; fh=c4NhSAcYjLr4dBbkptxH49T06+HcYIYmYnj4OCGbaVM=; b=bCegMBGVOsnxMoPG54UgWsJEputT28FGmyVnA6AK6OWy1mnyY0TvftOnVHd/66bMbR cJkJtY6rf6AD0pMEHjAgIq8MJWpOUep6Q6GeAenZXgbrk48nuYAib1aFmgSoMIfd2f7m L9TNtFaAg+Yb+Cjv9mT1QpDCzuxTrc9MLY8fUPY4UUB+lQ/34WYtLqn/fwDTwHvdNakr YZMpsx4DrVcoVQqHvUurTDrz+ATuarMpNtAZkpPMDyKGikfsnyNRTv3u/nyh/TmDwqzh lLyW/JTn6KcXzZepn0XfmwKKykbvrU6Va42Git+PGepwAcrAa061vZbL3dJL4wL0AgZ7 EEcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Yu8ZxiHi; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64380-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64380-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCW0tYFKKgXO+4Z8d+sBgKZOqaq4vU3mGK44vjXuiepchZdPjhVKH4ylvU+ZMKcohHEI1OxUMNET8kp4tt9N/OM9ftPEkw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m4-20020a170902db0400b001d960a13feesi2652725plx.544.2024.02.13.14.25.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 14:25:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64380-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Yu8ZxiHi; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64380-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64380-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0F188B2C262 for ; Tue, 13 Feb 2024 21:53:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEE8D63101; Tue, 13 Feb 2024 21:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Yu8ZxiHi"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2Rt+DhFD" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 B3B2A62A0B; Tue, 13 Feb 2024 21:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707861144; cv=none; b=Pk7Ssv4hyvUyK80aoB7jqrpLRZw41A3eCdFFBTJsY3TjMW3dZDJcpKPl0g0ETusHtgHMGokcSX2JUrmHv7kNmkln5t30zeAHep1xTPuPaTBxrZvJPkDR8Wv3SOHhwVwSXKsFv4szSrK4nMm4mePFSAhrKKzhiibst888EFzz3Ng= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707861144; c=relaxed/simple; bh=QhnkaXRfwZQbKoRkSM8XuuMnDlLAgVIr4QBQ1D+gJF4=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=pSLIWLMZ69MAY9+fkJtAncyCED3xY3nd/Ao0/I218P/ozC1YknbqHFQBlKd+8rfgRuU9iK50qaN9V01Rgi5VI5yKtSw7lB1zByU77CcpoFIRSpgfwSlOXEHGGOzKwUBd18uQPDAOxXBS9G9sTHfiSnMBhzUwcGJJnUHe6z2CDNE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Yu8ZxiHi; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2Rt+DhFD; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 13 Feb 2024 21:52:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707861141; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=19iTsMkau0+gvmH5V9k/ovuDFOlwlqGTMwHgxTP+yrY=; b=Yu8ZxiHiCBEpHqqs4kkLkRpb+OordD6dzruPeTHSVi7gtsQQyVVYN0Y326zYKLgbpXtmgU ux3i2R4alMgsvAIPhEvocqby9SHGI3x1ELqV9bhRa3M0L1asOz0/THte+ZAw0oUXkUbxD+ ks5nA8Edir+ZLQb/37AAFGvdK9vLygMDieiX+iF1XLzBlovIhHr79bq+IL32ZHnDAwSZDU pjIB88fnqlxSM3HYrMsZ3VjdQnRaaOlX+as3nkUAlZWwGybCtUumjUM42IEuWvasAK2Zrz XASXsm/eoY9dcC6f7mx467ID4hh2JdOiyChyyi+OumGSw34ithBYkXrjtsBxRw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707861141; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=19iTsMkau0+gvmH5V9k/ovuDFOlwlqGTMwHgxTP+yrY=; b=2Rt+DhFDysl8cKT1N1O0EsmgQ5PRM0CuMVDqolX9HVMHPfEo5pKguECoeQVdxSKdxyG2BT DtvrPGKUdUjEPIAQ== From: "tip-bot2 for Randy Dunlap" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/insn-eval: Fix function param name in get_eff_addr_sib() Cc: Randy Dunlap , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240211062452.16411-1-rdunlap@infradead.org> References: <20240211062452.16411-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170786113958.398.11126392423077777213.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790824266778120340 X-GMAIL-MSGID: 1790824266778120340 The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 7d4002e8ced6d6344db0c8b0b32372b2c534085d Gitweb: https://git.kernel.org/tip/7d4002e8ced6d6344db0c8b0b32372b2c534085d Author: Randy Dunlap AuthorDate: Sat, 10 Feb 2024 22:24:52 -08:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 13 Feb 2024 22:41:25 +01:00 x86/insn-eval: Fix function param name in get_eff_addr_sib() 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 Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240211062452.16411-1-rdunlap@infradead.org --- arch/x86/lib/insn-eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/lib/insn-eval.c b/arch/x86/lib/insn-eval.c index 558a605..98631c0 100644 --- 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 insn *insn, struct pt_regs *regs, * 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: *