Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import w8001 patch from upstream #419

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

jigpu
Copy link
Member

@jigpu jigpu commented May 2, 2024

Imports the following upstream commit: Input: move from strlcpy with unused retval to strscpy (a9f08ad7adb3). The strlcpy function is removed in Linux 6.9, which prevents input-wacom from compiling without this commit. The import only applies to the 4.5 branch since strscpy is not available in 3.17.

This request also includes a commit to (temporarily) set -Wno-error=unused-result when Github runs its compile tests. This is because the new strscpy function has a return value which is currently ignored. We should fix this upstream and then revert this second change once it is no longer needed.

Wolfram Sang and others added 2 commits May 2, 2024 10:37
Follow the advice of the below link and prefer 'strscpy' in this
subsystem. Conversion is 1:1 because the return value is not used.
Generated by a coccinelle script.

Signed-off-by: Wolfram Sang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
[[email protected]: Imported into input-wacom (a9f08ad7adb3)
Signed-off-by: Jason Gerecke <[email protected]>
…arning

Commit a9f08ad7adb3 upstream introduces an unused-result warning. While we
wait for a fix to be made upstream, this commit has our Github runner not
treat the warning as an error. This will need to be reverted after a fix
is accepted upstream.

Signed-off-by: Jason Gerecke <[email protected]>
@jigpu jigpu requested a review from Pinglinux May 2, 2024 18:23
@Pinglinux Pinglinux merged commit 76f769e into linuxwacom:master May 7, 2024
12 of 13 checks passed
@Pinglinux
Copy link
Member

Patchset looks good to me. We'll work on the mentioned upstream patch and come back to clean up this repo when that patch is merged.

@jigpu jigpu deleted the w8001-imports branch June 7, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants