소스 검색

warnings cleanup (still gives lots of compilation warnings from unused functions and missing legacy support)

tags/v0.9.3
Marty Connor 18 년 전
부모
커밋
b88aa51b07
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2
    5
      src/drivers/net/skel.c

+ 2
- 5
src/drivers/net/skel.c 파일 보기

@@ -10,12 +10,10 @@ Skeleton NIC driver for Etherboot
10 10
  * your option) any later version.
11 11
  */
12 12
 
13
-/* to get some global routines like printf */
14 13
 #include "etherboot.h"
15
-/* to get the interface to the body of the program */
16 14
 #include "nic.h"
17
-/* Drag in support for whichever bus(es) we want for this NIC */
18 15
 #include <gpxe/pci.h>
16
+#include <gpxe/ethernet.h>
19 17
 #include "isa.h"
20 18
 #include "eisa.h"
21 19
 #include "isapnp.h"
@@ -211,8 +209,7 @@ static int skel_pci_probe ( struct nic *nic, struct pci_device *pci ) {
211 209
 	return 1;
212 210
 }
213 211
 
214
-static void skel_pci_disable ( struct nic *nic __unused,
215
-			       struct pci_device *pci __unused ) {
212
+static void skel_pci_disable ( struct nic *nic __unused ) {
216 213
 	/* Reset the card to its initial state, disable DMA and
217 214
 	 * interrupts
218 215
 	 */

Loading…
취소
저장