drm: i915: gt: replace __ATTR() with __ATTR_RO()
Subsystems (2)
PATCH 1/1 drm: i915: gt: replace __ATTR() with __ATTR_RO()
Replace __ATTR() with __ATTR_RO() to make code cleaner.
Signed-off-by Salah Triki <[email protected]>
--- 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
@@ -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
Patchwork
CI✗ 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!