On 08/08/2023 10:46 am, Jan Beulich wrote: > There's no need for every arch to define its own identical copy. If down > the road an arch needs to customize it, we can add #ifndef around the > common #define. > > To be on the safe side build-breakage-wise, change a couple of #include > <asm/cache.h> to the xen/ equivalent. > > Signed-off-by: Jan Beulich <jbeul...@suse.com>
Could we find a better place to put this? __read_mostly is just a section. It's relationship to the cache is only microarchitectural, and is not the same kind of information as the rest of cache.h __ro_after_init is only here because __read_mostly is here, but has absolutely nothing to do with caches whatsoever. If we're cleaning them up, they ought to live elsewhere. ~Andre