Bug 9970

Summary: ohci-hcd.c compilation warning on 2.6.24.2 & 2.6.25-rc1-git2
Product: Drivers Reporter: BedOS_Gui (rufus-azrael)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: CLOSED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24.2 & 2.6.25-rc1-git2 Subsystem:
Regression: --- Bisected commit-id:
Attachments: .config

Description BedOS_Gui 2008-02-13 14:49:18 UTC
Latest working kernel version:
Earliest failing kernel version:
Distribution: gentoo ~amd64
Hardware Environment: amd64 X2
Software Environment: gcc-4.2.2
Problem Description:
When building above kernels this compilation warning occurs for drivers/usb/host

  CC      drivers/usb/host/ohci-hcd.o
In file included from drivers/usb/host/ohci-hcd.c:973:
drivers/usb/host/ohci-pci.c: In function ‘ohci_pci_start’:
drivers/usb/host/ohci-pci.c:222: attention : unused variable ‘pdev’

Steps to reproduce:
Comment 1 BedOS_Gui 2008-02-13 14:49:34 UTC
Created attachment 14809 [details]
.config
Comment 2 BedOS_Gui 2008-02-18 00:57:35 UTC
This warning is in discussion in this post :

http://lkml.org/lkml/2007/8/21/225
Comment 3 BedOS_Gui 2008-02-18 01:06:37 UTC
Perhaps a patch in this post :

http://lkml.org/lkml/2007/12/13/135
Comment 4 Natalie Protasevich 2008-04-21 23:38:45 UTC
Fixed now by commit 9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e.