summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Villemoes <ravi@prevas.dk>2025-05-07 14:12:46 +0200
committerTom Rini <trini@konsulko.com>2025-06-18 08:05:04 -0600
commit1d19bbcb68280814952bdc18d7dec6d083b2c0ef (patch)
treeb82a713196427da96ed3647073bce066553829f3
parentf0ba1435a8eee45138353f6114ae658e3802dc9d (diff)
linux/list.h: drop fallback definition of prefetch()
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>
-rw-r--r--include/linux/list.h5
1 files changed, 0 insertions, 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.
*