Page MenuHomeFreeBSD

linuxkpi: Add `show_fdinfo()` to `struct file_operations`
ClosedPublic

Authored by dumbbell on Feb 19 2025, 9:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 1, 11:14 PM
Unknown Object (File)
Mon, Jun 30, 8:25 PM
Unknown Object (File)
Mon, Jun 30, 7:33 AM
Unknown Object (File)
Mon, Jun 30, 4:12 AM
Unknown Object (File)
Sun, Jun 29, 7:58 PM
Unknown Object (File)
Sun, Jun 29, 1:57 PM
Unknown Object (File)
Sun, Jun 29, 6:49 AM
Unknown Object (File)
Sun, Jun 29, 5:01 AM
Subscribers

Details

Summary

We never call this field but it allows to compile drivers without modifications.

This is used by the DRM drivers for some time, but another change part of the update to Linux 6.8 led to compile them with CONFIG_PROC_FS. This connected code that uses this struct field.

This is part of the update of DRM drivers to Linux 6.8.

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dumbbell edited the summary of this revision. (Show Details)
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/fs.h
157

No need for variable names in declarations (remove m and f) also to stay consistent with the rest of the file.

This likely warrants another __FreeBSD_version bump (so maybe do that when all changes are going in together).

Address style-related comment from bz

This revision is now accepted and ready to land.Apr 1 2025, 11:01 PM