HomeFreeBSD

linuxkpi: Fix `__ATTR_RO()` in <linux/sysfs.h>

Description

linuxkpi: Fix __ATTR_RO() in <linux/sysfs.h>

[Why]
The passed structure may not have a .store field. This is the case in
the amdgpu DRM driver starting with Linux 5.18.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D43023

(cherry picked from commit d752a5e82ac92603fadf82e7de75878e1f5d054a)

Details

Provenance
dumbbellAuthored on Dec 8 2023, 9:57 PM
wulfCommitted on Feb 17 2024, 8:58 PM
Reviewer
manu
Differential Revision
D43023: linuxkpi: Fix `__ATTR_RO()` in <linux/sysfs.h>
Parents
rGaf41c1bee4c6: linuxkpi: Add `sysfs_create_link()` in <linux/sysfs.h>
Branches
Unknown
Tags
Unknown