Skip to content

Commit 1f008d4

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
x86: Always inline task_size_max()
Fix: vmlinux.o: warning: objtool: handle_bug()+0x10: call to task_size_max() leaves .noinstr.text section When #UD isn't a BUG, we shouldn't violate noinstr (we'll still probably die, but that's another story). Fixes: 025768a ("x86/cpu: Use alternative to generate the TASK_SIZE_MAX constant") Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4c9c26f commit 1f008d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/page_64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void copy_page(void *to, void *from);
7575
*
7676
* With page table isolation enabled, we map the LDT in ... [stay tuned]
7777
*/
78-
static inline unsigned long task_size_max(void)
78+
static __always_inline unsigned long task_size_max(void)
7979
{
8080
unsigned long ret;
8181

0 commit comments

Comments
 (0)