Bug 17822

Summary: drivers/scsi/ipr.c implicit declaration of function 'writeq'
Product: SCSI Drivers Reporter: Teej (xteejyx)
Component: OtherAssignee: scsi_drivers-other
Status: RESOLVED CODE_FIX    
Severity: high CC: alan, klebers, wayneb
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.34 Subsystem:
Regression: No Bisected commit-id:

Description Teej 2010-09-05 14:44:38 UTC
In Gentoo, I ran "genkernel all" to compile the kernel and all modules and the following error occurred:

  CC [M]  drivers/scsi/ipr.o
drivers/scsi/ipr.c: In function 'ipr_mask_and_clear_interrupts':
drivers/scsi/ipr.c:653: error: implicit declaration of function 'writeq'
make[2]: *** [drivers/scsi/ipr.o] Error 1
make[1]: *** [drivers/scsi] Error 2
Comment 1 Teej 2010-09-05 14:45:13 UTC
Note: This is the 2.6.34-gentoo-r1 kernel for ppc
Comment 2 Rolf Eike Beer 2010-09-06 11:56:17 UTC
This sounds very familar: https://bugzilla.kernel.org/show_bug.cgi?id=16971

Is this a regression from earlier releases?
Comment 3 Teej 2010-09-06 13:31:17 UTC
That does look very similar to this problem, but of course in another driver. Strangely, that is also ppc.
I have also had the same error in the 2.6.35-r5 kernel sources in Gentoo, so this hasn't since been noticed/fixed and has in fact regressed.
Comment 4 Wayne Boyer 2010-09-07 23:04:39 UTC
The problem in the IPR driver is fixed with this patch:

http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=c5f10187965f93ef7ef67da9c7c449b13b6dee1b