[OpenAFS] kernel 5.0.3 openafs issues in fedora linux

Gary Gatling gsgatlin@ncsu.edu
Mon, 25 Mar 2019 17:27:35 -0400


--00000000000029692a0584f1e001
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Sorry for the trouble. I was able to find that after all. Please disregard.

On Mon, Mar 25, 2019 at 5:23 PM Gary Gatling <gsgatlin@ncsu.edu> wrote:

> I'm really sorry but I'm having trouble finding it on the web site.
>
> I made a patch for e7d8dc01cc1f0592eaecea5b87990097e9e59b88
>
> but I can't find
>
> 804fefa6b46ed75921a1560a9e6b37842eabc94a
> Linux_5.0: replaced current_kernel_time with ktime_get_coarse_real_ts64
>
> and
>
> 25829aaef319728e30fc45895e8945438e4dc719 Linux_5.0:
>  Use super_block flags instead of Mount flags when filling sb
>
> Do you have a link to those 2 patches? Sorry for the trouble.
>
> or
>
>
>
> On Mon, Mar 25, 2019 at 1:56 PM Cheyenne Wills <cwills@sinenomine.net>
> wrote:
>
>> There were three patches needed to get openafs to build on a Linux 5.0
>> kernel.  They were merged into the master openafs-stable-1_8_x branch
>> sometime mid January and are included in 1.8.3-pre1
>>
>> 25829aaef319728e30fc45895e8945438e4dc719 Linux_5.0: Use super_block
>> flags instead of Mount flags when filling sb
>>
>> e7d8dc01cc1f0592eaecea5b87990097e9e59b88 Linux_5.0: replace
>> do_gettimeofday with ktime_get_real_ts64
>>
>> 804fefa6b46ed75921a1560a9e6b37842eabc94a Linux_5.0: replaced
>> current_kernel_time with ktime_get_coarse_real_ts64
>> ------------------------------
>> *From:* openafs-info-admin@openafs.org <openafs-info-admin@openafs.org>
>> on behalf of Gary Gatling <gsgatlin@ncsu.edu>
>> *Sent:* Monday, March 25, 2019 11:21:11 AM
>> *To:* openafs-info
>> *Subject:* [OpenAFS] kernel 5.0.3 openafs issues in fedora linux
>>
>> Hello,
>>
>> I'm having trouble getting openafs to work in fedora 29 with
>> kernel 5.0.3-200.fc29.x86_64
>>
>> This is how it fails on kernel module build. Does anyone know if there i=
s
>> a patch to get around this error?
>>
>>   CC [M]
>> /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_=
64-MP/afs_callback.o
>> In file included from
>> /var/lib/dkms/openafs/1.8.2/build/src/afs/afs_osi.h:440,
>>                  from
>> /var/lib/dkms/openafs/1.8.2/build/src/rx/rx_clock.h:46,
>>                  from /var/lib/dkms/openafs/1.8.2/build/src/rx/rx.h:57,
>>                  from
>> /var/lib/dkms/openafs/1.8.2/build/src/afs/afsincludes.h:30,
>>                  from
>> /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_=
64-MP/afs_callback.c:21:
>> /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_=
64-MP/afs_callback.c:
>> In function =E2=80=98SRXAFSCB_GetCE=E2=80=99:
>> /var/lib/dkms/openafs/1.8.2/build/src/afs/LINUX/osi_machdep.h:101:8:
>> error: implicit declaration of function =E2=80=98do_gettimeofday=E2=80=
=99; did you mean
>> =E2=80=98do_settimeofday64=E2=80=99? [-Werror=3Dimplicit-function-declar=
ation]
>>         do_gettimeofday(&__afs_tv);                           \
>>         ^~~~~~~~~~~~~~~
>> /var/lib/dkms/openafs/1.8.2/build/src/afs/afs_osi.h:170:25: note: in
>> expansion of macro =E2=80=98osi_GetTime=E2=80=99
>>  #define osi_GetuTime(x) osi_GetTime(x)
>>                          ^~~~~~~~~~~
>> /var/lib/dkms/openafs/1.8.2/build/src/afs/afs_stats.h:61:3: note: in
>> expansion of macro =E2=80=98osi_GetuTime=E2=80=99
>>    osi_GetuTime(&opStartTime);
>>    ^~~~~~~~~~~~
>> /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_=
64-MP/afs_callback.c:113:5:
>> note: in expansion of macro =E2=80=98XSTATS_START_CMTIME=E2=80=99
>>      XSTATS_START_CMTIME(AFS_STATS_CM_RPCIDX_GETCE);
>>      ^~~~~~~~~~~~~~~~~~~
>> cc1: some warnings being treated as errors
>> make[4]: *** [scripts/Makefile.build:277:
>> /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_=
64-MP/afs_callback.o]
>> Error 1
>> make[3]: *** [Makefile:1557:
>> _module_/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.f=
c29.x86_64-MP]
>> Error 2
>> make[3]: Leaving directory '/usr/src/kernels/5.0.3-200.fc29.x86_64'
>> FAILURE: make exit code 2
>> make[2]: *** [Makefile.afs:280: libafs.ko] Error 1
>> make[2]: Leaving directory
>> '/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86=
_64-MP'
>> make[1]: *** [Makefile:187: linux_compdirs] Error 2
>> make[1]: Leaving directory '/var/lib/dkms/openafs/1.8.2/build/src/libafs=
'
>> make: *** [Makefile:15: all] Error 2
>> mv: cannot stat 'src/libafs/MODLOAD-*/libafs.ko': No such file or
>> directory
>>
>> It was working with a patch in the 4.20 series.
>>
>>

--00000000000029692a0584f1e001
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Sorry for the trouble. I was able to find that after all. =
Please disregard.</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas=
s=3D"gmail_attr">On Mon, Mar 25, 2019 at 5:23 PM Gary Gatling &lt;<a href=
=3D"mailto:gsgatlin@ncsu.edu">gsgatlin@ncsu.edu</a>&gt; wrote:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D=
"ltr"><div dir=3D"ltr"><div dir=3D"ltr">I&#39;m really sorry but I&#39;m ha=
ving trouble finding it on the web site.<div><br></div><div>I made a patch =
for=C2=A0e7d8dc01cc1f0592eaecea5b87990097e9e59b88</div><div><br></div><div>=
but I can&#39;t find=C2=A0</div><div><br></div><div><div>804fefa6b46ed75921=
a1560a9e6b37842eabc94a</div><div>Linux_5.0: replaced current_kernel_time wi=
th ktime_get_coarse_real_ts64</div></div><div><br></div><div>and</div><div>=
<br></div><div><div>25829aaef319728e30fc45895e8945438e4dc719 Linux_5.0:</di=
v><div>=C2=A0Use super_block flags instead of Mount flags when filling sb</=
div></div><div><br></div><div>Do you have a link to those 2 patches? Sorry =
for the trouble.</div><div><br></div><div>or</div><div><br></div><div><br><=
/div></div></div></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">On Mon, Mar 25, 2019 at 1:56 PM Cheyenne Wills &lt;<=
a href=3D"mailto:cwills@sinenomine.net" target=3D"_blank">cwills@sinenomine=
.net</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">



<div>

<div id=3D"gmail-m_722097632282735031gmail-m_407647746719003808divtagdefaul=
twrapper" style=3D"font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helv=
etica,sans-serif" dir=3D"ltr">
<p><span style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt">=
There were three patches needed to get openafs to build on a Linux 5.0 kern=
el.=C2=A0 They were merged into the master openafs-stable-1_8_x branch some=
time=C2=A0mid January and are included
 in 1.8.3-pre1</span><br>
<br>
<span><span style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12p=
t">25829aaef319728e30fc45895e8945438e4dc719=C2=A0</span><span style=3D"colo=
r:rgb(53,53,53);font-family:Calibri,Helvetica,sans-serif;font-size:12pt;whi=
te-space:pre-wrap">Linux_5.0:
 Use super_block flags instead of Mount flags when filling sb</span></span>=
<br>
</p>
<p><span><span style=3D"color:rgb(53,53,53);font-family:monospace;font-size=
:small;white-space:pre-wrap"><span><span style=3D"font-family:Calibri,Helve=
tica,sans-serif;font-size:12pt">e7d8dc01cc1f0592eaecea5b87990097e9e59b88
</span><span style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12=
pt">Linux_5.0: replace do_gettimeofday with ktime_get_real_ts64</span></spa=
n><br>
</span></span></p>
<p><span><span style=3D"color:rgb(53,53,53);font-family:monospace;font-size=
:small;white-space:pre-wrap"><span><span><span><span style=3D"font-family:C=
alibri,Helvetica,sans-serif;font-size:12pt">804fefa6b46ed75921a1560a9e6b378=
42eabc94a
</span><span style=3D"color:rgb(53,53,53);font-family:Calibri,Helvetica,san=
s-serif;font-size:12pt;white-space:pre-wrap">Linux_5.0: replaced current_ke=
rnel_time with ktime_get_coarse_real_ts64</span></span><br>
</span></span></span></span></p>
</div>
<hr style=3D"display:inline-block;width:98%">
<div id=3D"gmail-m_722097632282735031gmail-m_407647746719003808divRplyFwdMs=
g" dir=3D"ltr"><font face=3D"Calibri, sans-serif" style=3D"font-size:11pt" =
color=3D"#000000"><b>From:</b> <a href=3D"mailto:openafs-info-admin@openafs=
.org" target=3D"_blank">openafs-info-admin@openafs.org</a> &lt;<a href=3D"m=
ailto:openafs-info-admin@openafs.org" target=3D"_blank">openafs-info-admin@=
openafs.org</a>&gt; on behalf of Gary Gatling &lt;<a href=3D"mailto:gsgatli=
n@ncsu.edu" target=3D"_blank">gsgatlin@ncsu.edu</a>&gt;<br>
<b>Sent:</b> Monday, March 25, 2019 11:21:11 AM<br>
<b>To:</b> openafs-info<br>
<b>Subject:</b> [OpenAFS] kernel 5.0.3 openafs issues in fedora linux</font=
>
<div>=C2=A0</div>
</div>
<div>
<div dir=3D"ltr">
<div dir=3D"ltr">
<div>Hello,</div>
<div dir=3D"ltr"><br>
</div>
<div dir=3D"ltr">I&#39;m having trouble getting openafs to work in fedora 2=
9 with kernel=C2=A05.0.3-200.fc29.x86_64</div>
<div dir=3D"ltr"><br>
</div>
<div>This is how it fails on kernel module build. Does anyone know if there=
 is a patch to get around this error?</div>
<div><br>
</div>
<div>
<div>=C2=A0 CC [M]=C2=A0 /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLO=
AD-5.0.3-200.fc29.x86_64-MP/afs_callback.o</div>
<div>In file included from /var/lib/dkms/openafs/1.8.2/build/src/afs/afs_os=
i.h:440,</div>
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /va=
r/lib/dkms/openafs/1.8.2/build/src/rx/rx_clock.h:46,</div>
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /va=
r/lib/dkms/openafs/1.8.2/build/src/rx/rx.h:57,</div>
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /va=
r/lib/dkms/openafs/1.8.2/build/src/afs/afsincludes.h:30,</div>
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /va=
r/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP/=
afs_callback.c:21:</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x8=
6_64-MP/afs_callback.c: In function =E2=80=98SRXAFSCB_GetCE=E2=80=99:</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/afs/LINUX/osi_machdep.h:101:8: e=
rror: implicit declaration of function =E2=80=98do_gettimeofday=E2=80=99; d=
id you mean =E2=80=98do_settimeofday64=E2=80=99? [-Werror=3Dimplicit-functi=
on-declaration]</div>
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 do_gettimeofday(&amp;__afs_tv);=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0\</div>
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/afs/afs_osi.h:170:25: note: in e=
xpansion of macro =E2=80=98osi_GetTime=E2=80=99</div>
<div>=C2=A0#define osi_GetuTime(x) osi_GetTime(x)</div>
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/afs/afs_stats.h:61:3: note: in e=
xpansion of macro =E2=80=98osi_GetuTime=E2=80=99</div>
<div>=C2=A0 =C2=A0osi_GetuTime(&amp;opStartTime);</div>
<div>=C2=A0 =C2=A0^~~~~~~~~~~~</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x8=
6_64-MP/afs_callback.c:113:5: note: in expansion of macro =E2=80=98XSTATS_S=
TART_CMTIME=E2=80=99</div>
<div>=C2=A0 =C2=A0 =C2=A0XSTATS_START_CMTIME(AFS_STATS_CM_RPCIDX_GETCE);</d=
iv>
<div>=C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~~~</div>
<div>cc1: some warnings being treated as errors</div>
<div>make[4]: *** [scripts/Makefile.build:277: /var/lib/dkms/openafs/1.8.2/=
build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP/afs_callback.o] Error 1</=
div>
<div>make[3]: *** [Makefile:1557: _module_/var/lib/dkms/openafs/1.8.2/build=
/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP] Error 2</div>
<div>make[3]: Leaving directory &#39;/usr/src/kernels/5.0.3-200.fc29.x86_64=
&#39;</div>
<div>FAILURE: make exit code 2</div>
<div>make[2]: *** [Makefile.afs:280: libafs.ko] Error 1</div>
<div>make[2]: Leaving directory &#39;/var/lib/dkms/openafs/1.8.2/build/src/=
libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP&#39;</div>
<div>make[1]: *** [Makefile:187: linux_compdirs] Error 2</div>
<div>make[1]: Leaving directory &#39;/var/lib/dkms/openafs/1.8.2/build/src/=
libafs&#39;</div>
<div>make: *** [Makefile:15: all] Error 2</div>
<div>mv: cannot stat &#39;src/libafs/MODLOAD-*/libafs.ko&#39;: No such file=
 or directory</div>
</div>
<div><br>
</div>
<div>It was working with a patch in the 4.20 series.</div>
<div><br>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>
</blockquote></div>

--00000000000029692a0584f1e001--