diff options
Diffstat (limited to 'kern/task.h')
-rw-r--r-- | kern/task.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kern/task.h b/kern/task.h index 4573979e..4d9142ce 100644 --- a/kern/task.h +++ b/kern/task.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2017 Richard Braun. + * Copyright (c) 2012 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,7 +21,6 @@ #include <kern/atomic.h> #include <kern/init.h> #include <kern/list.h> -#include <kern/macros.h> #include <kern/spinlock.h> #include <kern/thread.h> #include <vm/vm_map.h> @@ -54,7 +53,7 @@ task_get_kernel_task(void) static inline void task_ref(struct task *task) { - __unused unsigned long nr_refs; + unsigned long nr_refs; nr_refs = atomic_fetch_add(&task->nr_refs, 1, ATOMIC_RELAXED); assert(nr_refs != (unsigned long)-1); |