kernel: Add ARG_UNUSED macro to avoid compiler warnings
The ARG_UNUSED macro is added to avoid compiler warnings.
Change-Id: Ie9b72c94191318c1d667d7929eb029098c62e993
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
diff --git a/kernel/unified/device.c b/kernel/unified/device.c
index 24763a3..65d3616 100644
--- a/kernel/unified/device.c
+++ b/kernel/unified/device.c
@@ -140,6 +140,8 @@
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
atomic_set_bit((atomic_t *) __device_busy_start,
(busy_dev - __device_init_start));
+#else
+ ARG_UNUSED(busy_dev);
#endif
}
@@ -148,5 +150,7 @@
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
atomic_clear_bit((atomic_t *) __device_busy_start,
(busy_dev - __device_init_start));
+#else
+ ARG_UNUSED(busy_dev);
#endif
}
diff --git a/kernel/unified/pipes.c b/kernel/unified/pipes.c
index b9ac73e..2528612 100644
--- a/kernel/unified/pipes.c
+++ b/kernel/unified/pipes.c
@@ -695,6 +695,8 @@
struct k_pipe_async *async_desc;
size_t dummy_bytes_written;
+ ARG_UNUSED(bytes_to_write);
+
/* For simplicity, always allocate an asynchronous descriptor */
_pipe_async_alloc(&async_desc);