]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
linux/list.h: drop fallback definition of prefetch()
authorRasmus Villemoes <ravi@prevas.dk>
Wed, 7 May 2025 12:12:46 +0000 (14:12 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 18 Jun 2025 14:05:04 +0000 (08:05 -0600)
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@prevas.dk>
include/linux/list.h

index e21ae03b2083c3d42ddaedb1c5baa8b5eab5f923..3dc38279716c5774571807420392ca1ae71847df 100644 (file)
@@ -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.
  *