* grub-core/bus/usb/usbhub.c (hubs): Likewise.
* grub-core/commands/hashsum.c (aliases): Likewise.
* grub-core/commands/setpci.c (pci_registers): Likewise.
* grub-core/disk/usbms.c (attach_hook): Likewise.
* grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
(zio_checksum_table): Likewise.
* grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
* grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
* grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
* grub-core/lib/relocator.c (leftovers): Likewise.
(extra_blocks): Likewise.
* grub-core/loader/i386/bsd.c (relocator): Likewise.
* grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
(modules_last): Likewise.
* grub-core/loader/i386/xnu.c (table_aliases): Likewise.
(devices): Likewise.
* grub-core/loader/multiboot_mbi2.c (modules): Likewise.
(modules_last): Likewise.
* grub-core/normal/auth.c (users): Likewise.
* grub-core/normal/context.c (initial_menu): Likewise.
(current_menu): Likewise.
* grub-core/normal/crypto.c (crypto_specs): Likewise.
* grub-core/term/serial.c (grub_serial_ports): Likewise.
(grub_serial_terminfo_input_template): Likewise.
(grub_serial_terminfo_output_template): Likewise.
(grub_serial_terminfo_input): Likewise.
(grub_serial_terminfo_output): Likewise.
(registered): Likewise.
* grub-core/term/usb_keyboard.c (attach_hook): Likewise.
+2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/bus/usb/usb.c (attach_hooks): Make static.
+ * grub-core/bus/usb/usbhub.c (hubs): Likewise.
+ * grub-core/commands/hashsum.c (aliases): Likewise.
+ * grub-core/commands/setpci.c (pci_registers): Likewise.
+ * grub-core/disk/usbms.c (attach_hook): Likewise.
+ * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
+ (zio_checksum_table): Likewise.
+ * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
+ * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
+ * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
+ * grub-core/lib/relocator.c (leftovers): Likewise.
+ (extra_blocks): Likewise.
+ * grub-core/loader/i386/bsd.c (relocator): Likewise.
+ * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
+ (modules_last): Likewise.
+ * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
+ (devices): Likewise.
+ * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
+ (modules_last): Likewise.
+ * grub-core/normal/auth.c (users): Likewise.
+ * grub-core/normal/context.c (initial_menu): Likewise.
+ (current_menu): Likewise.
+ * grub-core/normal/crypto.c (crypto_specs): Likewise.
+ * grub-core/term/serial.c (grub_serial_ports): Likewise.
+ (grub_serial_terminfo_input_template): Likewise.
+ (grub_serial_terminfo_output_template): Likewise.
+ (grub_serial_terminfo_input): Likewise.
+ (grub_serial_terminfo_output): Likewise.
+ (registered): Likewise.
+ * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
+
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/video/bochs.c (grub_video_bochs_setup): Use
#include <grub/term.h>
static grub_usb_controller_dev_t grub_usb_list;
-struct grub_usb_attach_desc *attach_hooks;
+static struct grub_usb_attach_desc *attach_hooks;
void
grub_usb_controller_dev_register (grub_usb_controller_dev_t usb)
grub_usb_device_t dev;
};
-struct grub_usb_hub *hubs;
+static struct grub_usb_hub *hubs;
/* Add a device that currently has device number 0 and resides on
CONTROLLER, the Hub reported that the device speed is SPEED. */
{0, 0, 0, 0, 0, 0}
};
-struct { const char *name; const char *hashname; } aliases[] =
+static struct { const char *name; const char *hashname; } aliases[] =
{
{"sha256sum", "sha256"},
{"sha512sum", "sha512"},
unsigned size;
};
-struct pci_register pci_registers[] =
+static struct pci_register pci_registers[] =
{
{"VENDOR_ID", GRUB_PCI_REG_VENDOR , 2},
{"DEVICE_ID", GRUB_PCI_REG_DEVICE , 2},
.write = grub_usbms_write
};
-struct grub_usb_attach_desc attach_hook =
+static struct grub_usb_attach_desc attach_hook =
{
.class = GRUB_USB_CLASS_MASS_STORAGE,
.hook = grub_usbms_attach
grub_disk_addr_t vdev_phys_sector;
};
-decomp_entry_t decomp_table[ZIO_COMPRESS_FUNCTIONS] = {
+static decomp_entry_t decomp_table[ZIO_COMPRESS_FUNCTIONS] = {
{"inherit", NULL}, /* ZIO_COMPRESS_INHERIT */
{"on", lzjb_decompress}, /* ZIO_COMPRESS_ON */
{"off", NULL}, /* ZIO_COMPRESS_OFF */
}
/* Checksum Table and Values */
-zio_checksum_info_t zio_checksum_table[ZIO_CHECKSUM_FUNCTIONS] = {
+static zio_checksum_info_t zio_checksum_table[ZIO_CHECKSUM_FUNCTIONS] = {
{NULL, 0, 0, "inherit"},
{NULL, 0, 0, "on"},
{zio_checksum_off, 0, 0, "off"},
const char *translated;
};
-struct grub_gettext_msg *grub_gettext_msg_list = NULL;
+static struct grub_gettext_msg *grub_gettext_msg_list = NULL;
#define GETTEXT_MAGIC_NUMBER 0
#define GETTEXT_FILE_FORMAT 4
#include <grub/gfxmenu_view.h>
#include <grub/time.h>
-grub_gfxmenu_view_t cached_view;
+static grub_gfxmenu_view_t cached_view;
static void
grub_gfxmenu_viewer_fini (void *data __attribute__ ((unused)))
const char *longdesc;
};
-struct legacy_command legacy_commands[] =
+static struct legacy_command legacy_commands[] =
{
{"blocklist", "blocklist '%s'\n", NULL, 0, 1, {TYPE_FILE}, 0, "FILE",
"Print the blocklist notation of the file FILE."},
grub_uint8_t freebytes[GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT / 8];
};
-struct grub_relocator_fw_leftover *leftovers;
+static struct grub_relocator_fw_leftover *leftovers;
#endif
-struct grub_relocator_extra_block *extra_blocks;
+static struct grub_relocator_extra_block *extra_blocks;
void *
get_virtual_current_address (grub_relocator_chunk_t in)
static grub_uint32_t bootflags;
static int is_elf_kernel, is_64bit;
static grub_uint32_t openbsd_root;
-struct grub_relocator *relocator = NULL;
+static struct grub_relocator *relocator = NULL;
static struct grub_openbsd_ramdisk_descriptor openbsd_ramdisk;
struct bsd_tag
int cmdline_size;
};
-struct module *modules, *modules_last;
+static struct module *modules, *modules_last;
static grub_size_t cmdline_size;
static grub_size_t total_modcmd;
static unsigned modcnt;
char *name;
};
-struct tbl_alias table_aliases[] =
+static struct tbl_alias table_aliases[] =
{
{GRUB_EFI_ACPI_20_TABLE_GUID, "ACPI_20"},
{GRUB_EFI_ACPI_TABLE_GUID, "ACPI"},
void *data;
};
-struct grub_xnu_devprop_device_descriptor *devices = 0;
+static struct grub_xnu_devprop_device_descriptor *devices = 0;
grub_err_t
grub_xnu_devprop_remove_property (struct grub_xnu_devprop_device_descriptor *dev,
int cmdline_size;
};
-struct module *modules, *modules_last;
+static struct module *modules, *modules_last;
static grub_size_t cmdline_size;
static grub_size_t total_modcmd;
static unsigned modcnt;
int authenticated;
};
-struct grub_auth_user *users = NULL;
+static struct grub_auth_user *users = NULL;
grub_err_t
grub_auth_register_authentication (const char *user,
struct menu_pointer *prev;
};
-struct menu_pointer initial_menu;
-struct menu_pointer *current_menu = &initial_menu;
+static struct menu_pointer initial_menu;
+static struct menu_pointer *current_menu = &initial_menu;
void
grub_env_unset_menu (void)
char *modname;
};
-struct load_spec *crypto_specs = NULL;
+static struct load_spec *crypto_specs = NULL;
static void
grub_crypto_autoload (const char *name)
{0, 0, 0, 0, 0, 0}
};
-struct grub_serial_port *grub_serial_ports;
+static struct grub_serial_port *grub_serial_ports;
struct grub_serial_output_state
{
return data->port->driver->fetch (data->port);
}
-const struct grub_serial_input_state grub_serial_terminfo_input_template =
+static const struct grub_serial_input_state grub_serial_terminfo_input_template =
{
.tinfo =
{
}
};
-const struct grub_serial_output_state grub_serial_terminfo_output_template =
+static const struct grub_serial_output_state grub_serial_terminfo_output_template =
{
.tinfo =
{
}
};
-struct grub_serial_input_state grub_serial_terminfo_input;
+static struct grub_serial_input_state grub_serial_terminfo_input;
-struct grub_serial_output_state grub_serial_terminfo_output;
+static struct grub_serial_output_state grub_serial_terminfo_output;
-int registered = 0;
+static int registered = 0;
static struct grub_term_input grub_serial_term_input =
{
return interpret_status (termdata->status) | termdata->mods;
}
-struct grub_usb_attach_desc attach_hook =
+static struct grub_usb_attach_desc attach_hook =
{
.class = GRUB_USB_CLASS_HID,
.hook = grub_usb_keyboard_attach