summaryrefslogtreecommitdiffstats
path: root/tools/arch
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2020-11-02 19:12:16 +0100
committerBorislav Petkov <bp@suse.de>2021-03-15 11:00:19 +0100
commit508ef28674c1fe6ac388586cb31dc0f0bbc4172c (patch)
tree562ce849becde5f107b6fd5fb7b717f4bec9a133 /tools/arch
parent9e761296c52dcdb1aaa151b65bd39accb05740d9 (diff)
downloadlinux-508ef28674c1fe6ac388586cb31dc0f0bbc4172c.tar.bz2
x86/insn: Add @buf_len param to insn_init() kernel-doc comment
It wasn't documented so add it. No functional changes. Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Link: https://lkml.kernel.org/r/20210304174237.31945-3-bp@alien8.de
Diffstat (limited to 'tools/arch')
-rw-r--r--tools/arch/x86/lib/insn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/arch/x86/lib/insn.c b/tools/arch/x86/lib/insn.c
index 3d9355ed1246..31afbf0a75f7 100644
--- a/tools/arch/x86/lib/insn.c
+++ b/tools/arch/x86/lib/insn.c
@@ -51,6 +51,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)