Преглед изворни кода

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…
Откажи
Сачувај