On Tue, Aug 16, 2022 at 09:48:16AM +0200, Sebastian Andrzej Siewior wrote:
> rwlock.h should not be included directly. Instead linux/splinlock.h
> should be included. Including it directly will break the RT build.
> 
> Remove the rwlock.h include.
> 
> Signed-off-by: Sebastian Andrzej Siewior <[email protected]>

Acked-by: Michael S. Tsirkin <[email protected]>

in fact


#ifndef __LINUX_SPINLOCK_H
# error "please don't include this file directly"
#endif

I wonder how does it build.


> ---
>  drivers/vdpa/vdpa_user/iova_domain.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/vdpa/vdpa_user/iova_domain.h 
> b/drivers/vdpa/vdpa_user/iova_domain.h
> index 4e0e50e7ac153..173e979b84a93 100644
> --- a/drivers/vdpa/vdpa_user/iova_domain.h
> +++ b/drivers/vdpa/vdpa_user/iova_domain.h
> @@ -14,7 +14,6 @@
>  #include <linux/iova.h>
>  #include <linux/dma-mapping.h>
>  #include <linux/vhost_iotlb.h>
> -#include <linux/rwlock.h>
>  
>  #define IOVA_START_PFN 1
>  
> -- 
> 2.37.2

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Reply via email to