linux-next: build failure after merge of the xen-tip tree
Subsystems (2)
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.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Hi Stephen,
Quoted 21 lines · Stephen Rothwell
Hi all,
After merging the xen-tip tree, today's linux-next build (
x86_64allmodconfig) 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 castrv = 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, ^
Quoted 5 lines
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.
Signature · 2 lines
Regards, -Bob
Quoted 1 line
From
973eacee793595b9790957186ffd27f192f5dd4fMon Sep 17 00:00:00 2001
From: Bob Liu <[email protected]>
Date: Mon, 13 Apr 2015 16:29:10 +0800
Subject: [PATCH] xen-tpmfront: fix build failure
Fix build failure caused by commit 1b1586eeeb8c ("xenbus_client: Extend interface to support multi-page ring"), xen-tpmfront was missed in that commit.
--- drivers/char/tpm/xen-tpmfront.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/char/tpm/xen-tpmfront.c +3 -2
@@ -193,6 +193,7 @@ static int setup_ring(struct xenbus_device *dev, struct tpm_private *priv)struct xenbus_transaction xbt;const char *message =NULL ;int rv; +grant_ref_t gref; priv->shr = (void *)__get_free_page (GFP_KERNEL |__GFP_ZERO);if (!priv->shr) {
@@ -200,11 +201,11 @@ static int setup_ring(struct xenbus_device *dev, struct tpm_private *priv)return -ENOMEM ; } - rv =xenbus_grant_ring (dev,virt_to_mfn (priv->shr)); + rv =xenbus_grant_ring (dev, &priv->shr,1 , &gref);if (rv <0 )return rv; - priv->ring_ref = rv; + priv->ring_ref = gref; rv =xenbus_alloc_evtchn (dev, &priv->evtchn);if (rv)
Signature · 1 line
1.7.10.4
Hi all,
Quoted 25 lines · On Mon, 13 Apr 2015 16:36:58 +0800 Bob Liu <[email protected]> wrote:
Quoted 23 lines · Stephen Rothwell
After merging the xen-tip tree, today's linux-next build (
x86_64allmodconfig) 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 castrv = 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").
Quoted 8 lines
Quoted 2 lines
I have used the xen-tip tree from next-20150410 for today.
Sorry for this issue, I missed the
xentpm-front.cfile 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 :-(
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 31 lines · Bob Liu
Hi Stephen,
Quoted 28 lines · Stephen Rothwell
Hi all,
After merging the xen-tip tree, today's linux-next build (
x86_64allmodconfig)
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 castrv = 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(structxenbus_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").
Quoted 8 lines
Quoted 2 lines
I have used the xen-tip tree from next-20150410 for today.
Sorry for this issue, I missed the
xentpm-front.cfile 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