Skip to content

Commit 5ca28d2

Browse files
author
Ingo Molnar
committed
x86/vm86: Make sure the free_vm86(task) definition uses its parameter even in the !CONFIG_VM86 case
I ran into a case in new code where free_vm86(task) was the only consumer of the 'task' variable: arch/x86/kernel/process.c: In function ‘exit_thread’: arch/x86/kernel/process.c:118:31: error: unused variable ‘t’ [-Werror=unused-variable] Robustify the definition in the !CONFIG_VM86 case. Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5d31174 commit 5ca28d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/vm86.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static inline int handle_vm86_trap(struct kernel_vm86_regs *a, long b, int c)
8484

8585
static inline void save_v86_state(struct kernel_vm86_regs *a, int b) { }
8686

87-
#define free_vm86(t) do { } while(0)
87+
#define free_vm86(task) do { (void)(task); } while(0)
8888

8989
#endif /* CONFIG_VM86 */
9090

0 commit comments

Comments
 (0)