|
@@ -162,7 +162,7 @@ static struct efi_well_known_guid efi_well_known_guids[] = {
|
162
|
162
|
* @v guid GUID
|
163
|
163
|
* @ret string Printable string
|
164
|
164
|
*/
|
165
|
|
-const char * efi_guid_ntoa ( EFI_GUID *guid ) {
|
|
165
|
+const __attribute__ (( pure )) char * efi_guid_ntoa ( EFI_GUID *guid ) {
|
166
|
166
|
union {
|
167
|
167
|
union uuid uuid;
|
168
|
168
|
EFI_GUID guid;
|
|
@@ -314,7 +314,8 @@ void dbg_efi_protocols ( EFI_HANDLE handle ) {
|
314
|
314
|
* @v path Device path
|
315
|
315
|
* @ret text Textual representation of device path, or NULL
|
316
|
316
|
*/
|
317
|
|
-const char * efi_devpath_text ( EFI_DEVICE_PATH_PROTOCOL *path ) {
|
|
317
|
+const __attribute__ (( pure )) char *
|
|
318
|
+efi_devpath_text ( EFI_DEVICE_PATH_PROTOCOL *path ) {
|
318
|
319
|
EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
|
319
|
320
|
static char text[256];
|
320
|
321
|
void *start;
|
|
@@ -627,7 +628,7 @@ static struct efi_handle_name_type efi_handle_name_types[] = {
|
627
|
628
|
* @v handle EFI handle
|
628
|
629
|
* @ret text Name of handle, or NULL
|
629
|
630
|
*/
|
630
|
|
-const char * efi_handle_name ( EFI_HANDLE handle ) {
|
|
631
|
+const __attribute__ (( pure )) char * efi_handle_name ( EFI_HANDLE handle ) {
|
631
|
632
|
EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
|
632
|
633
|
struct efi_handle_name_type *type;
|
633
|
634
|
unsigned int i;
|