summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol@kernel.org>2026-07-22 23:22:25 +0200
committerArd Biesheuvel <ardb@kernel.org>2026-08-20 14:49:39 +0300
commit01787ed2fde4ac42bc35339dae799a5abb094ed0 (patch)
treee3681612b9ce88e3a2afb6cdabc323798fa64034 /include
parent4b2c033b5bc971a6a1e3c5cd2fa44421eb2ff84e (diff)
downloadlinux-01787ed2fde4ac42bc35339dae799a5abb094ed0.tar.gz
linux-01787ed2fde4ac42bc35339dae799a5abb094ed0.zip
efi: make efi_guid_to_str() take a const GUID pointer
efi_guid_to_str() only formats the GUID through the byte array passed to the UUID printf formatter. It does not modify the GUID contents. Make the input pointer const so callers can stringify GUIDs from const data without a cast. Signed-off-by: Vincent Mailhol <mailhol@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/efi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h
index b3c83516593d..aa15ff88539b 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -705,7 +705,7 @@ efi_guidcmp (efi_guid_t left, efi_guid_t right)
}
static inline char *
-efi_guid_to_str(efi_guid_t *guid, char *out)
+efi_guid_to_str(const efi_guid_t *guid, char *out)
{
sprintf(out, "%pUl", guid->b);
return out;