謝謝大大的回覆
但是,我執行了 make load之後,竟出現這一堆..
skge.c:2448: dereferencing pointer to incomplete type
skge.c:2449: dereferencing pointer to incomplete type
skge.c:2450: dereferencing pointer to incomplete type
skge.c:2452: dereferencing pointer to incomplete type
skge.c:2453: `PCI_DMA_FROMDEVICE' undeclared (first use in this function)
skge.c: In function `ReQueueRxBuffer':
skge.c:2488: dereferencing pointer to incomplete type
skge.c:2489: dereferencing pointer to incomplete type
skge.c:2490: dereferencing pointer to incomplete type
skge.c:2491: dereferencing pointer to incomplete type
skge.c: In function `ReceiveIrq':
skge.c:2525: dereferencing pointer to incomplete type
skge.c:2542: dereferencing pointer to incomplete type
skge.c:2543: dereferencing pointer to incomplete type
skge.c:2543: dereferencing pointer to incomplete type
skge.c:2545: dereferencing pointer to incomplete type
skge.c:2546: dereferencing pointer to incomplete type
skge.c:2546: warning: left-hand operand of comma expression has no effect
skge.c:2571: dereferencing pointer to incomplete type
skge.c:2589: dereferencing pointer to incomplete type
skge.c:2611: dereferencing pointer to incomplete type
skge.c:2645: warning: implicit declaration of function `pci_dma_sync_single'
skge.c:2645: dereferencing pointer to incomplete type
skge.c:2648: `PCI_DMA_FROMDEVICE' undeclared (first use in this function)
skge.c:2659: `GFP_ATOMIC' undeclared (first use in this function)
skge.c:2659: warning: assignment makes pointer from integer without a cast
skge.c:2665: warning: implicit declaration of function `skb_put'
skge.c:2669: dereferencing pointer to incomplete type
skge.c:2673: warning: implicit declaration of function `eth_copy_and_sum'
skge.c:2673: dereferencing pointer to incomplete type
skge.c:2690: warning: implicit declaration of function `pci_unmap_single'
skge.c:2690: dereferencing pointer to incomplete type
.
.
skge.c:2757: dereferencing pointer to incomplete type
skge.c:2757: warning: implicit declaration of function `eth_type_trans'
skge.c:2758: dereferencing pointer to incomplete type
skge.c:2758: dereferencing pointer to incomplete type
skge.c:2759: warning: implicit declaration of function `netif_rx'
skge.c:2760: dereferencing pointer to incomplete type
skge.c:2760: dereferencing pointer to incomplete type
skge.c:2760: `jiffies' undeclared (first use in this function)
skge.c:2767: warning: implicit declaration of function `dev_kfree_skb'
skge.c:2776: dereferencing pointer to incomplete type
.
.
skge.c:2850: dereferencing pointer to incomplete type
skge.c:2855: warning: implicit declaration of function `dev_kfree_skb_irq'
skge.c:2857: dereferencing pointer to incomplete type
skge.c:2858: dereferencing pointer to incomplete type
skge.c:2542: warning: value computed is not used
skge.c: In function `ClearAndStartRx':
skge.c:2880: dereferencing pointer to incomplete type
skge.c: In function `ClearTxIrq':
skge.c:2900: dereferencing pointer to incomplete type
skge.c: In function `ClearRxRing':
skge.c:2922: dereferencing pointer to incomplete type
skge.c:2922: dereferencing pointer to incomplete type
skge.c:2925: dereferencing pointer to incomplete type
skge.c:2926: dereferencing pointer to incomplete type
skge.c:2942: dereferencing pointer to incomplete type
skge.c:2944: dereferencing pointer to incomplete type
skge.c:2945: `PCI_DMA_FROMDEVICE' undeclared (first use in this function)
skge.c:2954: dereferencing pointer to incomplete type
skge.c:2955: dereferencing pointer to incomplete type
skge.c:2956: dereferencing pointer to incomplete type
skge.c:2956: dereferencing pointer to incomplete type
skge.c:2957: dereferencing pointer to incomplete type
skge.c: In function `ClearTxRing':
skge.c:2982: dereferencing pointer to incomplete type
skge.c:2983: dereferencing pointer to incomplete type
skge.c:2984: dereferencing pointer to incomplete type
skge.c:2989: dereferencing pointer to incomplete type
skge.c: In function `SkGeSetMacAddr':
skge.c:3103: dereferencing pointer to incomplete type
skge.c:3111: warning: implicit declaration of function `netif_running'
skge.c:3114: dereferencing pointer to incomplete type
.
.
.
skge.c:3127: dereferencing pointer to incomplete type
skge.c: In function `SkGeSetRxMode':
skge.c:3160: dereferencing pointer to incomplete type
.
.
skge.c:3201: dereferencing pointer to incomplete type
skge.c:3187: warning: value computed is not used
skge.c: In function `SkGeChangeMtu':
skge.c:3232: dereferencing pointer to incomplete type
.
.
skge.c:3384: dereferencing pointer to incomplete type
skge.c:3388: warning: implicit declaration of function `netif_start_queue'
skge.c:3388: dereferencing pointer to incomplete type
.
.
.
skge.c:3425: dereferencing pointer to incomplete type
skge.c: In function `SkGeStats':
skge.c:3444: dereferencing pointer to incomplete type
.
.
.
skge.c:3500: dereferencing pointer to incomplete type
skge.c: In function `SkGeIoctl':
skge.c:3529: dereferencing pointer to incomplete type
skge.c:3532: warning: implicit declaration of function `copy_from_user'
skge.c:3539: warning: implicit declaration of function `capable'
skge.c:3541: dereferencing pointer to incomplete type
skge.c:3542: dereferencing pointer to incomplete type
skge.c:3543: dereferencing pointer to incomplete type
skge.c:3547: warning: implicit declaration of function `copy_to_user'
skge.c:3547: dereferencing pointer to incomplete type
skge.c: In function `SkGeIocMib':
skge.c:3592: dereferencing pointer to incomplete type
.
.
.
skge.c:4034: dereferencing pointer to incomplete type
skge.c:4038: dereferencing pointer to incomplete type
skge.c: In function `ProductStr':
skge.c:4062: dereferencing pointer to incomplete type
skge.c:4063: dereferencing pointer to incomplete type
skge.c:4063: dereferencing pointer to incomplete type
skge.c:4065: dereferencing pointer to incomplete type
skge.c:4070: dereferencing pointer to incomplete type
skge.c: In function `SkDrvAllocRlmtMbuf':
skge.c:4104: `GFP_ATOMIC' undeclared (first use in this function)
skge.c:4104: warning: assignment makes pointer from integer without a cast
skge.c:4108: dereferencing pointer to incomplete type
skge.c:4112: dereferencing pointer to incomplete type
skge.c: In function `SkOsGetTime':
skge.c:4164: `jiffies' undeclared (first use in this function)
skge.c: In function `SkPciReadCfgDWord':
skge.c:4185: warning: implicit declaration of function `pci_read_config_dword'
skge.c:4185: dereferencing pointer to incomplete type
skge.c: In function `SkPciReadCfgWord':
skge.c:4207: warning: implicit declaration of function `pci_read_config_word'
skge.c:4207: dereferencing pointer to incomplete type
skge.c: In function `SkPciReadCfgByte':
skge.c:4229: warning: implicit declaration of function `pci_read_config_byte'
skge.c:4229: dereferencing pointer to incomplete type
skge.c: In function `SkPciWriteCfgDWord':
skge.c:4251: warning: implicit declaration of function `pci_write_config_dword'
skge.c:4251: dereferencing pointer to incomplete type
skge.c: In function `SkPciWriteCfgWord':
skge.c:4274: warning: implicit declaration of function `pci_write_config_word'
skge.c:4274: dereferencing pointer to incomplete type
skge.c: In function `SkPciWriteCfgByte':
skge.c:4297: warning: implicit declaration of function `pci_write_config_byte'
skge.c:4297: dereferencing pointer to incomplete type
skge.c: In function `SkDrvEvent':
skge.c:4336: dereferencing pointer to incomplete type
.
.
.
skge.c:4579: dereferencing pointer to incomplete type
skge.c: In function `SkErrorLog':
skge.c:4637: `KERN_INFO' undeclared (first use in this function)
skge.c:4637: parse error before string constant
skge.c: At top level:
h/skdrv2nd.h:531: storage size of `TxPort' isn't known
h/skdrv2nd.h:532: storage size of `RxPort' isn't known
/usr/include/linux/proc_fs.h:193: warning: `create_proc_read_entry' declared `static' but never defined
make: *** [skge.o] Error 1
bash-2.05b#
-------------------------
弄得我的頭好痛...飯也吃不下...
不知道我哪裡操作有問題..
|