percpu-repurpose-__percpu-tag-as-a-named-address-space-qualifier.patch removed from -mm tree
The quilt patch titled
Subject: percpu: repurpose __percpu tag as a named address space qualifier
has been removed from the -mm tree. Its filename was
percpu-repurpose-__percpu-tag-as-a-named-address-space-qualifier.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Uros Bizjak <[email protected]>
Subject: percpu: repurpose __percpu tag as a named address space qualifier
Date: Mon, 27 Jan 2025 17:05:09 +0100
The patch introduces __percpu_qual define and repurposes __percpu tag as a named address space qualifier using the new define.
Arches can now conditionally define __percpu_qual as their named address space qualifier for percpu variables.
---
include/asm-generic/percpu.h | 13 +++++++++++++ include/linux/compiler_types.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-)
include/asm-generic/percpu.h renamed from include/asm-generic/percpu.h~percpu-repurpose-__percpu-tag-as-a-named-address-space-qualifier +13 -0
@@ -6,6 +6,19 @@#include <linux/threads.h> #include <linux/percpu-defs.h> +/* +* __percpu_qual is the qualifier for the percpu named address space. +* +* Most arches use generic named address space for percpu variables but +* some arches define percpu variables in different named address space +* (on the x86 arch, percpu variable may be declared as being relative +* to the %fs or %gs segments using __seg_fs or __seg_gs named address +* space qualifier). +*/ +#ifndef __percpu_qual +# define __percpu_qual +#endif +#ifdef CONFIG_SMP /*
include/linux/compiler_types.h renamed from include/linux/compiler_types.h~percpu-repurpose-__percpu-tag-as-a-named-address-space-qualifier +1 -1
@@ -57,7 +57,7 @@ static inline void __chk_io_ptr(const vo# define __user BTF_TYPE_TAG(user)# endif # define __iomem -# define __percpu BTF_TYPE_TAG(percpu) +# define __percpu __percpu_qual BTF_TYPE_TAG(percpu)# define __rcu BTF_TYPE_TAG(rcu)# define __chk_user_ptr (x) (void)0
_
Patches currently in -mm which might be from [email protected] are