linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the bkl-ioctl tree
@ 2010-04-29  5:49 Stephen Rothwell
  2010-04-29 20:40 ` John Kacur
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2010-04-29  5:49 UTC (permalink / raw)
  To: "Frédéric Weisbecker"
  Cc: linux-next, linux-kernel, Arnd Bergmann, John Kacur

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

Hi Frédéric,

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

drivers/scsi/3w-xxxx.c: In function 'tw_chrdev_ioctl':
drivers/scsi/3w-xxxx.c:896: error: 'inode' undeclared (first use in this function)

Caused by commit 5c9af160f830a68734f600fc0f90cba35e26727b ("scsi: Push
down BKL into ioctl functions").

I have used the version of the blk-ioctl tree from next-20100428 for
today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the bkl-ioctl tree
  2010-04-29  5:49 linux-next: build failure after merge of the bkl-ioctl tree Stephen Rothwell
@ 2010-04-29 20:40 ` John Kacur
  2010-04-29 20:50   ` Frederic Weisbecker
  0 siblings, 1 reply; 3+ messages in thread
From: John Kacur @ 2010-04-29 20:40 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: "Frédéric Weisbecker", linux-next, linux-kernel,
	Arnd Bergmann

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1732 bytes --]



On Thu, 29 Apr 2010, Stephen Rothwell wrote:

> Hi Frédéric,
> 
> After merging the bkl-ioctl tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
> 
> drivers/scsi/3w-xxxx.c: In function 'tw_chrdev_ioctl':
> drivers/scsi/3w-xxxx.c:896: error: 'inode' undeclared (first use in this function)
> 
> Caused by commit 5c9af160f830a68734f600fc0f90cba35e26727b ("scsi: Push
> down BKL into ioctl functions").
> 
> I have used the version of the blk-ioctl tree from next-20100428 for
> today.

Frederic: did you miss one of my patches to fix the scsi compile problems?

The following should have fixed the above:

>From 3605ca2d1b29511fe1c95b47c4c596f392797585 Mon Sep 17 00:00:00 2001
From: John Kacur <jkacur@redhat.com>
Date: Tue, 27 Apr 2010 10:47:43 +0200
Subject: [PATCH 04/10] bkl: Fix missing inode tw_chrdev_ioctl due to bkl pushdown
Cc: Arnd Bergmann <arnd@arndb.de>,
    Linus Torvalds <torvalds@linux-foundation.org>,
    Frederic Weisbecker <fweisbec@gmail.com>,
    Jan Blunck <jblunck@gmail.com>,
    Thomas Gleixner <tglx@linutronix.de>

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 drivers/scsi/3w-xxxx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c
index 45a737c..2957691 100644
--- a/drivers/scsi/3w-xxxx.c
+++ b/drivers/scsi/3w-xxxx.c
@@ -890,6 +890,7 @@ static long tw_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long a
 	unsigned long data_buffer_length_adjusted = 0;
 	unsigned long *cpu_addr;
 	long timeout;
+	struct inode *inode = file->f_dentry->d_inode;
 	TW_New_Ioctl *tw_ioctl;
 	TW_Passthru *passthru;
 	TW_Device_Extension *tw_dev = tw_device_extension_list[iminor(inode)];
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the bkl-ioctl tree
  2010-04-29 20:40 ` John Kacur
@ 2010-04-29 20:50   ` Frederic Weisbecker
  0 siblings, 0 replies; 3+ messages in thread
From: Frederic Weisbecker @ 2010-04-29 20:50 UTC (permalink / raw)
  To: John Kacur; +Cc: Stephen Rothwell, linux-next, linux-kernel, Arnd Bergmann

On Thu, Apr 29, 2010 at 10:40:56PM +0200, John Kacur wrote:
> 
> 
> On Thu, 29 Apr 2010, Stephen Rothwell wrote:
> 
> > Hi Frédéric,
> > 
> > After merging the bkl-ioctl tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> > 
> > drivers/scsi/3w-xxxx.c: In function 'tw_chrdev_ioctl':
> > drivers/scsi/3w-xxxx.c:896: error: 'inode' undeclared (first use in this function)
> > 
> > Caused by commit 5c9af160f830a68734f600fc0f90cba35e26727b ("scsi: Push
> > down BKL into ioctl functions").
> > 
> > I have used the version of the blk-ioctl tree from next-20100428 for
> > today.
> 
> Frederic: did you miss one of my patches to fix the scsi compile problems?
> 
> The following should have fixed the above:
> 
> From 3605ca2d1b29511fe1c95b47c4c596f392797585 Mon Sep 17 00:00:00 2001
> From: John Kacur <jkacur@redhat.com>
> Date: Tue, 27 Apr 2010 10:47:43 +0200
> Subject: [PATCH 04/10] bkl: Fix missing inode tw_chrdev_ioctl due to bkl pushdown
> Cc: Arnd Bergmann <arnd@arndb.de>,
>     Linus Torvalds <torvalds@linux-foundation.org>,
>     Frederic Weisbecker <fweisbec@gmail.com>,
>     Jan Blunck <jblunck@gmail.com>,
>     Thomas Gleixner <tglx@linutronix.de>
> 
> Signed-off-by: John Kacur <jkacur@redhat.com>
> ---
>  drivers/scsi/3w-xxxx.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c
> index 45a737c..2957691 100644
> --- a/drivers/scsi/3w-xxxx.c
> +++ b/drivers/scsi/3w-xxxx.c
> @@ -890,6 +890,7 @@ static long tw_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long a
>  	unsigned long data_buffer_length_adjusted = 0;
>  	unsigned long *cpu_addr;
>  	long timeout;
> +	struct inode *inode = file->f_dentry->d_inode;
>  	TW_New_Ioctl *tw_ioctl;
>  	TW_Passthru *passthru;
>  	TW_Device_Extension *tw_dev = tw_device_extension_list[iminor(inode)];
> -- 
> 1.6.6.1



My bad, I was really sure I integrated all of your fixes, and it even fixed
by build. I probably forgot a git-add.

Will apply this one, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-30 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29  5:49 linux-next: build failure after merge of the bkl-ioctl tree Stephen Rothwell
2010-04-29 20:40 ` John Kacur
2010-04-29 20:50   ` Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).