在redhat linux 9.0下
编译环境skyeye
uclinux版本为20030909
当编译内核加载USB的时候出现一下错误:
hcd.c: In function `hcd_submit_urb':
hcd.c:1206: structure has no member named `pdev'
hcd.c:1212: structure has no member named `pdev'
hcd.c: In function `usb_hcd_giveback_urb':
hcd.c:1484: structure has no member named `pdev'
hcd.c:1488: structure has no member named `pdev'
hcd.c: At top level:
hcd.c:1425: warning: `hcd_operations' defined but not used
hcd.c:1436: warning: `hcd_irq' defined but not used
在hcd.h头文件中有这样的宏定义
#ifdef CONFIG_PCI
/* a few non-PCI controllers exist, mostly for OHCI */
struct pci_dev *pdev;
/* pci is typical */
int region;
/* pci region for regs */
u32 pci_state [16];
/* for PM state save */
atomic_t resume_count;
/* multiple resumes issue */
#endif
回去找CONFIG_PCI编译选项却没有