From 1d19bbcb68280814952bdc18d7dec6d083b2c0ef Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Wed, 7 May 2025 14:12:46 +0200 Subject: [PATCH] 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 --- 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 #include -#ifndef ARCH_HAS_PREFETCH -#define ARCH_HAS_PREFETCH -static inline void prefetch(const void *x) {;} -#endif - /* * Simple doubly linked list implementation. * -- 2.47.2