Commit b80db0a4 authored by Flavio Santes's avatar Flavio Santes Committed by Andrew Boie
Browse files

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: default avatarFlavio Santes <flavio.santes@intel.com>
parent 59c8f32f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
}
+2 −0
Original line number Diff line number Diff line
@@ -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);