Fix build issues with Linux v6.8 and later
-
Rename
min_buffers_neededmember instruct vb2_queuetomin_queued_buffersaccording to the changes in Linux v6.8. (The change described above in the Linux Kernel source code can be viewed at: https://github.com/torvalds/linux/commit/80c2b40a51393add616a1fd186a1cc10bd676a3f) -
Remove
FBINFO_FLAG_DEFAULTflag, as this flag was removed in Linux v6.6 and later. (The change described above in the Linux Kernel source code can be viewed at: https://github.com/torvalds/linux/commit/0444fa357c16a4c36c6c6e3ef13e690875fad208)
It is meaningless to say something like
In Linux v6.8, the 'min_buffers_needed' field of vb2_queue was renamed to 'min_queued_buffers'. Due to this change, the compiler will not find the declaration of the field 'min_buffers_needed' and will cause compilation error when building with Linux v6.8 and later.
The compiler is not related to the changes by Linux kernel internally. You should analyze the upstream changes for the considerations and/or impacts.
It is meaningless to say something like
In Linux v6.8, the 'min_buffers_needed' field of vb2_queue was renamed to 'min_queued_buffers'. Due to this change, the compiler will not find the declaration of the field 'min_buffers_needed' and will cause compilation error when building with Linux v6.8 and later.
The compiler is not related to the changes by Linux kernel internally. You should analyze the upstream changes for the considerations and/or impacts.
I've updated the commit messages.
Thank @hungyuhang for contributing!