* include/grub/types.h: Declare all byteswaps as inline functions

except compile-time ones.

	Solves variable shadowing in constructions like
	cpu_to_le (le_to_cpu(x) + 1).
This commit is contained in:
Vladimir Serbinenko 2013-12-04 08:42:35 +01:00
parent 47f88cc94e
commit 85eb579ad9
2 changed files with 30 additions and 25 deletions

View file

@ -1,3 +1,11 @@
2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/types.h: Declare all byteswaps as inline functions
except compile-time ones.
Solves variable shadowing in constructions like
cpu_to_le (le_to_cpu(x) + 1).
2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/efi/efi.c: Remove variable length arrays.