2022-04-14 15:21:41

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] x86/process: Fix kerneldoc warning

Fix the following W=1 kernel warnings:

arch/x86/kernel/process.c:412: warning: expecting prototype for
tss_update_io_bitmap(). Prototype was for native_tss_update_io_bitmap()
instead.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
arch/x86/kernel/process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index dbaf12c43fe1..c25c1a9f5673 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -406,7 +406,7 @@ static void tss_copy_io_bitmap(struct tss_struct *tss, struct io_bitmap *iobm)
}

/**
- * tss_update_io_bitmap - Update I/O bitmap before exiting to usermode
+ * native_tss_update_io_bitmap - Update I/O bitmap before exiting to usermode
*/
void native_tss_update_io_bitmap(void)
{
--
2.20.1.7.g153144c


2022-04-16 02:45:10

by tip-bot2 for Haifeng Xu

[permalink] [raw]
Subject: [tip: x86/cleanups] x86/process: Fix kernel-doc warning due to a changed function name

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID: dbb5ab6d2c0a7397d77c9f60fe23844d4fe4e634
Gitweb: https://git.kernel.org/tip/dbb5ab6d2c0a7397d77c9f60fe23844d4fe4e634
Author: Jiapeng Chong <[email protected]>
AuthorDate: Thu, 14 Apr 2022 14:21:10 +08:00
Committer: Borislav Petkov <[email protected]>
CommitterDate: Thu, 14 Apr 2022 12:23:06 +02:00

x86/process: Fix kernel-doc warning due to a changed function name

Fix the following scripts/kernel-doc warning:

arch/x86/kernel/process.c:412: warning: expecting prototype for tss_update_io_bitmap().
Prototype was for native_tss_update_io_bitmap() instead.

[ bp: Massage. ]

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
---
arch/x86/kernel/process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index b370767..b3d2d41 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -405,7 +405,7 @@ static void tss_copy_io_bitmap(struct tss_struct *tss, struct io_bitmap *iobm)
}

/**
- * tss_update_io_bitmap - Update I/O bitmap before exiting to usermode
+ * native_tss_update_io_bitmap - Update I/O bitmap before exiting to user mode
*/
void native_tss_update_io_bitmap(void)
{