From: Guilherme G. Piccoli Date: Thu, 6 Oct 2022 22:42:11 +0000 (-0300) Subject: efi: pstore: Follow convention for the efi-pstore backend name X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=893c5f1de620fb0134ddef37dfd850f6c639162b;p=linux.git efi: pstore: Follow convention for the efi-pstore backend name For some reason, the efi-pstore backend name (exposed through the pstore infrastructure) is hardcoded as "efi", whereas all the other backends follow a kind of convention in using the module name. Let's do it here as well, to make user's life easier (they might use this info for unloading the module backend, for example). Cc: Ard Biesheuvel Signed-off-by: Guilherme G. Piccoli Acked-by: Ard Biesheuvel Signed-off-by: Kees Cook Link: https://lore.kernel.org/r/20221006224212.569555-8-gpiccoli@igalia.com --- diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c index 3bddc152fcd43..97a9e84840a03 100644 --- a/drivers/firmware/efi/efi-pstore.c +++ b/drivers/firmware/efi/efi-pstore.c @@ -207,7 +207,7 @@ static int efi_pstore_erase(struct pstore_record *record) static struct pstore_info efi_pstore_info = { .owner = THIS_MODULE, - .name = "efi", + .name = KBUILD_MODNAME, .flags = PSTORE_FLAGS_DMESG, .open = efi_pstore_open, .close = efi_pstore_close,