RDMA/bng_re: Remove prefetch instruction
Subsystems (2)
PATCH 1/1 RDMA/bng_re: Remove prefetch instruction
From: Leon Romanovsky <[email protected]>
The prefetch instruction is meant to speed up access to memory referenced by its address argument. In the bng_re code path, it has no effect, because the pointer refers to a function that is executed immediately afterward.
The issue was identified due to the following kbuild compilation error:
drivers/infiniband/hw/bng_re/bng_fw.c: In function 'bng_re_creq_irq':
drivers/infiniband/hw/bng_re/bng_fw.c:278:9: error: implicit declaration of function 'prefetch' [-Wimplicit-function-declaration]
278 | prefetch(bng_re_get_qe(hwq, sw_cons, NULL));
| ^~~~~~~~
--- drivers/infiniband/hw/bng_re/bng_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/bng_re/bng_fw.c +1 -1
@@ -525,7 +525,7 @@ static irqreturn_t bng_re_creq_irq(int irq, void *dev_instance) hwq = &creq->hwq;/* Prefetch the CREQ element */ sw_cons =HWQ_CMP (hwq->cons, hwq); -prefetch (bng_re_get_qe (hwq, sw_cons,NULL )); +bng_re_get_qe (hwq, sw_cons,NULL );tasklet_schedule (&creq->creq_tasklet);return IRQ_HANDLED ;
---
base-commit: 01dad9ca37c60d08f71e2ef639875ae895deede6
change-id: 20251126-remove-prefetch-ac5cba4dc9ca
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>
Leon Romanovsky
AppliedQuoted 8 lines · Leon Romanovsky
The prefetch instruction is meant to speed up access to memory referenced by its address argument. In the
bng_recode path, it has no effect, because the pointer refers to a function that is executed immediately afterward.The issue was identified due to the following kbuild compilation error:
[...]
Applied, thanks!
[1/1] RDMA/bng_re: Remove prefetch instruction
https://git.kernel.org/rdma/rdma/c/155c9971fa88a6
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>