]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
entry: Always inline local_irq_{enable,disable}_exit_to_user()
authorEric Dumazet <edumazet@google.com>
Thu, 4 Dec 2025 15:31:27 +0000 (15:31 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 18 Dec 2025 09:43:52 +0000 (10:43 +0100)
commit4a824c3128998158a093eaadd776a79abe3a601a
tree8fbf40c9ba0f19c0be9e95f96b999796ce903047
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
entry: Always inline local_irq_{enable,disable}_exit_to_user()

clang needs __always_inline instead of inline, even for tiny helpers.

This saves some cycles in system call fast path, and saves 195 bytes
on x86_64 build:

$ size vmlinux.before vmlinux.after
   text    data     bss     dec     hex filename
34652814 22291961 5875180 62819955 3be8e73 vmlinux.before
34652619 22291961 5875180 62819760 3be8db0 vmlinux.after

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251204153127.1321824-1-edumazet@google.com
include/linux/irq-entry-common.h