KastnerRG / riffa

The RIFFA development repository
https://riffa.ucsd.edu
Other
766 stars 313 forks source link

Fix driver compilation under linux >= 4.6 #12

Closed marzoul closed 8 years ago

marzoul commented 8 years ago

The Linux API for functions get_user_pages() and page_cache_release() has changed since Linux 4.6. The proposed fix adds preprocessor conditions to enable the right function call.

More information (and inspiration) from: https://patchwork.kernel.org/patch/8441921/ https://devtalk.nvidia.com/default/topic/926824/linux/364-1-2-5-won-t-compile-against-latest-kernel-git-tree-patches-for-4-6-0-rc3-included-/2

The proposed fix was tested successfully under a Dell Precision T3500 workstation running ArchLinux x64 with kernel Linux 4.6.4.

drichmond commented 8 years ago

Awesome! I'll test it too.

Can you retarget your pull request into the RIFFA 2.2.2 development branch?

marzoul commented 8 years ago

Indeed. Done!

marzoul commented 8 years ago

... or maybe you wanted a pull request on the devel/2.2.2 branch?

drichmond commented 8 years ago

To deve/RIFFA/2.2.2 branch, if you could.

Dustin

On Aug 10, 2016, at 5:40 AM, marzoul notifications@github.com wrote:

... or maybe you wanted a pull request on the devel/2.2.2 branch?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/drichmond/riffa/pull/12#issuecomment-238854122, or mute the thread https://github.com/notifications/unsubscribe-auth/AGFUdFsDAL4qgPGqko-eQ73UVVh-Yh21ks5qecaygaJpZM4JgM_A.