grub/grub-core/kern
Colin Watson d0d4b8a063 Remove nested functions from memory map iterators.
* grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
argument, passed to hook.
* grub-core/kern/i386/coreboot/mmap.c
(grub_linuxbios_table_iterate): Likewise.
(grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
instead of nested.
(grub_machine_mmap_iterate): Add hook_data argument.
* grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
Add hook_data argument, passed to hook.
* grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
(grub_machine_mmap_iterate): Likewise.
* grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
* include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
prototype.
* include/grub/memory.h (grub_memory_hook_t): Add data argument.
Remove NESTED_FUNC_ATTR from here and from all users.
(grub_mmap_iterate): Update prototype.
(grub_efi_mmap_iterate): Update prototype.  Update all callers to
pass appropriate hook data.
(grub_machine_mmap_iterate): Likewise.

* grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
static instead of nested.
* grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
Rename to ...
(lsmmap_hook): ... this.
* grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
Likewise.
(grub_efiemu_mmap_fill: fill_hook): Likewise.
* grub-core/kern/i386/coreboot/init.c (grub_machine_init:
heap_init): Likewise.
* grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
Rename to ...
(mmap_iterate_hook): ... this.
* grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
Likewise.
* grub-core/lib/ieee1275/relocator.c
(grub_relocator_firmware_get_max_events: count): Likewise.
(grub_relocator_firmware_fill_events: fill): Likewise.  Rename
to ...
(grub_relocator_firmware_fill_events_iter): ... this.
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
hook): Likewise.  Rename to ...
(grub_relocator_alloc_chunk_align_iter): ... this.
* grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
Rename to ...
(generate_e820_mmap_iter): ... this.
* grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
Rename to ...
(count_hook): ... this.
(grub_linux_boot: hook): Likewise.  Rename to ...
(grub_linux_boot_mmap_find): ... this.
(grub_linux_boot: hook_fill): Likewise.  Rename to ...
(grub_linux_boot_mmap_fill): ... this.
* grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
hook): Likewise.  Rename to ...
(grub_fill_multiboot_mmap_iter): ... this.
* grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
hook): Likewise.  Rename to ...
(count_hook): ... this.
* grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
hook): Likewise.  Rename to ...
(grub_fill_multiboot_mmap_iter): ... this.
* grub-core/loader/powerpc/ieee1275/linux.c
(grub_linux_claimmap_iterate: alloc_mem): Likewise.
* grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
Likewise.  Rename to ...
(alloc_phys_choose): ... this.
(determine_phys_base: get_physbase): Likewise.
* grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
find_hook): Likewise.
* grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
(malloc_hook: count_hook): Likewise.
* grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
Likewise.  Rename to ...
(lower_hook): ... this.
(grub_mmap_get_upper: hook): Likewise.  Rename to ...
(upper_hook): ... this.
(grub_mmap_get_post64: hook): Likewise.  Rename to ...
(post64_hook): ... this.
* grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
Likewise.  Rename to ...
(lower_hook): ... this.
(grub_mmap_get_upper: hook): Likewise.  Rename to ...
(upper_hook): ... this.
* grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
(grub_mmap_iterate: fill_hook): Likewise.
(fill_mask): Pass addr and mask within a single struct.
(grub_cmd_badram: hook): Make static instead of nested.  Rename
to ...
(badram_iter): ... this.
(grub_cmd_cutmem: hook): Likewise.  Rename to ...
(cutmem_iter): ... this.
2013-01-15 12:02:35 +00:00
..
efi Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
emu * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly 2013-01-13 22:45:16 +01:00
generic Remove non-functional EFI grub_get_rtc. Put a better fatal message 2012-06-11 20:44:38 +02:00
i386 Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
ia64 Use ITC on IA64 rather than broken routine based on daytime. 2012-06-09 10:52:39 +02:00
ieee1275 Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
mips Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
powerpc * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions. 2012-06-18 21:09:57 +02:00
sparc64 Another round of string clarification and adding TRANSLATORS comments. 2012-02-26 17:28:05 +01:00
x86_64 Another round of string clarification and adding TRANSLATORS comments. 2012-02-26 17:28:05 +01:00
command.c Remove prio_list 2012-02-12 03:52:17 +01:00
corecmd.c Remove several trivially-unnecessary uses of nested functions. 2012-12-31 17:31:38 +00:00
device.c * grub-core/kern/device.c (grub_device_open): Remove dead code. 2012-06-19 11:20:34 +02:00
disk.c * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K 2013-01-10 08:09:26 +01:00
dl.c * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub 2012-03-19 11:10:11 +01:00
elf.c Another round of string clarification and adding TRANSLATORS comments. 2012-02-26 17:28:05 +01:00
env.c * include/grub/env.h (grub_env_find): Remove prototype. 2012-02-26 23:53:21 +01:00
err.c * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ... 2012-02-05 10:24:53 +01:00
file.c Import gcrypt public-key cryptography and implement signature checking. 2013-01-11 21:32:42 +01:00
fs.c Remove several trivially-unnecessary uses of nested functions. 2012-12-31 17:31:38 +00:00
list.c Remove prio_list. 2012-02-26 22:49:24 +01:00
main.c * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak. 2012-06-22 11:51:48 +02:00
misc.c Fix failing printf test. 2013-01-02 12:48:31 +00:00
mm.c * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions. 2012-06-23 00:39:10 +02:00
parser.c Remove several trivially-unnecessary uses of nested functions. 2012-12-31 17:31:38 +00:00
partition.c * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited 2012-02-08 20:19:44 +01:00
rescue_parser.c Improve string. Gettextize. 2012-02-12 15:25:25 +01:00
rescue_reader.c Add noreturn attributes and remove unreachable code. 2011-12-13 15:13:51 +01:00
term.c Fix tab and wide character handling in editor and menu. 2012-03-27 17:07:26 +02:00
time.c automake commit without merge history 2010-05-06 11:34:04 +05:30
vga_init.c Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00