Skip to contentSkip to conversation

linux-next: build failure after merge of the tip tree

PATCH Stephen Rothwell 1 participant 1 message Nov 8, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

io_uring/rw.c: In function 'io_hybrid_iopoll_delay':
io_uring/rw.c:1179:9: error: implicit declaration of function 'hrtimer_init_sleeper_on_stack'; did you mean 'hrtimer_setup_sleeper_on_stack'? [-Wimplicit-function-declaration]

 1179 |         hrtimer_init_sleeper_on_stack(&timer, CLOCK_MONOTONIC, mode);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         hrtimer_setup_sleeper_on_stack

Caused by commit

f3bef7aaa6c8 ("hrtimers: Delete hrtimer_init_sleeper_on_stack()")

interacting with commit

01ee194d1aba ("io_uring: add support for hybrid IOPOLL")

from the block tree.

I have applied the following merge fix patch.

From: Stephen Rothwell <[email protected]>
Date: Fri, 8 Nov 2024 14:06:37 +1100
Subject: [PATCH] fix up for "hrtimers: Delete hrtimer_init_sleeper_on_stack()"

interacting with commit

01ee194d1aba ("io_uring: add support for hybrid IOPOLL")

from the block tree.

---
 io_uring/rw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io_uring/rw.c +1 -1
index 93526a64ccd6..c792af8c4476 100644
@@ -1176,7 +1176,7 @@ static u64 io_hybrid_iopoll_delay(struct io_ring_ctx *ctx, struct io_kiocb *req)
 	req->flags |= REQ_F_IOPOLL_STATE;
 
 	mode = HRTIMER_MODE_REL;
-	hrtimer_init_sleeper_on_stack(&timer, CLOCK_MONOTONIC, mode);
+	hrtimer_setup_sleeper_on_stack(&timer, CLOCK_MONOTONIC, mode);
 	hrtimer_set_expires(&timer.timer, kt);
 	set_current_state(TASK_INTERRUPTIBLE);
 	hrtimer_sleeper_start_expires(&timer, mode);
Signature · 5 lines
2.45.2

-- 
Cheers,
Stephen Rothwell