bus: mhi: Remove include of rwlock_types.h
Subsystems (2)
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.
--- include/linux/mhi.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/mhi.h +1 -2
@@ -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
Quoted 11 lines · Sebastian Andrzej Siewior
From: Clark Williams <[email protected]>
rwlock.hshould not be included directly. Insteadlinux/splinlock.hshould be included. Including it directly will break the RT build.Also there is no point in including
_types.hheaders directly. There is no benefit in including the type without the accessor.Fixes 0cbf260820fa7 ("bus: mhi: core: Add support for registering MHI controllers")Signed-off-by Clark Williams <[email protected]>Signed-off-by Sebastian Andrzej Siewior <[email protected]>
Thanks,
Mani
Quoted 23 lines
--- include/linux/mhi.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)include/linux/mhi.h +1
-2@@ -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
Manivannan Sadhasivam
AppliedQuoted 11 lines · Sebastian Andrzej Siewior
From: Clark Williams <[email protected]>
rwlock.hshould not be included directly. Insteadlinux/splinlock.hshould be included. Including it directly will break the RT build.Also there is no point in including
_types.hheaders directly. There is no benefit in including the type without the accessor.Fixes 0cbf260820fa7 ("bus: mhi: core: Add support for registering MHI controllers")Signed-off-by Clark Williams <[email protected]>Signed-off-by Sebastian Andrzej Siewior <[email protected]>
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@@ -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