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

Use proc_ops structure for kernel version >= 5.6.0 #196

Merged
merged 1 commit into from
May 19, 2020

Conversation

mateuszmandera
Copy link

Since 5.6.0, proc_create requires a proc_ops* argument
instead of file_operations*.

It compiles and seems to work on my machine, but I haven't done much testing. Please review if this is the correct way to migrate to the new structure.

@rien333
Copy link

rien333 commented Apr 5, 2020

Yes please, this totally breaks on 5.6 otherwhise. Not sure if this is still even in development tho @Lekensteyn

@rhysperry111
Copy link

Please merge ASAP. I know this repo is basically unmaintained but this is important

@someonewithpc
Copy link

someonewithpc commented Apr 7, 2020

Welp, was going to open the same pull request. Can confirm it seems to work

@Lekensteyn Not wanting to be rude, but this is urgent for rolling release users

@rhysperry111
Copy link

Ok guys, It seems this repo is unmaintained. Is it time to fork it?

@bluca
Copy link
Member

bluca commented Apr 16, 2020

Ok guys, It seems this repo is unmaintained. Is it time to fork it?

Please be patient. 5.6 is scarcely used. Rolling distros can have a patch for now.

@Lekensteyn
Copy link
Member

Lekensteyn commented Apr 16, 2020

I can look into this later. It would help if you could track down the upstream commit and mention it in the commit message. That should make it clear whether this approach is the right one or not.

@mateuszmandera
Copy link
Author

@Lekensteyn torvalds/linux@d56c0d4 (added to my commit message as well)

@rien333
Copy link

rien333 commented May 19, 2020

Please be patient. 5.6 is scarcely used. Rolling distros can have a patch for now.

The change is very small though, and people have reported that it works. 5.7 will be released somewhere after next week. Fedora is already on 5.6.

Also, it might very well be that bbswitch is most popular among technically-inclined users, like those on rolling distros. More generally, I don't think that Arch and Manjaro are that scarcely used. (manjaro is ranked second on distrowatch, if that says anything)

Since 5.6.0, proc_create requires a `struct proc_ops *` argument instead
of `struct file_operations *`.
Commit with the migration in the kernel source can be found at
torvalds/linux@d56c0d4
@Lekensteyn Lekensteyn merged commit 07b110d into Bumblebee-Project:develop May 19, 2020
@Lekensteyn
Copy link
Member

Lekensteyn commented May 19, 2020

Thanks for the fix and sorry for the delay. I made some whitespace changes, removed the unnecessary proc_fs.h include (it is implied via linux/acpi.h -> acpi/acpi_bus.h) and tweaked the commit message a bit.

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.

Network Analyzer: Ping '172.0.0.34'
6 participants