Skip to contentSkip to conversation

mm: remove unused macro INIT_PASID

PATCH Applied Cheng-Han Wu 2 participants 2 messages Apr 27, 2025 – Apr 28, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: remove unused macro INIT_PASID

The macro INIT_PASID was originally used by mm_init_pasid. However, since commit a6cbd44093ef ("kernel/fork: Initialize mm's PASID"), mm_init_pasid has been removed.
Therefore, INIT_PASID is no longer needed and is removed.

---
 include/linux/mm_types.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/mm_types.h +0 -1
index 56d07edd01f9..e76bade9ebb1 100644
@@ -28,7 +28,6 @@
 #endif
 #define AT_VECTOR_SIZE (2*(AT_VECTOR_SIZE_ARCH + AT_VECTOR_SIZE_BASE + 1))
 
-#define INIT_PASID	0
 
 struct address_space;
 struct mem_cgroup;
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Cheng-Han Wu

The macro INIT_PASID was originally used by mm_init_pasid. However, since commit a6cbd44093ef ("kernel/fork: Initialize mm's PASID"), mm_init_pasid has been removed.
Therefore, INIT_PASID is no longer needed and is removed.

---
 include/linux/mm_types.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/mm_types.h +0 -0
index 56d07edd01f9..e76bade9ebb1 100644

include/linux/mm_types.h line 33

Quoted 7 lines
include/linux/mm_types.h +0 -1
@@ -28,7 +28,6 @@
 #endif
 #define AT_VECTOR_SIZE (2*(AT_VECTOR_SIZE_ARCH + AT_VECTOR_SIZE_BASE + 1))
 
-#define INIT_PASID	0
 
 struct address_space;
 struct mem_cgroup;