Re: [PATCH v2 0/2] EFI sysfs constification
From: Thomas Weißschuh
Date: Thu Oct 08 2026 - 09:10:47 EST
Oct 8, 2026 10:13:25 Ard Biesheuvel <ardb+git@xxxxxxxxxx>:
> From: Ard Biesheuvel <ardb@xxxxxxxxxx>
>
> Constify static sysfs node accessors in the EFI core code. While at it,
> switch to sysfs_emit() where appropriate.
>
> Changes since v1:
> - constify efi_runtime_show() prototype and use __KOBJ_ATTR
> - add sysfs_emit() patch
Reviewed-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> Ard Biesheuvel (2):
> efi: Constify sysfs attributes
> efi: Use sysfs_emit() not sprintf() to generate sysfs file contents
>
> arch/x86/platform/efi/efi.c | 13 ++---
> drivers/firmware/efi/efi.c | 52 +++++++++++---------
> include/linux/efi.h | 3 +-
> 3 files changed, 37 insertions(+), 31 deletions(-)
>
> --
> 2.56.0.360.g66cac248cb-goog