Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8726564pxu; Sun, 27 Dec 2020 17:47:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJwkcrWm7g9OgV0D22frXlQMw7ckUfxP5InqnUD+iv6cvmSKDWwl93L71JQlWGhFBdEGJr X-Received: by 2002:a05:6402:b9a:: with SMTP id cf26mr39800489edb.372.1609120020114; Sun, 27 Dec 2020 17:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609120020; cv=none; d=google.com; s=arc-20160816; b=TuJ9o5YMLasE15fv1Z7AkQv1R7bZz3Hub+DX1KDLVHXMmr5191reO2/K0lX8ZKurbY qgvojYOQBxrMq3hC/hOSTn5Y8I1T4bOafrA/AS8YghUnAnfHczVzI64Cot7WhowiGphr e+HVftg3emZc2fbNGldJOt3EQIRnQ9+HtFii74pTATixphY5n/AqcWkrY7Emx+gsV/TK xKcmMDx9zKtorAjdqL4zjak7BTRLHhjAOrihprlsEY8UpM5qN45eXctwVs2QQZt9BFB9 nK8VdMehXCk3PafbrKOs4I5oXPVcWbtE8IM0WDfOukE28zXM+70DnEh8S37OsktsPqOg U+mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7OGwOOh+QoB4gq9J55cX817SdMWgvxN1QLG0P0EXEB8=; b=maJkqK7sgVUMpn089UgQgQvfoeUHBwurWh4uxFuTFQ03zX0a/9SKpYTbHLbDeWXLry PIkdLQctCO5SBSFLMO4wgTmAGoBxwbnc1RDuCoceacyTTMFYtcXgR97MNUZwb19EHfGm I5G9IIdeIg1/e8izR0voOJi1Ho1tNRtmvEU20VCZR1eoNnvWNSaGM0SIYjhlsuBxI761 n+f+NP1Vc3Z5gwsJsBJW4dBVeOyRvFO12MsX1xgg4u0FN030oeO3WozbZWFnHTtyesaQ 80IRdPxUFCe/VghlCstpmrbHh3LlEY6VpRQ9rF4QfmzMePVbC7Io2s52NjY3/K+ZBCbi 8ixQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AL5poWRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si19979330edy.25.2020.12.27.17.46.27; Sun, 27 Dec 2020 17:47:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AL5poWRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726348AbgL1Bo6 (ORCPT + 99 others); Sun, 27 Dec 2020 20:44:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:57112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgL1Bo6 (ORCPT ); Sun, 27 Dec 2020 20:44:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5AD2D22522; Mon, 28 Dec 2020 01:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609119857; bh=+odxiDUmAkqtS67hXT2msSOU8wUvOYdpSg7ZS7qOcXw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AL5poWRTnO5hJyWIv8CyHmkn6o2A1202rwGGlFU+BJn/I032S7dALax9Ho7huXwQH nwhmjmSxmC/KDz0y3mMH/s3bNkEMVC+S6PK0osRG1E3tRyEUJzSjj7ND47JcisgWon tqLw31dqMy22ZRRGOdtuOxZzFbE5OHzcx9CX7Rk3EfPi7HgWWT6K4TXKRhPvYkezis Y06DZ3hCaa4XNrQWnUiabJ3feHVkb9QFlFj/lj4fYeLH6bH2rUJyjcJw0sGkaDsIAl a4PjSN0jOmveCPeMQ/Afbgu4sxZF1ITkH8UDIjAasuiNU/HpORjCrmfuD+jWPLmHfR RsLDnRODIV4iQ== Date: Mon, 28 Dec 2020 10:44:14 +0900 From: Masami Hiramatsu To: Borislav Petkov Cc: Andy Lutomirski , X86 ML , LKML Subject: Re: [PATCH v1 02/19] x86/insn: Add @buf_len param to insn_init() kernel-doc comment Message-Id: <20201228104414.e1061048ce09305ec0dc4c3d@kernel.org> In-Reply-To: <20201223174233.28638-3-bp@alien8.de> References: <20201223174233.28638-1-bp@alien8.de> <20201223174233.28638-3-bp@alien8.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Dec 2020 18:42:16 +0100 Borislav Petkov wrote: > From: Borislav Petkov > > It wasn't documented so add it. No functional changes. > Thank you for fixing! Acked-by: Masami Hiramatsu > Signed-off-by: Borislav Petkov > --- > arch/x86/lib/insn.c | 1 + > tools/arch/x86/lib/insn.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/x86/lib/insn.c b/arch/x86/lib/insn.c > index 404279563891..1ba994862b56 100644 > --- a/arch/x86/lib/insn.c > +++ b/arch/x86/lib/insn.c > @@ -37,6 +37,7 @@ > * insn_init() - initialize struct insn > * @insn: &struct insn to be initialized > * @kaddr: address (in kernel memory) of instruction (or copy thereof) > + * @buf_len: length of the insn buffer at @kaddr > * @x86_64: !0 for 64-bit kernel or 64-bit app > */ > void insn_init(struct insn *insn, const void *kaddr, int buf_len, int x86_64) > diff --git a/tools/arch/x86/lib/insn.c b/tools/arch/x86/lib/insn.c > index 0151dfc6da61..f3277d6e4ef2 100644 > --- a/tools/arch/x86/lib/insn.c > +++ b/tools/arch/x86/lib/insn.c > @@ -37,6 +37,7 @@ > * insn_init() - initialize struct insn > * @insn: &struct insn to be initialized > * @kaddr: address (in kernel memory) of instruction (or copy thereof) > + * @buf_len: length of the insn buffer at @kaddr > * @x86_64: !0 for 64-bit kernel or 64-bit app > */ > void insn_init(struct insn *insn, const void *kaddr, int buf_len, int x86_64) > -- > 2.29.2 > -- Masami Hiramatsu