Searched hist:db8952e7094fde3a397321240d5d57ec111258d8 (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/firmware/efi/ |
H A D | dev-path-parser.c | diff db8952e7094fde3a397321240d5d57ec111258d8 Mon Feb 10 09:46:57 CET 2020 Ard Biesheuvel <ardb@kernel.org> efi/dev-path-parser: Add struct definition for vendor type device path nodes
In preparation of adding support for loading the initrd via a special device path, add the struct definition of a vendor GUIDed device path node to efi.h.
Since we will be producing these data structures rather than just consumsing the ones instantiated by the firmware, refactor the various device path node definitions so we can take the size of each node using sizeof() rather than having to resort to opaque arithmetic in the static initializers.
While at it, drop the #if IS_ENABLED() check for the declaration of efi_get_device_by_path(), which is unnecessary, and constify its first argument as well.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
|
H A D | apple-properties.c | diff db8952e7094fde3a397321240d5d57ec111258d8 Mon Feb 10 09:46:57 CET 2020 Ard Biesheuvel <ardb@kernel.org> efi/dev-path-parser: Add struct definition for vendor type device path nodes
In preparation of adding support for loading the initrd via a special device path, add the struct definition of a vendor GUIDed device path node to efi.h.
Since we will be producing these data structures rather than just consumsing the ones instantiated by the firmware, refactor the various device path node definitions so we can take the size of each node using sizeof() rather than having to resort to opaque arithmetic in the static initializers.
While at it, drop the #if IS_ENABLED() check for the declaration of efi_get_device_by_path(), which is unnecessary, and constify its first argument as well.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
|