2009-05-03 Pavel Roskin <proski@gnu.org>
* disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to suppress warnings. It's no longer needed. * disk/host.c: Likewise. * disk/ata_pthru.c: Likewise. * disk/loopback.c: Likewise. * hook/datehook.c: Likewise. * parttool/pcpart.c: Likewise. * fs/i386/pc/pxe.c: Likewise. * fs/ntfscomp.c: Likewise. * efiemu/main.c: Likewise. * mmap/mmap.c: Likewise. * commands/crc.c: Likewise. * commands/hexdump.c: Likewise. * commands/hdparm.c: Likewise. * commands/acpi.c: Likewise. * commands/echo.c: Likewise. * commands/minicmd.c: Likewise. * commands/blocklist.c: Likewise. * commands/memrw.c: Likewise. * commands/loadenv.c: Likewise. * commands/usbtest.c: Likewise. * commands/lsmmap.c: Likewise. * commands/boot.c: Likewise. * commands/parttool.c: Likewise. * commands/configfile.c: Likewise. * commands/search.c: Likewise. * commands/ieee1275/suspend.c: Likewise. * commands/cat.c: Likewise. * commands/i386/pc/pxecmd.c: Likewise. * commands/i386/pc/play.c: Likewise. * commands/i386/pc/halt.c: Likewise. * commands/i386/pc/vbeinfo.c: Likewise. * commands/i386/pc/vbetest.c: Likewise. * commands/lspci.c: Likewise. * commands/date.c: Likewise. * commands/handler.c: Likewise. * commands/ls.c: Likewise. * commands/test.c: Likewise. * commands/cmp.c: Likewise. * commands/efi/loadbios.c: Likewise. * commands/efi/fixvideo.c: Likewise. * commands/halt.c: Likewise. * commands/help.c: Likewise. * commands/reboot.c: Likewise. * hello/hello.c: Likewise. * script/sh/main.c: Likewise. * loader/xnu.c: Likewise. * term/terminfo.c: Likewise. * term/i386/pc/serial.c: Likewise. * term/usb_keyboard.c: Likewise.
This commit is contained in:
parent
515b50793a
commit
4c402e7301
50 changed files with 53 additions and 57 deletions
53
ChangeLog
53
ChangeLog
|
@ -1,3 +1,56 @@
|
||||||
|
2009-05-03 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
|
||||||
|
suppress warnings. It's no longer needed.
|
||||||
|
* disk/host.c: Likewise.
|
||||||
|
* disk/ata_pthru.c: Likewise.
|
||||||
|
* disk/loopback.c: Likewise.
|
||||||
|
* hook/datehook.c: Likewise.
|
||||||
|
* parttool/pcpart.c: Likewise.
|
||||||
|
* fs/i386/pc/pxe.c: Likewise.
|
||||||
|
* fs/ntfscomp.c: Likewise.
|
||||||
|
* efiemu/main.c: Likewise.
|
||||||
|
* mmap/mmap.c: Likewise.
|
||||||
|
* commands/crc.c: Likewise.
|
||||||
|
* commands/hexdump.c: Likewise.
|
||||||
|
* commands/hdparm.c: Likewise.
|
||||||
|
* commands/acpi.c: Likewise.
|
||||||
|
* commands/echo.c: Likewise.
|
||||||
|
* commands/minicmd.c: Likewise.
|
||||||
|
* commands/blocklist.c: Likewise.
|
||||||
|
* commands/memrw.c: Likewise.
|
||||||
|
* commands/loadenv.c: Likewise.
|
||||||
|
* commands/usbtest.c: Likewise.
|
||||||
|
* commands/lsmmap.c: Likewise.
|
||||||
|
* commands/boot.c: Likewise.
|
||||||
|
* commands/parttool.c: Likewise.
|
||||||
|
* commands/configfile.c: Likewise.
|
||||||
|
* commands/search.c: Likewise.
|
||||||
|
* commands/ieee1275/suspend.c: Likewise.
|
||||||
|
* commands/cat.c: Likewise.
|
||||||
|
* commands/i386/pc/pxecmd.c: Likewise.
|
||||||
|
* commands/i386/pc/play.c: Likewise.
|
||||||
|
* commands/i386/pc/halt.c: Likewise.
|
||||||
|
* commands/i386/pc/vbeinfo.c: Likewise.
|
||||||
|
* commands/i386/pc/vbetest.c: Likewise.
|
||||||
|
* commands/lspci.c: Likewise.
|
||||||
|
* commands/date.c: Likewise.
|
||||||
|
* commands/handler.c: Likewise.
|
||||||
|
* commands/ls.c: Likewise.
|
||||||
|
* commands/test.c: Likewise.
|
||||||
|
* commands/cmp.c: Likewise.
|
||||||
|
* commands/efi/loadbios.c: Likewise.
|
||||||
|
* commands/efi/fixvideo.c: Likewise.
|
||||||
|
* commands/halt.c: Likewise.
|
||||||
|
* commands/help.c: Likewise.
|
||||||
|
* commands/reboot.c: Likewise.
|
||||||
|
* hello/hello.c: Likewise.
|
||||||
|
* script/sh/main.c: Likewise.
|
||||||
|
* loader/xnu.c: Likewise.
|
||||||
|
* term/terminfo.c: Likewise.
|
||||||
|
* term/i386/pc/serial.c: Likewise.
|
||||||
|
* term/usb_keyboard.c: Likewise.
|
||||||
|
|
||||||
2009-05-03 David S. Miller <davem@davemloft.net>
|
2009-05-03 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
* normal/menu.c: Include grub/parser.h
|
* normal/menu.c: Include grub/parser.h
|
||||||
|
|
|
@ -756,7 +756,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(acpi)
|
GRUB_MOD_INIT(acpi)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("acpi", grub_cmd_acpi,
|
cmd = grub_register_extcmd ("acpi", grub_cmd_acpi,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
"acpi [-1|-2] [--exclude=table1,table2|"
|
"acpi [-1|-2] [--exclude=table1,table2|"
|
||||||
|
|
|
@ -109,7 +109,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(blocklist)
|
GRUB_MOD_INIT(blocklist)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("blocklist", grub_cmd_blocklist,
|
cmd = grub_register_command ("blocklist", grub_cmd_blocklist,
|
||||||
"blocklist FILE", "Print a block list.");
|
"blocklist FILE", "Print a block list.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,7 +184,6 @@ static grub_command_t cmd_boot;
|
||||||
|
|
||||||
GRUB_MOD_INIT(boot)
|
GRUB_MOD_INIT(boot)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd_boot =
|
cmd_boot =
|
||||||
grub_register_command ("boot", grub_cmd_boot,
|
grub_register_command ("boot", grub_cmd_boot,
|
||||||
0, "boot an operating system");
|
0, "boot an operating system");
|
||||||
|
|
|
@ -77,7 +77,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(cat)
|
GRUB_MOD_INIT(cat)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command_p1 ("cat", grub_cmd_cat,
|
cmd = grub_register_command_p1 ("cat", grub_cmd_cat,
|
||||||
"cat FILE", "Show the contents of a file.");
|
"cat FILE", "Show the contents of a file.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(cmp)
|
GRUB_MOD_INIT(cmp)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("cmp", grub_cmd_cmp,
|
cmd = grub_register_command ("cmp", grub_cmd_cmp,
|
||||||
"cmp FILE1 FILE2", "Compare two files.");
|
"cmp FILE1 FILE2", "Compare two files.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,6 @@ static grub_command_t cmd_configfile, cmd_source, cmd_dot;
|
||||||
|
|
||||||
GRUB_MOD_INIT(configfile)
|
GRUB_MOD_INIT(configfile)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd_configfile =
|
cmd_configfile =
|
||||||
grub_register_command ("configfile", grub_cmd_source,
|
grub_register_command ("configfile", grub_cmd_source,
|
||||||
"configfile FILE", "Load another config file.");
|
"configfile FILE", "Load another config file.");
|
||||||
|
|
|
@ -56,7 +56,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(crc)
|
GRUB_MOD_INIT(crc)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("crc", grub_cmd_crc,
|
cmd = grub_register_command ("crc", grub_cmd_crc,
|
||||||
"crc FILE",
|
"crc FILE",
|
||||||
"Calculate the crc32 checksum of a file.");
|
"Calculate the crc32 checksum of a file.");
|
||||||
|
|
|
@ -133,7 +133,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(date)
|
GRUB_MOD_INIT(date)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd =
|
cmd =
|
||||||
grub_register_command ("date", grub_cmd_date,
|
grub_register_command ("date", grub_cmd_date,
|
||||||
"date [[year-]month-day] [hour:minute[:second]]",
|
"date [[year-]month-day] [hour:minute[:second]]",
|
||||||
|
|
|
@ -112,7 +112,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(echo)
|
GRUB_MOD_INIT(echo)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("echo", grub_cmd_echo, GRUB_COMMAND_FLAG_BOTH,
|
cmd = grub_register_extcmd ("echo", grub_cmd_echo, GRUB_COMMAND_FLAG_BOTH,
|
||||||
"echo [-e|-n] FILE", "Display a line of text.",
|
"echo [-e|-n] FILE", "Display a line of text.",
|
||||||
options);
|
options);
|
||||||
|
|
|
@ -98,7 +98,6 @@ static grub_command_t cmd_fixvideo;
|
||||||
|
|
||||||
GRUB_MOD_INIT(fixvideo)
|
GRUB_MOD_INIT(fixvideo)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd_fixvideo = grub_register_command ("fix_video", grub_cmd_fixvideo,
|
cmd_fixvideo = grub_register_command ("fix_video", grub_cmd_fixvideo,
|
||||||
0, "Fix video problem.");
|
0, "Fix video problem.");
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,6 @@ static grub_command_t cmd_fakebios, cmd_loadbios;
|
||||||
|
|
||||||
GRUB_MOD_INIT(loadbios)
|
GRUB_MOD_INIT(loadbios)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd_fakebios = grub_register_command ("fakebios", grub_cmd_fakebios,
|
cmd_fakebios = grub_register_command ("fakebios", grub_cmd_fakebios,
|
||||||
0, "fake bios.");
|
0, "fake bios.");
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(halt)
|
GRUB_MOD_INIT(halt)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("halt", grub_cmd_halt,
|
cmd = grub_register_command ("halt", grub_cmd_halt,
|
||||||
0, "halts the computer. This command does not"
|
0, "halts the computer. This command does not"
|
||||||
" work on all firmware.");
|
" work on all firmware.");
|
||||||
|
|
|
@ -93,7 +93,6 @@ static grub_command_t cmd_handler, cmd_terminal_input, cmd_terminal_output;
|
||||||
|
|
||||||
GRUB_MOD_INIT(handler)
|
GRUB_MOD_INIT(handler)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd_handler =
|
cmd_handler =
|
||||||
grub_register_command ("handler", grub_cmd_handler,
|
grub_register_command ("handler", grub_cmd_handler,
|
||||||
"handler [class [handler]]",
|
"handler [class [handler]]",
|
||||||
|
|
|
@ -408,8 +408,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(hdparm)
|
GRUB_MOD_INIT(hdparm)
|
||||||
{
|
{
|
||||||
(void) mod;
|
|
||||||
|
|
||||||
cmd = grub_register_extcmd ("hdparm", grub_cmd_hdparm,
|
cmd = grub_register_extcmd ("hdparm", grub_cmd_hdparm,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
"hdparm [OPTIONS] DISK",
|
"hdparm [OPTIONS] DISK",
|
||||||
|
|
|
@ -92,7 +92,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(help)
|
GRUB_MOD_INIT(help)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("help", grub_cmd_help,
|
cmd = grub_register_extcmd ("help", grub_cmd_help,
|
||||||
GRUB_COMMAND_FLAG_CMDLINE,
|
GRUB_COMMAND_FLAG_CMDLINE,
|
||||||
"help [PATTERN ...]",
|
"help [PATTERN ...]",
|
||||||
|
|
|
@ -125,7 +125,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT (hexdump)
|
GRUB_MOD_INIT (hexdump)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("hexdump", grub_cmd_hexdump,
|
cmd = grub_register_extcmd ("hexdump", grub_cmd_hexdump,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
"hexdump [OPTIONS] FILE_OR_DEVICE",
|
"hexdump [OPTIONS] FILE_OR_DEVICE",
|
||||||
|
|
|
@ -45,7 +45,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(halt)
|
GRUB_MOD_INIT(halt)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH,
|
cmd = grub_register_extcmd ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH,
|
||||||
"halt [-n]",
|
"halt [-n]",
|
||||||
"Halt the system, if possible using APM",
|
"Halt the system, if possible using APM",
|
||||||
|
|
|
@ -206,7 +206,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(play)
|
GRUB_MOD_INIT(play)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("play", grub_cmd_play,
|
cmd = grub_register_command ("play", grub_cmd_play,
|
||||||
"play FILE", "Play a tune");
|
"play FILE", "Play a tune");
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(pxecmd)
|
GRUB_MOD_INIT(pxecmd)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("pxe", grub_cmd_pxe, GRUB_COMMAND_FLAG_BOTH,
|
cmd = grub_register_extcmd ("pxe", grub_cmd_pxe, GRUB_COMMAND_FLAG_BOTH,
|
||||||
"pxe [-i|-b|-u]",
|
"pxe [-i|-b|-u]",
|
||||||
"Command to control the PXE device.", options);
|
"Command to control the PXE device.", options);
|
||||||
|
|
|
@ -173,7 +173,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(vbeinfo)
|
GRUB_MOD_INIT(vbeinfo)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd =
|
cmd =
|
||||||
grub_register_command ("vbeinfo", grub_cmd_vbeinfo, 0,
|
grub_register_command ("vbeinfo", grub_cmd_vbeinfo, 0,
|
||||||
"List compatible VESA BIOS extension video modes.");
|
"List compatible VESA BIOS extension video modes.");
|
||||||
|
|
|
@ -165,7 +165,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(vbetest)
|
GRUB_MOD_INIT(vbetest)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("vbetest", grub_cmd_vbetest,
|
cmd = grub_register_command ("vbetest", grub_cmd_vbetest,
|
||||||
0, "Test VESA BIOS Extension 2.0+ support");
|
0, "Test VESA BIOS Extension 2.0+ support");
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(ieee1275_suspend)
|
GRUB_MOD_INIT(ieee1275_suspend)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("suspend", grub_cmd_suspend,
|
cmd = grub_register_command ("suspend", grub_cmd_suspend,
|
||||||
0, "Return to Open Firmware prompt");
|
0, "Return to Open Firmware prompt");
|
||||||
}
|
}
|
||||||
|
|
|
@ -381,8 +381,6 @@ static grub_extcmd_t cmd_load, cmd_list, cmd_save;
|
||||||
|
|
||||||
GRUB_MOD_INIT(loadenv)
|
GRUB_MOD_INIT(loadenv)
|
||||||
{
|
{
|
||||||
(void) mod;
|
|
||||||
|
|
||||||
cmd_load =
|
cmd_load =
|
||||||
grub_register_extcmd ("load_env", grub_cmd_load_env,
|
grub_register_extcmd ("load_env", grub_cmd_load_env,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
|
|
|
@ -259,7 +259,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(ls)
|
GRUB_MOD_INIT(ls)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("ls", grub_cmd_ls, GRUB_COMMAND_FLAG_BOTH,
|
cmd = grub_register_extcmd ("ls", grub_cmd_ls, GRUB_COMMAND_FLAG_BOTH,
|
||||||
"ls [-l|-h|-a] [FILE]",
|
"ls [-l|-h|-a] [FILE]",
|
||||||
"List devices and files.", options);
|
"List devices and files.", options);
|
||||||
|
|
|
@ -42,7 +42,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(lsmmap)
|
GRUB_MOD_INIT(lsmmap)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("lsmmap", grub_cmd_lsmmap,
|
cmd = grub_register_command ("lsmmap", grub_cmd_lsmmap,
|
||||||
0, "List memory map provided by firmware.");
|
0, "List memory map provided by firmware.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(pci)
|
GRUB_MOD_INIT(pci)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("lspci", grub_cmd_lspci,
|
cmd = grub_register_command ("lspci", grub_cmd_lspci,
|
||||||
0, "List PCI devices");
|
0, "List PCI devices");
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,6 @@ grub_cmd_write (grub_command_t cmd, int argc, char **argv)
|
||||||
|
|
||||||
GRUB_MOD_INIT(memrw)
|
GRUB_MOD_INIT(memrw)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd_read_byte =
|
cmd_read_byte =
|
||||||
grub_register_command ("read_byte", grub_cmd_read,
|
grub_register_command ("read_byte", grub_cmd_read,
|
||||||
"read_byte ADDR", "read byte.");
|
"read_byte ADDR", "read byte.");
|
||||||
|
|
|
@ -341,8 +341,6 @@ static grub_command_t cmd_dump, cmd_rmmod, cmd_lsmod, cmd_exit;
|
||||||
|
|
||||||
GRUB_MOD_INIT(minicmd)
|
GRUB_MOD_INIT(minicmd)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
|
|
||||||
cmd_cat =
|
cmd_cat =
|
||||||
grub_register_command ("cat", grub_mini_cmd_cat,
|
grub_register_command ("cat", grub_mini_cmd_cat,
|
||||||
"cat FILE", "show the contents of a file");
|
"cat FILE", "show the contents of a file");
|
||||||
|
|
|
@ -327,7 +327,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(parttool)
|
GRUB_MOD_INIT(parttool)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
mymod = mod;
|
mymod = mod;
|
||||||
cmd = grub_register_command ("parttool", grub_cmd_parttool,
|
cmd = grub_register_command ("parttool", grub_cmd_parttool,
|
||||||
"parttool PARTITION COMMANDS",
|
"parttool PARTITION COMMANDS",
|
||||||
|
|
|
@ -46,7 +46,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(reboot)
|
GRUB_MOD_INIT(reboot)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("reboot", grub_cmd_reboot,
|
cmd = grub_register_command ("reboot", grub_cmd_reboot,
|
||||||
0, "Reboot the computer");
|
0, "Reboot the computer");
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,7 +220,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(search)
|
GRUB_MOD_INIT(search)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd =
|
cmd =
|
||||||
grub_register_extcmd ("search", grub_cmd_search,
|
grub_register_extcmd ("search", grub_cmd_search,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
|
|
|
@ -412,7 +412,6 @@ static grub_command_t cmd_1, cmd_2;
|
||||||
|
|
||||||
GRUB_MOD_INIT(test)
|
GRUB_MOD_INIT(test)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd_1 = grub_register_command ("[", grub_cmd_test,
|
cmd_1 = grub_register_command ("[", grub_cmd_test,
|
||||||
"[ EXPRESSION ]", "Evaluate an expression");
|
"[ EXPRESSION ]", "Evaluate an expression");
|
||||||
cmd_2 = grub_register_command ("test", grub_cmd_test,
|
cmd_2 = grub_register_command ("test", grub_cmd_test,
|
||||||
|
|
|
@ -151,7 +151,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(usbtest)
|
GRUB_MOD_INIT(usbtest)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("usb", grub_cmd_usbtest,
|
cmd = grub_register_command ("usb", grub_cmd_usbtest,
|
||||||
0, "Test USB support");
|
0, "Test USB support");
|
||||||
}
|
}
|
||||||
|
|
|
@ -835,8 +835,6 @@ static struct grub_scsi_dev grub_atapi_dev =
|
||||||
|
|
||||||
GRUB_MOD_INIT(ata)
|
GRUB_MOD_INIT(ata)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
|
|
||||||
/* To prevent two drivers operating on the same disks. */
|
/* To prevent two drivers operating on the same disks. */
|
||||||
grub_disk_firmware_is_tainted = 1;
|
grub_disk_firmware_is_tainted = 1;
|
||||||
if (grub_disk_firmware_fini)
|
if (grub_disk_firmware_fini)
|
||||||
|
|
|
@ -96,8 +96,6 @@ grub_ata_pass_through (grub_disk_t disk,
|
||||||
|
|
||||||
GRUB_MOD_INIT(ata_pthru)
|
GRUB_MOD_INIT(ata_pthru)
|
||||||
{
|
{
|
||||||
(void) mod;
|
|
||||||
|
|
||||||
/* Register ATA pass through function. */
|
/* Register ATA pass through function. */
|
||||||
grub_disk_ata_pass_through = grub_ata_pass_through;
|
grub_disk_ata_pass_through = grub_ata_pass_through;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,6 @@ static struct grub_disk_dev grub_host_dev =
|
||||||
|
|
||||||
GRUB_MOD_INIT(host)
|
GRUB_MOD_INIT(host)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
grub_disk_dev_register (&grub_host_dev);
|
grub_disk_dev_register (&grub_host_dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(loop)
|
GRUB_MOD_INIT(loop)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("loopback", grub_cmd_loopback,
|
cmd = grub_register_extcmd ("loopback", grub_cmd_loopback,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
"loopback [-d|-p] DEVICENAME FILE",
|
"loopback [-d|-p] DEVICENAME FILE",
|
||||||
|
|
|
@ -321,7 +321,6 @@ grub_efiemu_pnvram_cmd_register (void);
|
||||||
|
|
||||||
GRUB_MOD_INIT(efiemu)
|
GRUB_MOD_INIT(efiemu)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd_loadcore = grub_register_command ("efiemu_loadcore",
|
cmd_loadcore = grub_register_command ("efiemu_loadcore",
|
||||||
grub_cmd_efiemu_load,
|
grub_cmd_efiemu_load,
|
||||||
"efiemu_loadcore FILE",
|
"efiemu_loadcore FILE",
|
||||||
|
|
|
@ -305,8 +305,6 @@ grub_pxe_unload (void)
|
||||||
|
|
||||||
GRUB_MOD_INIT(pxe)
|
GRUB_MOD_INIT(pxe)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
|
|
||||||
grub_pxe_detect ();
|
grub_pxe_detect ();
|
||||||
if (grub_pxe_pxenv)
|
if (grub_pxe_pxenv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -365,7 +365,6 @@ quit:
|
||||||
|
|
||||||
GRUB_MOD_INIT (ntfscomp)
|
GRUB_MOD_INIT (ntfscomp)
|
||||||
{
|
{
|
||||||
(void) mod;
|
|
||||||
grub_ntfscomp_func = ntfscomp;
|
grub_ntfscomp_func = ntfscomp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(hello)
|
GRUB_MOD_INIT(hello)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("hello", grub_cmd_hello, GRUB_COMMAND_FLAG_BOTH,
|
cmd = grub_register_extcmd ("hello", grub_cmd_hello, GRUB_COMMAND_FLAG_BOTH,
|
||||||
"hello", "Say hello", 0);
|
"hello", "Say hello", 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,6 @@ grub_read_hook_datetime (struct grub_env_var *var,
|
||||||
|
|
||||||
GRUB_MOD_INIT(datetime)
|
GRUB_MOD_INIT(datetime)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < 7; i++)
|
for (i = 0; i < 7; i++)
|
||||||
|
|
|
@ -1328,7 +1328,6 @@ static grub_command_t cmd_kernel, cmd_mkext, cmd_kext, cmd_kextdir,
|
||||||
|
|
||||||
GRUB_MOD_INIT(xnu)
|
GRUB_MOD_INIT(xnu)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd_kernel = grub_register_command ("xnu_kernel", grub_cmd_xnu_kernel, 0,
|
cmd_kernel = grub_register_command ("xnu_kernel", grub_cmd_xnu_kernel, 0,
|
||||||
"load a xnu kernel");
|
"load a xnu kernel");
|
||||||
cmd_mkext = grub_register_command ("xnu_mkext", grub_cmd_xnu_mkext, 0,
|
cmd_mkext = grub_register_command ("xnu_mkext", grub_cmd_xnu_mkext, 0,
|
||||||
|
|
|
@ -413,7 +413,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(mmap)
|
GRUB_MOD_INIT(mmap)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("badram", grub_cmd_badram,
|
cmd = grub_register_command ("badram", grub_cmd_badram,
|
||||||
"badram ADDR1,MASK1[,ADDR2,MASK2[,...]]",
|
"badram ADDR1,MASK1[,ADDR2,MASK2[,...]]",
|
||||||
"declare memory regions as badram");
|
"declare memory regions as badram");
|
||||||
|
|
|
@ -140,8 +140,6 @@ static grub_err_t grub_pcpart_type (const grub_device_t dev,
|
||||||
|
|
||||||
GRUB_MOD_INIT (pcpart)
|
GRUB_MOD_INIT (pcpart)
|
||||||
{
|
{
|
||||||
(void)mod; /* To stop warning. */
|
|
||||||
|
|
||||||
activate_table_handle = grub_parttool_register ("pc_partition_map",
|
activate_table_handle = grub_parttool_register ("pc_partition_map",
|
||||||
grub_pcpart_boot,
|
grub_pcpart_boot,
|
||||||
grub_pcpart_bootargs);
|
grub_pcpart_bootargs);
|
||||||
|
|
|
@ -48,7 +48,6 @@ static struct grub_parser grub_sh_parser =
|
||||||
|
|
||||||
GRUB_MOD_INIT(sh)
|
GRUB_MOD_INIT(sh)
|
||||||
{
|
{
|
||||||
(void) mod;
|
|
||||||
grub_parser_register ("sh", &grub_sh_parser);
|
grub_parser_register ("sh", &grub_sh_parser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -607,7 +607,6 @@ static grub_extcmd_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(serial)
|
GRUB_MOD_INIT(serial)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_extcmd ("serial", grub_cmd_serial,
|
cmd = grub_register_extcmd ("serial", grub_cmd_serial,
|
||||||
GRUB_COMMAND_FLAG_BOTH,
|
GRUB_COMMAND_FLAG_BOTH,
|
||||||
"serial [OPTIONS...]",
|
"serial [OPTIONS...]",
|
||||||
|
|
|
@ -177,7 +177,6 @@ static grub_command_t cmd;
|
||||||
|
|
||||||
GRUB_MOD_INIT(terminfo)
|
GRUB_MOD_INIT(terminfo)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
cmd = grub_register_command ("terminfo", grub_cmd_terminfo,
|
cmd = grub_register_command ("terminfo", grub_cmd_terminfo,
|
||||||
"terminfo [TERM]", "Set terminfo type.");
|
"terminfo [TERM]", "Set terminfo type.");
|
||||||
grub_terminfo_set_current ("vt100");
|
grub_terminfo_set_current ("vt100");
|
||||||
|
|
|
@ -244,8 +244,6 @@ static struct grub_term_input grub_usb_keyboard_term =
|
||||||
|
|
||||||
GRUB_MOD_INIT(usb_keyboard)
|
GRUB_MOD_INIT(usb_keyboard)
|
||||||
{
|
{
|
||||||
(void) mod; /* To stop warning. */
|
|
||||||
|
|
||||||
grub_usb_hid ();
|
grub_usb_hid ();
|
||||||
grub_term_register_input ("usb_keyboard", &grub_usb_keyboard_term);
|
grub_term_register_input ("usb_keyboard", &grub_usb_keyboard_term);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue