[PATCH 4/4] linux/list.h: drop fallback definition of prefetch()

Rasmus Villemoes ravi at prevas.dk
Wed May 7 14:12:46 CEST 2025


None of the list helpers use prefetch() anymore, and no C code relies
on getting this definition from list.h. In any case, such an arch/cpu
specific thing does not belong in a header that just consists of cpp
helper macros.

Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
---
 include/linux/list.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/linux/list.h b/include/linux/list.h
index e21ae03b208..3dc38279716 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -4,11 +4,6 @@
 #include <linux/stddef.h>
 #include <linux/poison.h>
 
-#ifndef ARCH_HAS_PREFETCH
-#define ARCH_HAS_PREFETCH
-static inline void prefetch(const void *x) {;}
-#endif
-
 /*
  * Simple doubly linked list implementation.
  *
-- 
2.49.0



More information about the U-Boot mailing list