diff --git a/kernel/relay.c b/kernel/relay.c index ff1fa65a80134b..32ce6ccc3218ab 100644 --- a/kernel/relay.c +++ b/kernel/relay.c @@ -334,7 +334,9 @@ static struct rchan_callbacks default_channel_callbacks = { */ static void wakeup_readers(struct irq_work *work) { - struct rchan_buf *buf = container_of(work, struct rchan_buf, wakeup_work); + struct rchan_buf *buf; + + buf = container_of(work, struct rchan_buf, wakeup_work); wake_up_interruptible(&buf->read_wait); }