Bladeren bron

added stdio.h to includes for DBG compilation

tags/v0.9.3
Marty Connor 18 jaren geleden
bovenliggende
commit
6ac78f6aff

+ 1
- 0
src/arch/i386/core/load_buffer.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include "io.h"
2 3
 #include "load_buffer.h"
3 4
 

+ 1
- 0
src/arch/i386/core/relocate.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include <io.h>
2 3
 #include <registers.h>
3 4
 #include <memmap.h>

+ 1
- 0
src/arch/i386/firmware/pcbios/hidemem.c Bestand weergeven

@@ -15,6 +15,7 @@
15 15
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 16
  */
17 17
 
18
+#include <stdio.h>
18 19
 #include <realmode.h>
19 20
 #include <biosint.h>
20 21
 

+ 1
- 0
src/arch/i386/firmware/pcbios/memmap.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <stdint.h>
20 21
 #include <errno.h>
21 22
 #include <realmode.h>

+ 1
- 0
src/arch/i386/interface/pcbios/int13.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <stdint.h>
20 21
 #include <limits.h>
21 22
 #include <byteswap.h>

+ 1
- 0
src/arch/i386/interface/pxe/pxe_call.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <gpxe/uaccess.h>
20 21
 #include <registers.h>
21 22
 #include <biosint.h>

+ 1
- 0
src/core/resolv.c Bestand weergeven

@@ -1,4 +1,5 @@
1 1
 #include "resolv.h"
2
+#include "stdio.h"
2 3
 
3 4
 static struct resolver resolvers[0] __table_start(resolver);
4 5
 static struct resolver resolvers_end[0] __table_end(resolver);

+ 1
- 0
src/crypto/ssl.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include "ssl.h"
2 3
 #include "ssl_constructs.h"
3 4
 #include <string.h> // for bcopy()

+ 2
- 0
src/drivers/bitbash/i2c_bit.c Bestand weergeven

@@ -16,10 +16,12 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <stddef.h>
20 21
 #include <stdint.h>
21 22
 #include <errno.h>
22 23
 #include <assert.h>
24
+#include <timer.h>
23 25
 #include <gpxe/bitbash.h>
24 26
 #include <gpxe/i2c.h>
25 27
 

+ 1
- 0
src/drivers/bitbash/spi_bit.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <stddef.h>
20 21
 #include <stdint.h>
21 22
 #include <string.h>

+ 1
- 0
src/drivers/block/ata.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <stddef.h>
20 21
 #include <string.h>
21 22
 #include <assert.h>

+ 1
- 0
src/drivers/bus/pci.c Bestand weergeven

@@ -19,6 +19,7 @@
19 19
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 20
  */
21 21
 
22
+#include <stdio.h>
22 23
 #include <stdint.h>
23 24
 #include <string.h>
24 25
 #include <errno.h>

+ 1
- 0
src/drivers/bus/pciextra.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include <stdint.h>
2 3
 #include <gpxe/pci.h>
3 4
 

+ 1
- 0
src/interface/pxe/pxe_loader.c Bestand weergeven

@@ -22,6 +22,7 @@
22 22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 23
  */
24 24
 
25
+#include <stdio.h>
25 26
 #include "pxe.h"
26 27
 
27 28
 /* PXENV_UNDI_LOADER

+ 1
- 0
src/interface/pxe/pxe_tftp.c Bestand weergeven

@@ -22,6 +22,7 @@
22 22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 23
  */
24 24
 
25
+#include <stdio.h>
25 26
 #include "pxe.h"
26 27
 
27 28
 static int pxe_tftp_read_block ( unsigned char *data, unsigned int block,

+ 1
- 0
src/interface/pxe/pxe_udp.c Bestand weergeven

@@ -4,6 +4,7 @@
4 4
  *
5 5
  */
6 6
 
7
+#include <stdio.h>
7 8
 #include <string.h>
8 9
 #include <byteswap.h>
9 10
 #include <gpxe/udp.h>

+ 1
- 0
src/interface/pxe/pxe_undi.c Bestand weergeven

@@ -22,6 +22,7 @@
22 22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 23
  */
24 24
 
25
+#include <stdio.h>
25 26
 #include "pxe.h"
26 27
 
27 28
 /* PXENV_UNDI_STARTUP

+ 1
- 0
src/net/arp.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include "stdio.h"
19 20
 #include <stdint.h>
20 21
 #include <string.h>
21 22
 #include <byteswap.h>

+ 3
- 2
src/net/icmpv6.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include <stdint.h>
2 3
 #include <string.h>
3 4
 #include <byteswap.h>
@@ -23,7 +24,7 @@ struct tcpip_protocol icmp6_protocol;
23 24
  * This function prepares a neighbour solicitation packet and sends it to the
24 25
  * network layer.
25 26
  */
26
-int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src,
27
+int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src __unused,
27 28
 			 struct in6_addr *dest ) {
28 29
 	union {
29 30
 		struct sockaddr_in6 sin6;
@@ -60,7 +61,7 @@ int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src,
60 61
 	st_dest.sin6.sin6_addr.in6_u.u6_addr8[13] = 0xff;
61 62
 	
62 63
 	/* Send packet over IP6 */
63
-	tcpip_tx ( pkb, &icmp6_protocol, &st_dest.st );
64
+	return ( tcpip_tx ( pkb, &icmp6_protocol, &st_dest.st ) );
64 65
 }
65 66
 
66 67
 /**

+ 3
- 2
src/net/ndp.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include "stdio.h"
1 2
 #include <stdint.h>
2 3
 #include <string.h>
3 4
 #include <byteswap.h>
@@ -147,8 +148,8 @@ int ndp_resolve ( struct net_device *netdev, struct in6_addr *dest,
147 148
  * @v st_src	Source address
148 149
  * @v st_dest	Destination address 
149 150
  */
150
-int ndp_process_advert ( struct pk_buff *pkb, struct sockaddr_tcpip *st_src,
151
-			   struct sockaddr_tcpip *st_dest ) {
151
+int ndp_process_advert ( struct pk_buff *pkb, struct sockaddr_tcpip *st_src __unused,
152
+			   struct sockaddr_tcpip *st_dest __unused ) {
152 153
 	struct neighbour_advert *nadvert = pkb->data;
153 154
 	struct ndp_entry *ndp;
154 155
 

+ 1
- 0
src/net/netdevice.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <stdint.h>
20 21
 #include <byteswap.h>
21 22
 #include <string.h>

+ 1
- 0
src/net/retry.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <stddef.h>
20 21
 #include <latch.h>
21 22
 #include <gpxe/list.h>

+ 1
- 0
src/net/tcp.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include <string.h>
2 3
 #include <stdlib.h>
3 4
 #include <assert.h>

+ 1
- 0
src/net/tcpip.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include <stdint.h>
2 3
 #include <string.h>
3 4
 #include <errno.h>

+ 1
- 0
src/net/udp.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include <stdio.h>
1 2
 #include <stdint.h>
2 3
 #include <string.h>
3 4
 #include <assert.h>

+ 1
- 0
src/net/udp/dhcp.c Bestand weergeven

@@ -16,6 +16,7 @@
16 16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#include <stdio.h>
19 20
 #include <string.h>
20 21
 #include <errno.h>
21 22
 #include <assert.h>

+ 1
- 0
src/proto/nmb.c Bestand weergeven

@@ -1,3 +1,4 @@
1
+#include "stdio.h"
1 2
 #include "resolv.h"
2 3
 #include "string.h"
3 4
 #include "dns.h"

Laden…
Annuleren
Opslaan