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>
This commit is contained in:
Flavio Santes 2016-12-11 00:19:26 -06:00 committed by Andrew Boie
commit b80db0a41b
2 changed files with 6 additions and 0 deletions

View file

@ -140,6 +140,8 @@ void device_busy_set(struct device *busy_dev)
#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 @@ void device_busy_clear(struct device *busy_dev)
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
atomic_clear_bit((atomic_t *) __device_busy_start,
(busy_dev - __device_init_start));
#else
ARG_UNUSED(busy_dev);
#endif
}

View file

@ -695,6 +695,8 @@ void k_pipe_block_put(struct k_pipe *pipe, struct k_mem_block *block,
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);