From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0CBE3EC830 for ; Thu, 8 Oct 2026 08:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791447207; cv=none; b=UbyFHbLxKImQF+eCc7ITvVrA33zR1OHPVcPvHq1hLgV5oOg4a4LAWZny4O0pTHomMxNQSfP8Ry0anfnw5G7CLJ33BKU7wHt/xq/a0WQ+g6hv8GlOd1258lV0baCs9L4ldUCo5/FQhXIofxdNAEsxuFpWEQ8p6mHb2fKGlUCtpQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791447207; c=relaxed/simple; bh=eYYih+ynO2oP3fLkPqIUtAILMYOlbp/caA1xWN8WlJY=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=GUnNmkIWqQY/NCcs0+hK+Qe3JK2OlP+LPbJfWGJrn8xn+ug/p4D8545/KEG1y/sK+El56Ohunftu+C/pGD3NB1fJzp6X3LuKT4TgPOsCc1DFhDVBBuGFU8ei4wJopjEIlraxKpjd/WoC3BfHogHVgjnYBj42LM+eu/h9/xTLlzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hT7S9wqP; arc=none smtp.client-ip=209.85.218.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hT7S9wqP" Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-c11f2b9f62fso374710066b.2 for ; Thu, 08 Oct 2026 01:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1791447204; x=1792052004; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:mime-version:date:from:to:cc:subject:date:message-id :reply-to:content-type; bh=M+EXxVIoAc+7gOB2P0McchlGKIX8MtBnu+nbC+foyvM=; b=hT7S9wqPHlNAb42jOrLky5E2mM3IWARhzAbWjxGYReaqymVEF1V0bcI2YDdTzyrijV bPyzimZy6JOuWX4Z1eIDa54m/32mBpoxBAw6ZsxcZtTUG/Ju5wnWREEDGacDGLt7Mjxy KyYgw/b3zlt+4C2LCpxrbi3sEi5ImExY9rTC9YDAcX3uMMbw2W799lPcmR2G2a61gBvr l14VrrA0smBG1XSHsYvJ94ouHEKWq1fvjzf1ZwSB40CAgFmroqGU9VOCRzgTuAPqH+/6 wRO0wcIOu46I8aCvMmPPA/lFLWw34dclhvX8nqw/IPeu5z9Wt8Lq0waelXnn57t2lYmK mVwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791447204; x=1792052004; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:mime-version:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=M+EXxVIoAc+7gOB2P0McchlGKIX8MtBnu+nbC+foyvM=; b=lnBbBhdOVe5JGyOK0SUBcCk5DRfUGeihFAIIFLIpmdFE/6Rb/0SjGLNu0prmM+wW2v QYEasdtFfMAU7n5VkoQahBDHfiU7gTtagiNY5R9/+5GJcqCkKmatIbTsIPRCO7cgpABd Xtwt3RHRfF8W/njFA+tRTph1KcARxr9/ss8xrlXBmo+IuoTDjuFKzd06e+KIuuaaqImY WWdZiHF014m8xDIcQQh3vqkSB1f3lRHips7SKRUiAX9ZT9d4a/xzgAOBqmZb0YhJC+Ia 5FRu6BMrt9nduFOHJ//JzwcMT0Pd1xP3a+25mkfW9MS5fAI6bKTFlJUHVYPECQBv/N+Y TioA== X-Gm-Message-State: AFuF++kAqkzDZGTT2vCQU9AOAM2lTZeMrMlTj5ZphVuUN/nGP3N0b3da kx2YOEJdLndcNQAy/rwzaYOgTD06n//JHjGKG7u6zQJru5TH1iDSrtdGjhgACiglsQ2UpIInoQ= = X-Received: from edev3-n2.prod.google.com ([2002:a05:6402:a2c3:20b0:6aa:44dc:89a]) (user=ardb job=prod-delivery.src-stubby-dispatcher) by 2002:a17:906:f586:b0:c29:4b79:e41a with SMTP id a640c23a62f3a-c317be010f6mr427164066b.20.1791447203705; Thu, 08 Oct 2026 01:13:23 -0700 (PDT) Date: Thu, 8 Oct 2026 10:13:18 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.56.0.360.g66cac248cb-goog Message-ID: <20261008081317.2602565-4-ardb+git@google.com> Subject: [PATCH v2 0/2] EFI sysfs constification From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , "=?UTF-8?q?Thomas=20Wei=C3=9Fschuh?=" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: Ard Biesheuvel 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=C3=9Fschuh 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(-) --=20 2.56.0.360.g66cac248cb-goog