Ver código fonte

Merge branch 'symcheck2'

tags/v0.9.3
Michael Brown 17 anos atrás
pai
commit
e3484e26eb

+ 1
- 1
src/arch/i386/image/eltorito.c Ver arquivo

@@ -298,7 +298,7 @@ static int eltorito_load_disk ( struct image *image,
298 298
  * @v image		El Torito file
299 299
  * @ret rc		Return status code
300 300
  */
301
-int eltorito_load ( struct image *image ) {
301
+static int eltorito_load ( struct image *image ) {
302 302
 	struct eltorito_boot_entry boot_entry;
303 303
 	unsigned long bootcat_offset;
304 304
 	int rc;

+ 1
- 1
src/arch/i386/image/multiboot.c Ver arquivo

@@ -360,7 +360,7 @@ static int multiboot_load_elf ( struct image *image ) {
360 360
  * @v image		Multiboot file
361 361
  * @ret rc		Return status code
362 362
  */
363
-int multiboot_load ( struct image *image ) {
363
+static int multiboot_load ( struct image *image ) {
364 364
 	struct multiboot_header_info hdr;
365 365
 	int rc;
366 366
 

+ 1
- 1
src/arch/i386/image/nbi.c Ver arquivo

@@ -244,7 +244,7 @@ static int nbi_process_segments ( struct image *image,
244 244
  * @v image		NBI image
245 245
  * @ret rc		Return status code
246 246
  */
247
-int nbi_load ( struct image *image ) {
247
+static int nbi_load ( struct image *image ) {
248 248
 	struct imgheader imgheader;
249 249
 	int rc;
250 250
 

+ 4
- 0
src/crypto/axtls/aes.c Ver arquivo

@@ -238,6 +238,9 @@ void AES_set_key(AES_CTX *ctx, const uint8_t *key,
238 238
     memcpy(ctx->iv, iv, 16);
239 239
 }
240 240
 
241
+#if 0
242
+/** currently unused function **/
243
+
241 244
 /**
242 245
  * Change a key for decryption.
243 246
  */
@@ -256,6 +259,7 @@ void AES_convert_key(AES_CTX *ctx)
256 259
         *k++ =w;
257 260
     }
258 261
 }
262
+#endif
259 263
 
260 264
 /**
261 265
  * Encrypt a byte sequence (with a block size 16) using the AES cipher.

+ 2
- 0
src/crypto/axtls/crypto.h Ver arquivo

@@ -54,7 +54,9 @@ void AES_set_key(AES_CTX *ctx, const uint8_t *key,
54 54
 void AES_cbc_encrypt(AES_CTX *ctx, const uint8_t *msg, 
55 55
         uint8_t *out, int length);
56 56
 void AES_cbc_decrypt(AES_CTX *ks, const uint8_t *in, uint8_t *out, int length);
57
+#if 0 /** currently unused function **/
57 58
 void AES_convert_key(AES_CTX *ctx);
59
+#endif
58 60
 
59 61
 /**************************************************************************
60 62
  * RC4 declarations 

+ 1
- 1
src/crypto/md5.c Ver arquivo

@@ -54,7 +54,7 @@ static u32 __md5step f4(u32 b, u32 c, u32 d)
54 54
 	return ( c ^ ( b | ~d ) );
55 55
 }
56 56
 
57
-struct md5_step md5_steps[4] = {
57
+static struct md5_step md5_steps[4] = {
58 58
 	{
59 59
 		.f = f1,
60 60
 		.coefficient = 1,

+ 1
- 1
src/drivers/net/bnx2.c Ver arquivo

@@ -43,7 +43,7 @@ static struct bss {
43 43
 	struct statistics_block stats_blk;
44 44
 } bnx2_bss;
45 45
 
46
-struct bnx2 bnx2;
46
+static struct bnx2 bnx2;
47 47
 
48 48
 static struct flash_spec flash_table[] =
49 49
 {

+ 1
- 1
src/drivers/net/ns83820.c Ver arquivo

@@ -364,7 +364,7 @@ struct ring_desc {
364 364
 #endif
365 365
 
366 366
 /* Private Storage for the NIC */
367
-struct ns83820_private {
367
+static struct ns83820_private {
368 368
 	u8 *base;
369 369
 	int up;
370 370
 	long idle;

+ 1
- 1
src/drivers/net/pcnet32.c Ver arquivo

@@ -67,7 +67,7 @@ static struct nic_operations pcnet32_operations;
67 67
 
68 68
 /* End Etherboot Specific */
69 69
 
70
-int cards_found /* __initdata */ ;
70
+static int cards_found = 0 /* __initdata */ ;
71 71
 
72 72
 #ifdef REMOVE
73 73
 /* FIXME: Remove these they are probably pointless */

+ 2
- 2
src/drivers/net/r8169.c Ver arquivo

@@ -400,7 +400,7 @@ static void rtl8169_hw_PHY_config(struct nic *nic __unused);
400 400
 //      20-16   5-bit GMII/MII register address
401 401
 //      15-0    16-bit GMII/MII register data
402 402
 //=================================================================
403
-void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
403
+static void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
404 404
 {
405 405
 	int i;
406 406
 
@@ -418,7 +418,7 @@ void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
418 418
 }
419 419
 
420 420
 //=================================================================
421
-int RTL8169_READ_GMII_REG(unsigned long ioaddr, int RegAddr)
421
+static int RTL8169_READ_GMII_REG(unsigned long ioaddr, int RegAddr)
422 422
 {
423 423
 	int i, value = -1;
424 424
 

+ 2
- 2
src/drivers/net/via-velocity.h Ver arquivo

@@ -1204,7 +1204,7 @@ struct velocity_info_tbl {
1204 1204
 	u32 flags;
1205 1205
 };
1206 1206
 
1207
-struct velocity_info_tbl *info;
1207
+static struct velocity_info_tbl *info;
1208 1208
 
1209 1209
 #define mac_hw_mibs_init(regs) {\
1210 1210
 	BYTE_REG_BITS_ON(MIBCR_MIBFRZ,&((regs)->MIBCR));\
@@ -1768,7 +1768,7 @@ struct velocity_opt {
1768 1768
 #define TX_DESC_MAX     256
1769 1769
 #define TX_DESC_DEF     TX_DESC_MIN
1770 1770
 
1771
-struct velocity_info {
1771
+static struct velocity_info {
1772 1772
 //      struct list_head list;
1773 1773
 
1774 1774
 	struct pci_device *pdev;

+ 2
- 1
src/hci/commands/image_cmd.c Ver arquivo

@@ -45,7 +45,8 @@
45 45
  * @v nargs		Argument count
46 46
  * @v args		Argument list
47 47
  */
48
-void imgfill_cmdline ( struct image *image, unsigned int nargs, char **args ) {
48
+static void imgfill_cmdline ( struct image *image, unsigned int nargs, 
49
+                              char **args ) {
49 50
 	size_t used = 0;
50 51
 
51 52
 	image->cmdline[0] = '\0';

+ 1
- 12
src/hci/mucurses/kb.c Ver arquivo

@@ -19,18 +19,7 @@ int m_delay; /*
19 19
 bool m_echo;
20 20
 bool m_cbreak;
21 21
 
22
-/**
23
- * Check KEY_ code supported status
24
- *
25
- * @v kc	keycode value to check
26
- * @ret TRUE	KEY_* supported
27
- * @ret FALSE	KEY_* unsupported
28
- */
29
-int has_key ( int kc __unused ) {
30
-	return TRUE;
31
-}
32
-
33
-int _wgetc ( WINDOW *win ) {
22
+static int _wgetc ( WINDOW *win ) {
34 23
 	int timer, c;
35 24
 
36 25
 	if ( win == NULL )

+ 1
- 1
src/hci/mucurses/slk.c Ver arquivo

@@ -50,7 +50,7 @@ struct _softlabelkeys {
50 50
 	short saved_pair;
51 51
 };
52 52
 
53
-struct _softlabelkeys *slks;
53
+static struct _softlabelkeys *slks;
54 54
 
55 55
 /*
56 56
   I either need to break the primitives here, or write a collection of

+ 4
- 0
src/include/curses.h Ver arquivo

@@ -566,6 +566,10 @@ static inline bool has_colors ( void ) {
566 566
 	return TRUE;
567 567
 }
568 568
 
569
+static inline int has_key ( int kc __unused ) {
570
+	return TRUE;
571
+}
572
+
569 573
 static inline int hline ( chtype ch, int n ) {
570 574
 	return whline ( stdscr, ch, n );
571 575
 }

+ 3
- 2
src/net/ndp.c Ver arquivo

@@ -65,8 +65,9 @@ ndp_find_entry ( struct in6_addr *in6 ) {
65 65
  * @v ll_addr	Link-layer address
66 66
  * @v state	State of the entry - one of the NDP_STATE_XXX values
67 67
  */
68
-void add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
69
-		     void *ll_addr, int state ) {
68
+static void 
69
+add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
70
+		void *ll_addr, int state ) {
70 71
 	struct ndp_entry *ndp;
71 72
 	ndp = &ndp_table[next_new_ndp_entry++ % NUM_NDP_ENTRIES];
72 73
 

+ 1
- 1
src/net/tcp/http.c Ver arquivo

@@ -465,7 +465,7 @@ static struct xfer_interface_operations http_xfer_operations = {
465 465
  * @v uri		Uniform Resource Identifier
466 466
  * @ret rc		Return status code
467 467
  */
468
-int http_open ( struct xfer_interface *xfer, struct uri *uri ) {
468
+static int http_open ( struct xfer_interface *xfer, struct uri *uri ) {
469 469
 	struct http_request *http;
470 470
 	struct sockaddr_tcpip server;
471 471
 	int rc;

+ 1
- 1
src/usr/autoboot.c Ver arquivo

@@ -103,7 +103,7 @@ static int boot_root_path ( const char *root_path ) {
103 103
  * @v netdev		Network device
104 104
  * @ret rc		Return status code
105 105
  */
106
-int netboot ( struct net_device *netdev ) {
106
+static int netboot ( struct net_device *netdev ) {
107 107
 	char buf[256];
108 108
 	int rc;
109 109
 

Carregando…
Cancelar
Salvar