even when __atribute__ (( unused )) is correctly set...
#include "init.h"
#include "vga.h"
-static struct console_driver vga_console;
+struct console_driver vga_console;
static char *vidmem; /* The video buffer */
static int video_line, video_col;
write_crtc((video_col + (video_line *COLS)) & 0x0ff, CRTC_CURSOR_LO);
}
-static struct console_driver vga_console __console_driver = {
+struct console_driver vga_console __console_driver = {
.putchar = vga_putc,
.disabled = 1,
};
return ( ( flags & ZF ) == 0 );
}
-static struct console_driver bios_console __console_driver = {
+struct console_driver bios_console __console_driver = {
.putchar = bios_putchar,
.getchar = bios_getchar,
.iskey = bios_iskey,
}
/** Declaration of the NBI image format */
-static struct image nbi_image __image = {
+struct image nbi_image __image = {
.name = "NBI",
.probe = nbi_probe,
.load = nbi_load,
#define POST_RELOC_LIBRM 00
/* Macro for creating a post-relocation function table entry */
-#define POST_RELOC_FN( order, post_reloc_func ) \
- static struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \
- __table ( post_reloc_fn, order ) = { \
- .post_reloc = post_reloc_func, \
+#define POST_RELOC_FN( order, post_reloc_func ) \
+ struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \
+ __table ( post_reloc_fn, order ) = { \
+ .post_reloc = post_reloc_func, \
};
#endif
btext_drawchar((unsigned char)c);
}
-static struct console_driver btext_console __console_driver = {
+struct console_driver btext_console __console_driver = {
.putchar = btext_putc,
.disabled = 1,
};
return c;
}
-static struct console_driver pc_kbd_console __console_driver = {
+struct console_driver pc_kbd_console __console_driver = {
.getchar = kbd_getc,
};
#define uart_writeb(val,addr) outb((val),(addr))
#endif
-static struct console_driver serial_console;
+struct console_driver serial_console;
/*
* void serial_putc(int ch);
/* Don't mark it as disabled; it's still usable */
}
-static struct console_driver serial_console __console_driver = {
+struct console_driver serial_console __console_driver = {
.putchar = serial_putc,
.getchar = serial_getc,
.iskey = serial_ischar,
* T509 bus operations table
*
*/
-static struct bus_driver t509_driver __bus_driver = {
+struct bus_driver t509_driver __bus_driver = {
.name = "T509",
.next_location = t509_next_location,
.fill_device = t509_fill_device,
deactivate_t509_device ( t509 );
}
-static struct {} el3_t509_driver;
+struct {} el3_t509_driver;
DRIVER ( "3c509", nic_driver, t509_driver, el3_t509_driver,
el3_t509_probe, el3_t509_disable );
PCI_ROM(0x15b3, 0x6278, "MT25208", "MT25208 HCA driver"),
};
-static struct pci_driver tavor_driver __pci_driver = {
+struct pci_driver tavor_driver __pci_driver = {
.type = NIC_DRIVER,
.name = "MT23108/MT25208",
.probe = tavor_probe,
PCI_ROM(0x15b3, 0x6274, "MT25204", "MT25204 HCA driver"),
};
-static struct pci_driver mt25218_driver __pci_driver = {
+struct pci_driver mt25218_driver __pci_driver = {
.type = NIC_DRIVER,
.name = "MT25218",
.probe = mt25218_probe,
}
#ifdef INCLUDE_WD
-static struct isa_driver wd_driver __isa_driver = {
+struct isa_driver wd_driver __isa_driver = {
.type = NIC_DRIVER,
.name = "WD",
.probe = wd_probe,
#endif
#ifdef INCLUDE_3C503
-static struct isa_driver t503_driver __isa_driver = {
+struct isa_driver t503_driver __isa_driver = {
.type = NIC_DRIVER,
.name = "3C503",
.probe = t503_probe,
#endif
#ifdef INCLUDE_NE
-static struct isa_driver ne_driver __isa_driver = {
+struct isa_driver ne_driver __isa_driver = {
.type = NIC_DRIVER,
.name = "NE*000",
.probe = ne_probe,
* ...
* }
*
- * static struct frob my_frobnicator __frobnicator = {
+ * struct frob my_frobnicator __frobnicator = {
* .name = "my_frob",
* .frob = my_frob,
* };
*
* @code
*
- * static struct my_foo __table ( foo, 01 ) = {
+ * struct my_foo __table ( foo, 01 ) = {
* ...
* };
*
#define INIT_RPC 11
/* Macro for creating an initialisation function table entry */
-#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
- static struct init_fn PREFIX_OBJECT(init_fn__) \
- __table ( init_fn, init_order ) = { \
- .init = init_func, \
- .reset = reset_func, \
- .exit = exit_func, \
+#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
+ struct init_fn PREFIX_OBJECT(init_fn__) \
+ __table ( init_fn, init_order ) = { \
+ .init = init_func, \
+ .reset = reset_func, \
+ .exit = exit_func, \
};
/* Function prototypes */
*
*/
#define ISA_DRIVER( _name, _probe_addrs, _probe_addr, _mfg_id, _prod_id ) \
-static struct isa_driver _name __table(isa_driver,01 ) = { \
+struct isa_driver _name __table(isa_driver,01 ) = { \
.probe_addrs = _probe_addrs, \
.addr_count = sizeof ( _probe_addrs ) / sizeof ( _probe_addrs[0] ), \
.probe_addr = _probe_addr, \
* followed by a little manual tweaking.
*
*/
-static struct errortab pxe_errortab[] __errortab = {
+struct errortab pxe_errortab[] __errortab = {
{ PXENV_STATUS_SUCCESS, "Success" },
{ PXENV_STATUS_FAILURE, "Failure" },
{ PXENV_STATUS_BAD_FUNC, "Bad function" },
}
}
-static struct resolver dns_resolver __resolver = {
+struct resolver dns_resolver __resolver = {
.name = "DNS",
.resolv = dns_resolv,
};
return 1;
}
-static struct protocol http_protocol __protocol = {
+struct protocol http_protocol __protocol = {
.name = "http",
.default_port = 80,
.load = http,
}
}
-static struct background igmp_background __background = {
+struct background igmp_background __background = {
.send = send_igmp_reports,
.process = process_igmp,
};
INIT_FN ( INIT_RPC, rpc_init, nfs_reset, nfs_reset );
-static struct protocol nfs_protocol __protocol = {
+struct protocol nfs_protocol __protocol = {
.name = "nfs",
.default_port = SUNRPC_PORT,
.load = nfs,
return 1;
}
-static struct resolver nmb_resolver __resolver = {
+struct resolver nmb_resolver __resolver = {
.name = "NMB",
.resolv = nmb_resolv,
};
return proto_slam(&info);
}
-static struct protocol slam_protocol __protocol = {
+struct protocol slam_protocol __protocol = {
.name = "x-slam",
.default_port = SLAM_PORT,
.load = url_slam,