From: Rasmus Villemoes Date: Wed, 7 May 2025 12:12:46 +0000 (+0200) Subject: linux/list.h: drop fallback definition of prefetch() X-Git-Tag: v2025.10-rc1~118^2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d19bbcb68280814952bdc18d7dec6d083b2c0ef;p=thirdparty%2Fu-boot.git 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 --- 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. *