Skip to contentSkip to conversation

linux-next: build failure after merge of the tpmdd tree

PATCH Stephen Rothwell 2 participants 6 messages Apr 28, 2016 – May 2, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Jarkko,

After merging the tpmdd tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from /home/sfr/next/next/include/linux/rcupdate.h:38:0,
from /home/sfr/next/next/include/linux/idr.h:18,
from /home/sfr/next/next/include/linux/kernfs.h:14,
from /home/sfr/next/next/include/linux/sysfs.h:15,
from /home/sfr/next/next/include/linux/kobject.h:21,
from /home/sfr/next/next/include/linux/device.h:17,
from /home/sfr/next/next/include/linux/dma-mapping.h:6,
from /home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:18:
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c: In function 'tpm_ibmvtpm_probe':
/home/sfr/next/next/include/linux/spinlock.h:295:1: error: expected ';' before 'do'
do { \
^
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:632:2: note: in expansion of macro 'spin_lock_init'
spin_lock_init(&ibmvtpm->rtce_lock);
^

Caused by commit

28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")

A ';' was missed.

I added the following patch for today.

From: Stephen Rothwell <[email protected]>
Date: Thu, 28 Apr 2016 15:27:17 +1000
Subject: [PATCH] tpm: fix for typo in tpm/tpm_ibmvtpm.c

Fixes 28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")
---
 drivers/char/tpm/tpm_ibmvtpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_ibmvtpm.c +1 -1
index 6b22826f0e11..946025a7413b 100644
@@ -627,7 +627,7 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,
 
 	crq_q->index = 0;
 
-	dev_set_drvdata(&chip->dev, ibmvtpm)
+	dev_set_drvdata(&chip->dev, ibmvtpm);
 
 	spin_lock_init(&ibmvtpm->rtce_lock);
 
Signature · 5 lines
2.7.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 22 lines · Stephen Rothwell

Hi Jarkko,

After merging the tpmdd tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from /home/sfr/next/next/include/linux/rcupdate.h:38:0, from /home/sfr/next/next/include/linux/idr.h:18,
                 from /home/sfr/next/next/include/linux/kernfs.h:14, from /home/sfr/next/next/include/linux/sysfs.h:15, from /home/sfr/next/next/include/linux/kobject.h:21, from /home/sfr/next/next/include/linux/device.h:17, from /home/sfr/next/next/include/linux/dma-mapping.h:6, from /home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:18:
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c: In function 'tpm_ibmvtpm_probe':
/home/sfr/next/next/include/linux/spinlock.h:295:1: error: expected ';' before 'do' do {       \
 ^
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:632:2: note: in expansion of macro 'spin_lock_init'
  spin_lock_init(&ibmvtpm->rtce_lock);
  ^

Quoted 7 lines

Caused by commit

  28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")

A ';' was missed.

I added the following patch for today.

Sorry about this and thank you.

/Jarkko

Quoted 26 lines

From: Stephen Rothwell <[email protected]>
Date: Thu, 28 Apr 2016 15:27:17 +1000
Subject: [PATCH] tpm: fix for typo in tpm/tpm_ibmvtpm.c

Fixes 28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")

---
 drivers/char/tpm/tpm_ibmvtpm.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_ibmvtpm.c +0 -0
index 6b22826f0e11..946025a7413b 100644
@@ -627,7 +627,7 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,


  crq_q->index = 0;

drivers/char/tpm/tpm_ibmvtpm.c +1 -1
-	dev_set_drvdata(&chip->dev, ibmvtpm)
+	dev_set_drvdata(&chip->dev, ibmvtpm);


  spin_lock_init(&ibmvtpm->rtce_lock);

--
2.7.0

#2 lore raw

Hi Jarkko,

Quoted 46 lines · On Thu, 28 Apr 2016 12:02:24 +0300 Jarkko Sakkinen…
Quoted 22 lines · Stephen Rothwell

Hi Jarkko,

After merging the tpmdd tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from /home/sfr/next/next/include/linux/rcupdate.h:38:0, from /home/sfr/next/next/include/linux/idr.h:18,
                 from /home/sfr/next/next/include/linux/kernfs.h:14, from /home/sfr/next/next/include/linux/sysfs.h:15, from /home/sfr/next/next/include/linux/kobject.h:21, from /home/sfr/next/next/include/linux/device.h:17, from /home/sfr/next/next/include/linux/dma-mapping.h:6, from /home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:18:
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c: In function 'tpm_ibmvtpm_probe':
/home/sfr/next/next/include/linux/spinlock.h:295:1: error: expected ';' before 'do' do {       \
 ^
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:632:2: note: in expansion of macro 'spin_lock_init'
  spin_lock_init(&ibmvtpm->rtce_lock);
  ^

Quoted 7 lines

Caused by commit

  28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")

A ';' was missed.

I added the following patch for today.

Sorry about this and thank you.

/Jarkko

Quoted 10 lines

From: Stephen Rothwell <[email protected]>
Date: Thu, 28 Apr 2016 15:27:17 +1000
Subject: [PATCH] tpm: fix for typo in tpm/tpm_ibmvtpm.c

Fixes 28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")

---
 drivers/char/tpm/tpm_ibmvtpm.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 10 lines
drivers/char/tpm/tpm_ibmvtpm.c +0 -0
index 6b22826f0e11..946025a7413b 100644
@@ -627,7 +627,7 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,


  crq_q->index = 0;

drivers/char/tpm/tpm_ibmvtpm.c +1 -1
-	dev_set_drvdata(&chip->dev, ibmvtpm)
+	dev_set_drvdata(&chip->dev, ibmvtpm);
Quoted 6 lines


  spin_lock_init(&ibmvtpm->rtce_lock);

--
2.7.0

Ping?

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 59 lines · Stephen Rothwell

Hi Jarkko,

Quoted 56 lines · On Thu, 28 Apr 2016 12:02:24 +0300 Jarkko Sakkinen…
Quoted 22 lines · Stephen Rothwell

Hi Jarkko,

After merging the tpmdd tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from /home/sfr/next/next/include/linux/rcupdate.h:38:0, from /home/sfr/next/next/include/linux/idr.h:18,
                 from /home/sfr/next/next/include/linux/kernfs.h:14, from /home/sfr/next/next/include/linux/sysfs.h:15, from /home/sfr/next/next/include/linux/kobject.h:21, from /home/sfr/next/next/include/linux/device.h:17, from /home/sfr/next/next/include/linux/dma-mapping.h:6, from /home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:18:
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c: In function 'tpm_ibmvtpm_probe':
/home/sfr/next/next/include/linux/spinlock.h:295:1: error: expected ';' before 'do' do {       \
 ^
/home/sfr/next/next/drivers/char/tpm/tpm_ibmvtpm.c:632:2: note: in expansion of macro 'spin_lock_init'
  spin_lock_init(&ibmvtpm->rtce_lock);
  ^

Quoted 7 lines

Caused by commit

  28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")

A ';' was missed.

I added the following patch for today.

Sorry about this and thank you.

/Jarkko

Quoted 20 lines

From: Stephen Rothwell <[email protected]>
Date: Thu, 28 Apr 2016 15:27:17 +1000
Subject: [PATCH] tpm: fix for typo in tpm/tpm_ibmvtpm.c

Fixes 28157164b056 ("tpm: Remove useless priv field in struct tpm_vendor_specific")

---
 drivers/char/tpm/tpm_ibmvtpm.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_ibmvtpm.c +0 -0
index 6b22826f0e11..946025a7413b 100644
@@ -627,7 +627,7 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,


  crq_q->index = 0;

drivers/char/tpm/tpm_ibmvtpm.c +1 -1
-	dev_set_drvdata(&chip->dev, ibmvtpm)
+	dev_set_drvdata(&chip->dev, ibmvtpm);
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines


  spin_lock_init(&ibmvtpm->rtce_lock);

--
2.7.0

Ping?

I applied the fix and merged it.

Quoted 3 lines
Signature · 2 lines
Cheers,
Stephen Rothwell

/Jarkko

#4 lore raw

Hi Jarkko,

Quoted 2 lines · On Mon, 2 May 2016 14:10:36 +0300 Jarkko Sakkinen…

I applied the fix and merged it.

Unfortunately, you seem to have turned the leading whitespace from a TAB to spaces :-(

Signature · 2 lines
Cheers,
Stephen Rothwell
#5 lore raw
Quoted 8 lines · Stephen Rothwell

Hi Jarkko,

Quoted 2 lines · On Mon, 2 May 2016 14:10:36 +0300 Jarkko Sakkinen…

I applied the fix and merged it.

Unfortunately, you seem to have turned the leading whitespace from a TAB to spaces :-(

Fixed. Sorry. I also did cross-compilation for PPC to make sure that this works. I'll take PPC compilation as part of my testing procedure from now on in order to prevent this problem from happening again in the first place.

Quoted 3 lines
Signature · 2 lines
Cheers,
Stephen Rothwell

/Jarkko