Browse Source

added stdio.h to includes for DBG compilation

tags/v0.9.3
Marty Connor 18 years ago
parent
commit
6ac78f6aff

+ 1
- 0
src/arch/i386/core/load_buffer.c View File

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

+ 1
- 0
src/arch/i386/core/relocate.c View File

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

+ 1
- 0
src/arch/i386/firmware/pcbios/hidemem.c View File

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

+ 1
- 0
src/arch/i386/firmware/pcbios/memmap.c View File

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

+ 1
- 0
src/arch/i386/interface/pcbios/int13.c View File

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

+ 1
- 0
src/arch/i386/interface/pxe/pxe_call.c View File

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

+ 1
- 0
src/core/resolv.c View File

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

+ 1
- 0
src/crypto/ssl.c View File

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

+ 2
- 0
src/drivers/bitbash/i2c_bit.c View File

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

+ 1
- 0
src/drivers/bitbash/spi_bit.c View File

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

+ 1
- 0
src/drivers/block/ata.c View File

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

+ 1
- 0
src/drivers/bus/pci.c View File

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

+ 1
- 0
src/drivers/bus/pciextra.c View File

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

+ 1
- 0
src/interface/pxe/pxe_loader.c View File

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

+ 1
- 0
src/interface/pxe/pxe_tftp.c View File

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

+ 1
- 0
src/interface/pxe/pxe_udp.c View File

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

+ 1
- 0
src/interface/pxe/pxe_undi.c View File

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

+ 1
- 0
src/net/arp.c View File

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

+ 3
- 2
src/net/icmpv6.c View File

1
+#include <stdio.h>
1
 #include <stdint.h>
2
 #include <stdint.h>
2
 #include <string.h>
3
 #include <string.h>
3
 #include <byteswap.h>
4
 #include <byteswap.h>
23
  * This function prepares a neighbour solicitation packet and sends it to the
24
  * This function prepares a neighbour solicitation packet and sends it to the
24
  * network layer.
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
 			 struct in6_addr *dest ) {
28
 			 struct in6_addr *dest ) {
28
 	union {
29
 	union {
29
 		struct sockaddr_in6 sin6;
30
 		struct sockaddr_in6 sin6;
60
 	st_dest.sin6.sin6_addr.in6_u.u6_addr8[13] = 0xff;
61
 	st_dest.sin6.sin6_addr.in6_u.u6_addr8[13] = 0xff;
61
 	
62
 	
62
 	/* Send packet over IP6 */
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 View File

1
+#include "stdio.h"
1
 #include <stdint.h>
2
 #include <stdint.h>
2
 #include <string.h>
3
 #include <string.h>
3
 #include <byteswap.h>
4
 #include <byteswap.h>
147
  * @v st_src	Source address
148
  * @v st_src	Source address
148
  * @v st_dest	Destination address 
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
 	struct neighbour_advert *nadvert = pkb->data;
153
 	struct neighbour_advert *nadvert = pkb->data;
153
 	struct ndp_entry *ndp;
154
 	struct ndp_entry *ndp;
154
 
155
 

+ 1
- 0
src/net/netdevice.c View File

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

+ 1
- 0
src/net/retry.c View File

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

+ 1
- 0
src/net/tcp.c View File

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

+ 1
- 0
src/net/tcpip.c View File

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

+ 1
- 0
src/net/udp.c View File

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

+ 1
- 0
src/net/udp/dhcp.c View File

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

+ 1
- 0
src/proto/nmb.c View File

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

Loading…
Cancel
Save