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

scst: Unbreak the build for kernel versions <= 6.3 #161

Merged
merged 1 commit into from
May 2, 2023

Conversation

lnocturno
Copy link
Contributor

The previous series of patches introduced the use of a const pointer to scsi_host_template. However, scsi_host_alloc() uses a non-const pointer prior to kernel version 6.4, causing the build to throw the following error:

passing argument 1 of ‘scsi_host_alloc’ discards ‘const’ qualifier
from pointer target type

Hence, cast away the constness to resolve the error.

@lnocturno lnocturno force-pushed the 3.8/gleb/fix_6.4_linux_port branch from e49418d to 9d62deb Compare May 2, 2023 20:04
The previous series of patches introduced the use of a const pointer to
scsi_host_template. However, scsi_host_alloc() uses a non-const pointer
prior to kernel version 6.4, causing the build to throw the following
error:

    passing argument 1 of ‘scsi_host_alloc’ discards ‘const’
    qualifier from pointer target type

Hence, cast away the constness to resolve the error.
@lnocturno lnocturno merged commit 3dad1e9 into master May 2, 2023
5 checks passed
@lnocturno lnocturno deleted the 3.8/gleb/fix_6.4_linux_port branch May 2, 2023 20:14
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.

None yet

1 participant