Commit 828f7350 authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrs: prevent a warning

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent d755255f
......@@ -233,6 +233,8 @@ void wrs_shm_write_caller(struct wrs_shm_head *head, int flags,
pr_debug("caller of a function wrs_shm_write is %s, called for \"%s\" "
"with the flag \"%s\"\n", caller, head->name, msg);
(void) *msg; /* if pr_debug() is empty, we'd have "unused variable" */
head->sequence += 2;
if (flags == WRS_SHM_WRITE_BEGIN) {
if (head->sequence & WRS_SHM_LOCK_MASK)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment