Linux 6.10 compat: Remove second parameter of __assign_str() #16390
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove second parameter of __assign_str()
Motivation and Context
The header files in /include/os/Linux/zfs/sys/ are behind some changes in Linux 6.10, which may cause some problems when compiling kernels with the zfs module built in.
Description
Simply removed the second parameter of __assign_str().
In Linux kernel commit 2c92ca849fcc6ee7d0c358e9959abc9f58661aea, the second parameter of __assign_str() was removed. As the instruction says, there is no need to pass the second parameter. But I didn't check if it would break anything to simply remove the second parameter.
How Has This Been Tested?
My custom Linux kernel (6.10.1) has compiled successfully with these changes and seems to be running well with no problems.
But I don't have the prerequisites to run the ZFS test suite. If there's a need for more in-depth testing, I'll try running it in a virtual machine.
Types of changes
Checklist:
Signed-off-by
.