diff options
author | Nico Weber <thakis@chromium.org> | 2023-01-04 12:25:47 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-04 20:04:57 +0100 |
commit | a96f307af15761d9e284e83d4c1baeda3a4ae0c3 (patch) | |
tree | a80214e8f08bf2a7679f5c4dfa66ef3a2bbdfab6 /Kernel | |
parent | 0a3cc10bb6f1ff39182ee17cc3f6466efa9d629a (diff) | |
download | serenity-a96f307af15761d9e284e83d4c1baeda3a4ae0c3.zip |
Everywhere: Make global `inline` functions not `static`
`inline` already assigns vague linkage, so there's no need to
also assign per-TU linkage. Allows the linker to dedup these
functions across TUs (and is almost always just the Right Thing
to do in C++ -- this ain't C).
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index b25a47eda0..90b3e3ed76 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -1012,7 +1012,7 @@ inline ProcessID Thread::pid() const #define VERIFY_NO_PROCESS_BIG_LOCK(process) \ VERIFY(!process->big_lock().is_exclusively_locked_by_current_thread()) -inline static ErrorOr<NonnullOwnPtr<KString>> try_copy_kstring_from_user(Kernel::Syscall::StringArgument const& string) +inline ErrorOr<NonnullOwnPtr<KString>> try_copy_kstring_from_user(Kernel::Syscall::StringArgument const& string) { Userspace<char const*> characters((FlatPtr)string.characters); return try_copy_kstring_from_user(characters, string.length); |