[PATCH v2 0/2] EFI sysfs constification

From: Ard Biesheuvel

Date: Thu Oct 08 2026 - 04:15:50 EST


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

Cc: 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