* [PATCH] drm: xe: Replace sprintf() with sysfs_emit()
@ 2025-12-05 9:51 Madhur Kumar
2025-12-08 15:18 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Madhur Kumar @ 2025-12-05 9:51 UTC (permalink / raw)
To: lucas.demarchi, thomas.hellstrom, rodrigo.vivi
Cc: airlied, simona, intel-xe, dri-devel, linux-kernel, Madhur Kumar
Replace sprintf() calls with sysfs_emit() to follow current kernel
coding standards.
sysfs_emit() is the preferred method for formatting sysfs output as it
provides better bounds checking and is more secure.
Signed-off-by: Madhur Kumar <madhurkumar004@gmail.com>
---
drivers/gpu/drm/xe/xe_pmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_pmu.c b/drivers/gpu/drm/xe/xe_pmu.c
index cab51d826345..f016459c9904 100644
--- a/drivers/gpu/drm/xe/xe_pmu.c
+++ b/drivers/gpu/drm/xe/xe_pmu.c
@@ -425,7 +425,7 @@ static ssize_t event_attr_show(struct device *dev,
struct perf_pmu_events_attr *pmu_attr =
container_of(attr, struct perf_pmu_events_attr, attr);
- return sprintf(buf, "event=%#04llx\n", pmu_attr->id);
+ return sysfs_emit(buf, "event=%#04llx\n", pmu_attr->id);
}
#define XE_EVENT_ATTR(name_, v_, id_) \
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* ✗ LGCI.VerificationFailed: failure for drm: xe: Replace sprintf() with sysfs_emit()
2025-12-05 9:51 [PATCH] drm: xe: Replace sprintf() with sysfs_emit() Madhur Kumar
@ 2025-12-08 15:18 ` Patchwork
0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2025-12-08 15:18 UTC (permalink / raw)
To: Madhur Kumar; +Cc: intel-xe
== Series Details ==
Series: drm: xe: Replace sprintf() with sysfs_emit()
URL : https://patchwork.freedesktop.org/series/158644/
State : failure
== Summary ==
Address 'madhurkumar004@gmail.com' is not on the allowlist, which prevents CI from being triggered for this patch.
If you want Intel GFX CI to accept this address, please contact the script maintainers at i915-ci-infra@lists.freedesktop.org.
Exception occurred during validation, bailing out!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-08 15:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-05 9:51 [PATCH] drm: xe: Replace sprintf() with sysfs_emit() Madhur Kumar
2025-12-08 15:18 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox