Commit Diff


commit - 56248200cb9b36d2cb2c595655895b7e03abd637
commit + e8059c1867bc82f1f97014db914b69187ce6c47b
blob - 33b6a1766a033676c6ba050604869de169ea45b4
blob + 5b24930828c6a570ce2dfcdf0c719d5c23630c1c
--- kernel/sched/task.c
+++ kernel/sched/task.c
@@ -135,7 +135,7 @@ struct sched_cpu_state {
 
 static struct ipc_mailbox *sched_mailbox_create(struct sched_task *task);
 static void	sched_mailbox_destroy(struct sched_task *task);
-static bool	name_equals(const char *a, const char *b);
+static bool	__attribute__((unused)) name_equals(const char *a, const char *b);
 #if defined(LENIX_DEBUG_EXIT)
 /* Enable LENIX_DEBUG_EXIT_VERBOSE to re-enable noisy exit/wait logging. */
 #endif
@@ -1189,6 +1189,7 @@ sched_task_wait(uint64_t caller_pid, int64_t pid, int 
 	}
 }
 
+#ifdef LENIX_DEBUG_EXIT
 static void __attribute__((unused))
 exit_status_table_dump(const char *tag)
 {
@@ -1211,6 +1212,13 @@ exit_status_table_dump(const char *tag)
 		serial_write("\n", 1);
 	}
 }
+#else
+static void __attribute__((unused))
+exit_status_table_dump(const char *tag)
+{
+	(void)tag;
+}
+#endif
 
 void
 sched_task_set_exit_status(struct sched_task *task, int status)