Skip to contentSkip to conversation

arm_mpam: Remove duplicate linux/srcu.h header

PATCH In review Jiapeng Chong 3 participants 3 messages Nov 21, 2025 – Nov 25, 2025 MPAM driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm_mpam: Remove duplicate linux/srcu.h header

./drivers/resctrl/mpam_internal.h: linux/srcu.h is included more than once.

---
 drivers/resctrl/mpam_internal.h | 1 -
 1 file changed, 1 deletion(-)
drivers/resctrl/mpam_internal.h +0 -1
index e79c3c47259c..f733bed011bd 100644
@@ -14,7 +14,6 @@
 #include <linux/mutex.h>
 #include <linux/srcu.h>
 #include <linux/spinlock.h>
-#include <linux/srcu.h>
 #include <linux/types.h>
 
 #define MPAM_MSC_MAX_NUM_RIS	16
Signature · 1 line
2.43.5
reviewer
#1 lore raw

Hi, Jiapeng,

Quoted 2 lines · Jiapeng Chong

./drivers/resctrl/mpam_internal.h: linux/srcu.h is included more than once.

Do you need to add "Fixes:" here?

Fixes 8c90dc68a5de ("arm_mpam: Probe the hardware features resctrl supports")

Not sure it's necessary for this minor fix but Documentations/process/submitting-patches.rst says "If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with at least the first 12
characters of the SHA-1 ID, and the one line summary. Do not split the tag
across multiple lines, tags are exempt from the "wrap at 75 columns" rule in
order to simplify parsing scripts."

Quoted 12 lines
---
  drivers/resctrl/mpam_internal.h | 1 -
  1 file changed, 1 deletion(-)
drivers/resctrl/mpam_internal.h +0 -0
index e79c3c47259c..f733bed011bd 100644

drivers/resctrl/mpam_internal.h line 19

Quoted 7 lines
drivers/resctrl/mpam_internal.h +0 -1
@@ -14,7 +14,6 @@
  #include <linux/mutex.h>
  #include <linux/srcu.h>
  #include <linux/spinlock.h>
-#include <linux/srcu.h>
  #include <linux/types.h>
 
  #define MPAM_MSC_MAX_NUM_RIS	16

Thanks.

-Fenghua

maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Jiapeng Chong

Hi Jiapeng,

drivers/resctrl/mpam_internal.h line 17

Quoted 12 lines · Jiapeng Chong

./drivers/resctrl/mpam_internal.h: linux/srcu.h is included more than once.

drivers/resctrl/mpam_internal.h +0 -1
index e79c3c47259c..f733bed011bd 100644
@@ -14,7 +14,6 @@
 #include <linux/mutex.h>
 #include <linux/srcu.h>
 #include <linux/spinlock.h>
-#include <linux/srcu.h>
 #include <linux/types.h>

(If you removed the other entry instead the list would be alphabetical order)

Either way,

Thanks,

James