Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Had trouble compiling on 4.6 kernel #1

Closed
sautingleung opened this issue Jun 23, 2016 · 4 comments
Closed

Had trouble compiling on 4.6 kernel #1

sautingleung opened this issue Jun 23, 2016 · 4 comments

Comments

@sautingleung
Copy link

Hi, I had trouble compiling your code on a 4.6 kernel. The foloowing is how I fixed it and finally compiled.

kernel function rename:

page_cache_release -> put_page
page_cache_get -> get_page
PAGE_CACHE_* -> PAGE_*
get_user_pages() -> get_user_pages_remote()

@ondr3j
Copy link
Owner

ondr3j commented Jun 23, 2016

Interesting. Which release of the 4.6 kernel are you using?

@sautingleung
Copy link
Author

My OS is Ubuntu 16.04. I downloaded the 4.6.2-040602-generic kernel and headers for amd64 from ubuntu's mainline ppa http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6.2-yakkety/. Your code would not compile on this kernel. Searching with google I found http://www.spinics.net/lists/reiserfs-devel/msg05026.html and torvalds/linux@1e98779. With this info I was able to hack ufsdvfs.c and ufsdjnl.c to get it to compile. I have attached those files for your perusal. Checkout http://lxr.free-electrons.com/ident?i=page_cache_get on the 4.6 kernel and see that page_cache_get is no longer in the 4.6 kernels. It surprises me you were able to compile your code on any 4.6 kernel.

Hope that helps. Please email again if you have any further questions.

[https://1.gravatar.com/avatar/21d8688519139de91ec825d5f83ff69f?d=https%3A%2F%2Fassets-cdn.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png&r=x&s=200]torvalds/linux@1e98779

mm/gup: Introduce get_user_pages_remote() · torvalds/linux@1e98779torvalds/linux@1e98779
github.com
For protection keys, we need to understand whether protections should be enforced in software or not. In general, we enforce protections when working on our own task, but not when on others. We ca...

Re: [PATCH] reiser4: port for linux-4.6 (Reiser Filesystem Devel)http://www.spinics.net/lists/reiserfs-devel/msg05026.html
www.spinics.net
Reiser Devel: Re: [PATCH] reiser4: port for linux-4.6

torvalds/linux@1e98779

[https://1.gravatar.com/avatar/21d8688519139de91ec825d5f83ff69f?d=https%3A%2F%2Fassets-cdn.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png&r=x&s=200]torvalds/linux@1e98779

mm/gup: Introduce get_user_pages_remote() · torvalds/linux@1e98779torvalds/linux@1e98779
github.com
For protection keys, we need to understand whether protections should be enforced in software or not. In general, we enforce protections when working on our own task, but not when on others. We ca...


From: Ondrej Patrovic notifications@github.com
Sent: 24 June 2016 08:28
To: ondr3j/paragon-ufsd
Cc: sautingleung; Author
Subject: Re: [ondr3j/paragon-ufsd] Had trouble compiling on 4.6 kernel (#1)

Interesting. Which release of the 4.6 kernel are you using?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1#issuecomment-228173442, or mute the threadhttps://github.com/notifications/unsubscribe/ATK0_i3F41di410JMh1QB8mESRYaYmU6ks5qOuxXgaJpZM4I8WuM.

@nirvam
Copy link

nirvam commented Jun 24, 2016

Same issue here. Was installing your AUR package paragon-ufsd-dkms-git on Arch Linux for 4.6.2-1-ARCH and 4.5.7-1-ck. Module compiling for 4.5.7-1-ck succeeded while 4.6.2-1-ARCH failed. DKMS make.log attached.
make.log.zip

@ondr3j
Copy link
Owner

ondr3j commented Jun 25, 2016

Applied changes in 2ff11e5. Thanks guys. I will be closing this issue, all should be well now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants