diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-05 00:02:53 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-05 00:03:59 +0300 |
| commit | 98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4 (patch) | |
| tree | cbdba41381dc6e7a571001928eeb84996020db13 /src/uapi/proc.c | |
| parent | a6557ed0233e2193cef0ab5b4cea7f1d7f19ad5d (diff) | |
| download | kmi-98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4.tar.gz kmi-98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4.zip | |
fix some small build issues
+ Compiling for size emits memcpy() calls after they've already been
removed by LTO, so add __used attribute to counteract this.
Newer versions of GCC seem to prefer `-flto=auto` to just `-flto`, so
use that.
printf format %d -> %ld
Diffstat (limited to 'src/uapi/proc.c')
| -rw-r--r-- | src/uapi/proc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/uapi/proc.c b/src/uapi/proc.c index 5b64dce..85acb29 100644 --- a/src/uapi/proc.c +++ b/src/uapi/proc.c @@ -97,7 +97,7 @@ SYSCALL_DEFINE2(exec)(struct tcb *t, sys_arg_t bin, sys_arg_t interp) /* exec is only allowed if we own all our own resources */ if (t->refcount) - return_args1(t, ERR_INVAL) + return_args1(t, ERR_INVAL); /* mark binary to be kept */ struct mem_region *b = find_used_region(&t->sp_r, bin); @@ -267,7 +267,8 @@ SYSCALL_DEFINE1(detach)(struct tcb *t, sys_arg_t tid) orphanize(o); /* generally the thread shouldn't do anything with this information, but - * it fits really nicely into the notification framework so just do it */ + * it fits really nicely into the notification framework so just do it + */ notify(o, NOTIFY_ORPHANED); return_args1(t, OK); |
