x86/cache: Drop legacy __read_mostly/__ro_after_init definitions

Lots of files were picking these up transitively, including lib.h

However, lib.h needs __read_mostly for printk_once() and this has the side
effect of kicking the transitive can down the road.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2024-09-09 14:59:05 +01:00
1 parent 41556be010
commit afc8d7dd30
3 files changed
+2 -4

No files matched your search

-3
View File
@@ -9,9 +9,6 @@
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
/* TODO: Phase out the use of this via cache.h */
#define __read_mostly __section(".data.read_mostly")
#ifndef __ASSEMBLY__
void cache_flush(const void *addr, unsigned int size);
+1 -1
View File
@@ -15,7 +15,7 @@
#define __cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
#endif
#if defined(CONFIG_ARM) || defined(CONFIG_X86)
#if defined(CONFIG_ARM)
/* TODO: Phase out the use of this via cache.h */
#define __ro_after_init __section(".data.ro_after_init")
#endif
+1
View File
@@ -10,6 +10,7 @@
#include <xen/types.h>
#include <xen/xmalloc.h>
#include <xen/string.h>
#include <xen/sections.h>
#define __ACCESS_ONCE(x) ({ \
(void)(typeof(x))0; /* Scalar typecheck. */ \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.