Skip to contentSkip to conversation

bus: mhi: Remove include of rwlock_types.h

PATCH Applied Sebastian Andrzej Siewior 2 participants 3 messages Sep 15, 2020

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

PATCH 1/1 bus: mhi: Remove include of rwlock_types.h

From: Clark Williams <[email protected]>

rwlock.h should not be included directly. Instead linux/splinlock.h should be included. Including it directly will break the RT build.

Also there is no point in including _types.h headers directly. There is no benefit in including the type without the accessor.

Fixes 0cbf260820fa7 ("bus: mhi: core: Add support for registering MHI controllers")
---
 include/linux/mhi.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/mhi.h +1 -2
index c4a940d989121..2b4ed30d47294 100644
@@ -9,10 +9,9 @@
 #include <linux/device.h>
 #include <linux/dma-direction.h>
 #include <linux/mutex.h>
-#include <linux/rwlock_types.h>
 #include <linux/skbuff.h>
 #include <linux/slab.h>
-#include <linux/spinlock_types.h>
+#include <linux/spinlock.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>
 
Signature · 1 line
2.28.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Sebastian Andrzej Siewior

From: Clark Williams <[email protected]>

rwlock.h should not be included directly. Instead linux/splinlock.h should be included. Including it directly will break the RT build.

Also there is no point in including _types.h headers directly. There is no benefit in including the type without the accessor.

Fixes 0cbf260820fa7 ("bus: mhi: core: Add support for registering MHI controllers")

Thanks,
Mani

Quoted 23 lines
---
 include/linux/mhi.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/mhi.h +1 -2
index c4a940d989121..2b4ed30d47294 100644
@@ -9,10 +9,9 @@
 #include <linux/device.h>
 #include <linux/dma-direction.h>
 #include <linux/mutex.h>
-#include <linux/rwlock_types.h>
 #include <linux/skbuff.h>
 #include <linux/slab.h>
-#include <linux/spinlock_types.h>
+#include <linux/spinlock.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>
 
Signature · 1 line
2.28.0
#2 lore raw
In reply to Sebastian Andrzej Siewior
Quoted 11 lines · Sebastian Andrzej Siewior

From: Clark Williams <[email protected]>

rwlock.h should not be included directly. Instead linux/splinlock.h should be included. Including it directly will break the RT build.

Also there is no point in including _types.h headers directly. There is no benefit in including the type without the accessor.

Fixes 0cbf260820fa7 ("bus: mhi: core: Add support for registering MHI controllers")

Applied to mhi-next!

Thanks,
Mani

Quoted 23 lines
---
 include/linux/mhi.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/mhi.h +1 -2
index c4a940d989121..2b4ed30d47294 100644
@@ -9,10 +9,9 @@
 #include <linux/device.h>
 #include <linux/dma-direction.h>
 #include <linux/mutex.h>
-#include <linux/rwlock_types.h>
 #include <linux/skbuff.h>
 #include <linux/slab.h>
-#include <linux/spinlock_types.h>
+#include <linux/spinlock.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>
 
Signature · 1 line
2.28.0