Skip to contentSkip to conversation

drm: i915: gt: replace __ATTR() with __ATTR_RO()

PATCH New Salah Triki 2 participants 2 messages Apr 27, 2025 – Apr 28, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: i915: gt: replace __ATTR() with __ATTR_RO()

Replace __ATTR() with __ATTR_RO() to make code cleaner.

---
 drivers/gpu/drm/i915/gt/sysfs_engines.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/gt/sysfs_engines.c +1 -2
index aab2759067d2..f6149167de05 100644
@@ -27,8 +27,7 @@ name_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
 	return sysfs_emit(buf, "%s\n", kobj_to_engine(kobj)->name);
 }
 
-static const struct kobj_attribute name_attr =
-__ATTR(name, 0444, name_show, NULL);
+static const struct kobj_attribute name_attr = __ATTR_RO(name);
 
 static ssize_t
 class_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
Signature · 1 line
2.43.0
#1 lore raw

✗ LGCI.VerificationFailed: failure for drm: i915: gt: replace __ATTR() with __ATTR_RO()

== Series Details ==

== Series Details ==

Series: drm: i915: gt: replace __ATTR() with __ATTR_RO()
URL : https://patchwork.freedesktop.org/series/148363/
State : failure

== Summary ==

Address '[email protected]' is not on the allowlist! Exception occurred during validation, bailing out!