From: Borislav Petkov Date: Mon, 2 Nov 2020 18:12:16 +0000 (+0100) Subject: x86/insn: Add @buf_len param to insn_init() kernel-doc comment X-Git-Tag: accepted/tizen/unified/20230118.172025~7374^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=508ef28674c1fe6ac388586cb31dc0f0bbc4172c;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Masami Hiramatsu Link: https://lkml.kernel.org/r/20210304174237.31945-3-bp@alien8.de --- diff --git a/arch/x86/lib/insn.c b/arch/x86/lib/insn.c index 435630a..4d1640d 100644 --- a/arch/x86/lib/insn.c +++ b/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) diff --git a/tools/arch/x86/lib/insn.c b/tools/arch/x86/lib/insn.c index 3d9355e..31afbf0 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)