diff mbox

[vfio] vfio: virqfd_lock can be static

Message ID 20150316234321.GA24901@lkp-sb04 (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu March 16, 2015, 11:43 p.m. UTC
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 virqfd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Eric Auger March 17, 2015, 10:49 a.m. UTC | #1
Reviewed-by: Eric Auger <eric.auger@linaro.org>

On 03/17/2015 12:43 AM, kbuild test robot wrote:
> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
>  virqfd.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/virqfd.c b/drivers/vfio/virqfd.c
> index 5967899..3d19aaf 100644
> --- a/drivers/vfio/virqfd.c
> +++ b/drivers/vfio/virqfd.c
> @@ -16,7 +16,7 @@
>  #include <linux/slab.h>
>  
>  static struct workqueue_struct *vfio_irqfd_cleanup_wq;
> -DEFINE_SPINLOCK(virqfd_lock);
> +static DEFINE_SPINLOCK(virqfd_lock);
>  
>  int __init vfio_virqfd_init(void)
>  {
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/vfio/virqfd.c b/drivers/vfio/virqfd.c
index 5967899..3d19aaf 100644
--- a/drivers/vfio/virqfd.c
+++ b/drivers/vfio/virqfd.c
@@ -16,7 +16,7 @@ 
 #include <linux/slab.h>
 
 static struct workqueue_struct *vfio_irqfd_cleanup_wq;
-DEFINE_SPINLOCK(virqfd_lock);
+static DEFINE_SPINLOCK(virqfd_lock);
 
 int __init vfio_virqfd_init(void)
 {