cleanup: grub_cpu_to_XXX_compile_time for constants
This tries to catch all cases where grub_cpu_to_XXX was used for constant expressions (including sizeof).
This commit is contained in:
parent
6d05b6383c
commit
954fe77163
26 changed files with 98 additions and 93 deletions
|
@ -329,7 +329,7 @@ write_file (FILE *out, const char *fname, struct grub_keyboard_layout *layout)
|
|||
grub_uint32_t version;
|
||||
unsigned i;
|
||||
|
||||
version = grub_cpu_to_le32 (GRUB_KEYBOARD_LAYOUTS_VERSION);
|
||||
version = grub_cpu_to_le32_compile_time (GRUB_KEYBOARD_LAYOUTS_VERSION);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE (layout->keyboard_map); i++)
|
||||
layout->keyboard_map[i] = grub_cpu_to_le32(layout->keyboard_map[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue