mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
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).
This commit is contained in:
parent
0a3cc10bb6
commit
a96f307af1
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue