[OpenAFS-devel] Re: having trouble compiling openafs kernel module in kernel 4.5

Michael Laß lass@mail.upb.de
Fri, 03 Jun 2016 21:57:01 +0200


Hi,

Am Freitag, den 03.06.2016, 21:13 +0200 schrieb Stephan Wiesand:
> On Jun 3, 2016, at 20:31 , Gary Gatling wrote:
> > Thanks for any ideas anyone may have on how to compile openafs on 4.5
> > kernel. I know its possible since Arch Linux pulled it off.
> 
> Alas, if so, they haven't bothered submitting the magic patch to
> gerrit.openafs.org. The changes under
> https://gerrit.openafs.org/#/q/status:open+project:openafs+branch:mas
> ter+topic:linux45 are all we have. I'll take your message as a report
> that those changes are not sufficient to cope with Linux 4.5. It
> makes me very sad.

As I am maintaining the Arch Linux package: There is no magic patch,
only the aforementioned patches are applied (gerrit 12264, 12265,
12268, 12274) and the kernel module compiles and works (as far as I can
tell) with Linux 4.5.4.

The first issue in the linked compile log is the following:
> /home/gsgatlin/redhat/sources/openafs-1.6.18/src/libafs/MODLOAD-4.5.5-201.fc23.x86_64-MP/osi_vnodeops.c: In function ‘afs_linux_follow_link’:
> /home/gsgatlin/redhat/sources/openafs-1.6.18/src/libafs/MODLOAD-4.5.5-201.fc23.x86_64-MP/osi_vnodeops.c:1935:5: error: implicit declaration of function ‘nd_set_link’ [-Werror=implicit-function-declaration]
>      nd_set_link(nd, name);

This particular error occurs if 0003-Linux-4.5-get_link-instead-of-
follow_link-put_link.patch (gerrit 12265) is not applied.

Cheers,
Michael