2016-04-05 04:35:19

by Dutt, Sudeep

[permalink] [raw]
Subject: [PATCH char-misc-linus] misc: mic: Fix randconfig build error

Fixes randconfig build error reported at
https://lkml.org/lkml/2016/4/3/135 by ensuring that
the VOP driver selects VIRTIO.

Reported-by: Fengguang Wu <[email protected]>
Reviewed-by: Ashutosh Dixit <[email protected]>
Signed-off-by: Sudeep Dutt <[email protected]>
---
drivers/misc/mic/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/misc/mic/Kconfig b/drivers/misc/mic/Kconfig
index 2e4f3ba..89e5917 100644
--- a/drivers/misc/mic/Kconfig
+++ b/drivers/misc/mic/Kconfig
@@ -132,6 +132,7 @@ config VOP
tristate "VOP Driver"
depends on 64BIT && PCI && X86 && VOP_BUS
select VHOST_RING
+ select VIRTIO
help
This enables VOP (Virtio over PCIe) Driver support for the Intel
Many Integrated Core (MIC) family of PCIe form factor coprocessor
--
1.8.2.1


2016-04-05 04:41:15

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH char-misc-linus] misc: mic: Fix randconfig build error

On Mon, Apr 04, 2016 at 09:32:30PM -0700, Sudeep Dutt wrote:
> Fixes randconfig build error reported at
> https://lkml.org/lkml/2016/4/3/135 by ensuring that
> the VOP driver selects VIRTIO.
>
> Reported-by: Fengguang Wu <[email protected]>
> Reviewed-by: Ashutosh Dixit <[email protected]>
> Signed-off-by: Sudeep Dutt <[email protected]>
> ---
> drivers/misc/mic/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/misc/mic/Kconfig b/drivers/misc/mic/Kconfig
> index 2e4f3ba..89e5917 100644
> --- a/drivers/misc/mic/Kconfig
> +++ b/drivers/misc/mic/Kconfig
> @@ -132,6 +132,7 @@ config VOP
> tristate "VOP Driver"
> depends on 64BIT && PCI && X86 && VOP_BUS
> select VHOST_RING
> + select VIRTIO

Shouldn't it depend on this instead?

thanks,

greg k-h

2016-04-05 05:03:11

by Dutt, Sudeep

[permalink] [raw]
Subject: Re: [PATCH char-misc-linus] misc: mic: Fix randconfig build error

On Mon, 2016-04-04 at 21:41 -0700, Greg Kroah-Hartman wrote:
> On Mon, Apr 04, 2016 at 09:32:30PM -0700, Sudeep Dutt wrote:
> > Fixes randconfig build error reported at
> > https://lkml.org/lkml/2016/4/3/135 by ensuring that
> > the VOP driver selects VIRTIO.
> >
> > Reported-by: Fengguang Wu <[email protected]>
> > Reviewed-by: Ashutosh Dixit <[email protected]>
> > Signed-off-by: Sudeep Dutt <[email protected]>
> > ---
> > drivers/misc/mic/Kconfig | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/misc/mic/Kconfig b/drivers/misc/mic/Kconfig
> > index 2e4f3ba..89e5917 100644
> > --- a/drivers/misc/mic/Kconfig
> > +++ b/drivers/misc/mic/Kconfig
> > @@ -132,6 +132,7 @@ config VOP
> > tristate "VOP Driver"
> > depends on 64BIT && PCI && X86 && VOP_BUS
> > select VHOST_RING
> > + select VIRTIO
>
> Shouldn't it depend on this instead?

Hi Greg,

The documentation for "config VIRTIO" states that "This option is
selected by any driver which implements the virtio bus". I verified that
this patch fixes the build for the randconfig which was failing earlier.

Thanks,
Sudeep Dutt

2016-04-05 06:03:12

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH char-misc-linus] misc: mic: Fix randconfig build error

On Mon, Apr 04, 2016 at 10:00:23PM -0700, Sudeep Dutt wrote:
> On Mon, 2016-04-04 at 21:41 -0700, Greg Kroah-Hartman wrote:
> > On Mon, Apr 04, 2016 at 09:32:30PM -0700, Sudeep Dutt wrote:
> > > Fixes randconfig build error reported at
> > > https://lkml.org/lkml/2016/4/3/135 by ensuring that
> > > the VOP driver selects VIRTIO.
> > >
> > > Reported-by: Fengguang Wu <[email protected]>
> > > Reviewed-by: Ashutosh Dixit <[email protected]>
> > > Signed-off-by: Sudeep Dutt <[email protected]>
> > > ---
> > > drivers/misc/mic/Kconfig | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/drivers/misc/mic/Kconfig b/drivers/misc/mic/Kconfig
> > > index 2e4f3ba..89e5917 100644
> > > --- a/drivers/misc/mic/Kconfig
> > > +++ b/drivers/misc/mic/Kconfig
> > > @@ -132,6 +132,7 @@ config VOP
> > > tristate "VOP Driver"
> > > depends on 64BIT && PCI && X86 && VOP_BUS
> > > select VHOST_RING
> > > + select VIRTIO
> >
> > Shouldn't it depend on this instead?
>
> Hi Greg,
>
> The documentation for "config VIRTIO" states that "This option is
> selected by any driver which implements the virtio bus". I verified that
> this patch fixes the build for the randconfig which was failing earlier.

Ah, you are right, nevermind, I'll queue this up soon...

thanks,

greg k-h