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

Details

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