2015-04-13 08:09:14

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build failure after merge of the xen-tip tree

Hi all,

After merging the xen-tip tree, today's linux-next build (x86_64 allmodconfig)
failed like this:

drivers/char/tpm/xen-tpmfront.c: In function 'setup_ring':
drivers/char/tpm/xen-tpmfront.c:203:7: warning: passing argument 2 of 'xenbus_grant_ring' makes pointer from integer without a cast
rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
^
In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
include/xen/xenbus.h:206:5: note: expected 'void *' but argument is of type 'long unsigned int'
int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
^
drivers/char/tpm/xen-tpmfront.c:203:7: error: too few arguments to function 'xenbus_grant_ring'
rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
^
In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
include/xen/xenbus.h:206:5: note: declared here
int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
^

Caused by commit 1b1586eeeb8c ("xenbus_client: Extend interface to
support multi-page ring").

I have used the xen-tip tree from next-20150410 for today.
--
Cheers,
Stephen Rothwell [email protected]


Attachments:
(No filename) (819.00 B)
OpenPGP digital signature

2015-04-13 08:37:22

by Bob Liu

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the xen-tip tree

Hi Stephen,

On 04/13/2015 04:09 PM, Stephen Rothwell wrote:
> Hi all,
>
> After merging the xen-tip tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
>
> drivers/char/tpm/xen-tpmfront.c: In function 'setup_ring':
> drivers/char/tpm/xen-tpmfront.c:203:7: warning: passing argument 2 of 'xenbus_grant_ring' makes pointer from integer without a cast
> rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
> ^
> In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
> include/xen/xenbus.h:206:5: note: expected 'void *' but argument is of type 'long unsigned int'
> int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
> ^
> drivers/char/tpm/xen-tpmfront.c:203:7: error: too few arguments to function 'xenbus_grant_ring'
> rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
> ^
> In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
> include/xen/xenbus.h:206:5: note: declared here
> int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
> ^
>
> Caused by commit 1b1586eeeb8c ("xenbus_client: Extend interface to
> support multi-page ring").
>
> I have used the xen-tip tree from next-20150410 for today.
>

Sorry for this issue, I missed the xentpm-front.c file in that patch.
(Original patch from Wei Liu already included the right modification
which didn't exist in Paul's.)

Attached patch should fix this build failure.

--
Regards,
-Bob


Attachments:
0001-xen-tpmfront-fix-build-error.patch (1.30 kB)

2015-04-15 05:00:38

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the xen-tip tree

Hi all,

On Mon, 13 Apr 2015 16:36:58 +0800 Bob Liu <[email protected]> wrote:
>
> On 04/13/2015 04:09 PM, Stephen Rothwell wrote:
> >
> > After merging the xen-tip tree, today's linux-next build (x86_64 allmodconfig)
> > failed like this:
> >
> > drivers/char/tpm/xen-tpmfront.c: In function 'setup_ring':
> > drivers/char/tpm/xen-tpmfront.c:203:7: warning: passing argument 2 of 'xenbus_grant_ring' makes pointer from integer without a cast
> > rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
> > ^
> > In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
> > include/xen/xenbus.h:206:5: note: expected 'void *' but argument is of type 'long unsigned int'
> > int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
> > ^
> > drivers/char/tpm/xen-tpmfront.c:203:7: error: too few arguments to function 'xenbus_grant_ring'
> > rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
> > ^
> > In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
> > include/xen/xenbus.h:206:5: note: declared here
> > int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
> > ^
> >
> > Caused by commit 1b1586eeeb8c ("xenbus_client: Extend interface to
> > support multi-page ring").
> >
> > I have used the xen-tip tree from next-20150410 for today.
> >
>
> Sorry for this issue, I missed the xentpm-front.c file in that patch.
> (Original patch from Wei Liu already included the right modification
> which didn't exist in Paul's.)
>
> Attached patch should fix this build failure.

I am still getting this failure :-(

--
Cheers,
Stephen Rothwell [email protected]


Attachments:
(No filename) (819.00 B)
OpenPGP digital signature

2015-04-15 10:03:42

by David Vrabel

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the xen-tip tree

On 13/04/15 09:36, Bob Liu wrote:
> Hi Stephen,
>
> On 04/13/2015 04:09 PM, Stephen Rothwell wrote:
>> Hi all,
>>
>> After merging the xen-tip tree, today's linux-next build (x86_64
>> allmodconfig)
>> failed like this:
>>
>> drivers/char/tpm/xen-tpmfront.c: In function 'setup_ring':
>> drivers/char/tpm/xen-tpmfront.c:203:7: warning: passing argument 2 of
>> 'xenbus_grant_ring' makes pointer from integer without a cast
>> rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
>> ^
>> In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
>> include/xen/xenbus.h:206:5: note: expected 'void *' but argument is of
>> type 'long unsigned int'
>> int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
>> ^
>> drivers/char/tpm/xen-tpmfront.c:203:7: error: too few arguments to
>> function 'xenbus_grant_ring'
>> rv = xenbus_grant_ring(dev, virt_to_mfn(priv->shr));
>> ^
>> In file included from drivers/char/tpm/xen-tpmfront.c:17:0:
>> include/xen/xenbus.h:206:5: note: declared here
>> int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
>> ^
>>
>> Caused by commit 1b1586eeeb8c ("xenbus_client: Extend interface to
>> support multi-page ring").
>>
>> I have used the xen-tip tree from next-20150410 for today.
>>
>
> Sorry for this issue, I missed the xentpm-front.c file in that patch.
> (Original patch from Wei Liu already included the right modification
> which didn't exist in Paul's.)
>
> Attached patch should fix this build failure.

Thanks. I've folded this in.

David