<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:GulimChe;
panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:GulimChe;
panose-1:2 11 6 9 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
text-autospace:none;
word-break:break-hangul;
font-size:10.0pt;
font-family:"Malgun Gothic";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Malgun Gothic";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Malgun Gothic";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal-compose;
font-family:"Malgun Gothic";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:322053131;
mso-list-template-ids:-4281728;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=KO link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I found from <a href="https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel">https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel</a>, the correct method to build ubuntu is (for ARCH=arm64 case)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><ul style='margin-top:0cm' type=disc><li class=MsoNormal style='color:#333333;text-align:left;mso-list:l0 level1 lfo1;background:white;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:GulimChe'>LANG=C fakeroot debian/rules ARCH=arm64 clean<o:p></o:p></span></li><li class=MsoNormal style='color:#333333;text-align:left;mso-list:l0 level1 lfo1;background:white;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:GulimChe'># quicker build:<o:p></o:p></span></li><li class=MsoNormal style='color:#333333;text-align:left;mso-list:l0 level1 lfo1;background:white;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:GulimChe'>LANG=C fakeroot debian/rules ARCH=arm64 binary-headers binary-generic binary-perarch<o:p></o:p></span></li><li class=MsoNormal style='color:#333333;text-align:left;mso-list:l0 level1 lfo1;background:white;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:GulimChe'># if you need linux-tools or lowlatency kernel, run instead:<o:p></o:p></span></li><li class=MsoNormal style='color:#333333;text-align:left;mso-list:l0 level1 lfo1;background:white;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:GulimChe'>LANG=C fakeroot debian/rules ARCH=arm64 binary<o:p></o:p></span></li></ul><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But when I tried it, it went far longer but eventually it failed with error.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'>…<span lang=EN-US>.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>Creating symlink /home/ckim/prj1/QEMU/qemu_test/test_ubuntu-20.04-build/focal/ubuntu-focal/debian/build/builddkms/build/zfs/0.8.3/source -><o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US> /home/ckim/prj1/QEMU/qemu_test/test_ubuntu-20.04-build/focal/ubuntu-focal/debian/build/builddkms/source/zfs-0.8.3<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>DKMS: add completed.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>Running the pre_build script:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking for gawk... gawk<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking metadata... META file<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking build system type... x86_64-pc-linux-gnu<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking host system type... x86_64-pc-linux-gnu<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking target system type... x86_64-pc-linux-gnu<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking whether to enable maintainer-specific portions of Makefiles... no<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking whether make supports nested variables... yes<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking for a BSD-compatible install... /bin/install -c<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking whether build environment is sane... yes<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking for a thread-safe mkdir -p... /bin/mkdir -p<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> …..<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking kernel source version... 5.4.0-42-generic<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking kernel file name for module symbols... Module.symvers<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>checking whether modules can be built... no<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>configure: error: <o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US> *** Unable to build an empty module.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>Building module:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>cleaning build area...(bad exit status: 2)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>make -j28 KERNELRELEASE=5.4.0-42-generic...(bad exit status: 2)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>ERROR (dkms apport): binary package for zfs: 0.8.3 not found<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>Error! Bad return status for module build on kernel: 5.4.0-42-generic (x86_64)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>Consult /home/ckim/prj1/QEMU/qemu_test/test_ubuntu-20.04-build/focal/ubuntu-focal/debian/build/builddkms/build/zfs/0.8.3/build/make.log for more information.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>DKMS make.log for zfs-0.8.3 for kernel 5.4.0-42-generic (x86_64)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>Tue Jun 29 11:43:02 KST 2021<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>make[1]: Entering directory '<<DKMSDIR>>/build/zfs/0.8.3/build'<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>make[1]: *** No targets specified and no makefile found. Stop.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>make[1]: Leaving directory '<<DKMSDIR>>/build/zfs/0.8.3/build'<o:p></o:p></span></p><p class=MsoNormal style='margin-left:30.0pt;mso-para-margin-left:3.0gd'><span lang=EN-US>make: *** [debian/rules.d/2-binary-arch.mk:223: install-generic] Error 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>And according to the guide, I</span>’<span lang=EN-US>m supposed to see in ../ directory two linux headers .deb files and a linux-image .deb file but I see only linux-headers-5.4.0-42_5.4.0-42.46_all.deb<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Can anyone give me an advice? Any suggestion will be appreciated.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thank you!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Chan Kim<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> ckim@etri.re.kr <ckim@etri.re.kr> <br><b>Sent:</b> Tuesday, June 29, 2021 10:04 AM<br><b>To:</b> kernelnewbies@kernelnewbies.org<br><b>Subject:</b> kernel build error during ubuntu linux kernel build <o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Hello, all<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have a strange problem in building the linux kernel from ubuntu. (I want to replace the kernel in ubuntu to debug install failure on qemu virtual machine)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I downloaded ubuntu source by </span>“<span lang=EN-US>git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git</span>”<span lang=EN-US>. and because I wanted to use a specific version, I did </span>“<span lang=EN-US>git checkout Ubuntu-5.4.0-42.46</span>”<span lang=EN-US> (this version is the one used in a ubuntu installation .iso. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>And you can see related askubuntu question here : <a href="https://askubuntu.com/questions/1347390/what-ubuntu-source-version-should-i-use-to-add-some-debug-prints-for-ubuntu-bo">https://askubuntu.com/questions/1347390/what-ubuntu-source-version-should-i-use-to-add-some-debug-prints-for-ubuntu-bo</a> )<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>After git-checkout, the `git log` shows this result : <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> </span><span lang=DE>commit 98c4545e2d65ed35c31056f72c4da20f6b5ea0d0 (HEAD, tag: Ubuntu-5.4.0-42.46)<o:p></o:p></span></p><p class=MsoNormal><span lang=DE> </span><span lang=EN-US>Author: Khalid Elmously <<a href="mailto:khalid.elmously@canonical.com">khalid.elmously@canonical.com</a>><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> Date: Thu Jul 9 19:50:26 2020 -0400<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> UBUNTU: Ubuntu-5.4.0-42.46<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> Signed-off-by: Khalid Elmously <<a href="mailto:khalid.elmously@canonical.com">khalid.elmously@canonical.com</a>><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>To build the kernel, I did `ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- make defconfig` and `ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- make -j24 Image`. But this gives me a compile error below. What can be wrong? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> . <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> . <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC mm/interval_tree.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC drivers/base/regmap/regcache.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC kernel/time/posix-cpu-timers.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC mm/list_lru.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC block/blk-mq.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> AS arch/arm64/lib/memchr.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC fs/ext4/migrate.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c: In function 'security_add_hooks':<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c:477:25: error: 'struct security_hook_heads' has no member named 'socket_getpeersec_stream'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 477 | &security_hook_heads.socket_getpeersec_stream)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC kernel/time/posix-clock.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> AS arch/arm64/lib/memcmp.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c: In function 'security_setprocattr':<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CC arch/arm64/kvm/../../../virt/kvm/arm/vgic/vgic-v2.o<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c:2058:27: error: 'union security_list_options' has no member named 'socket_getpeersec_stream'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 2058 | socket_getpeersec_stream.socket_getpeersec_stream = NULL;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> In file included from ./include/linux/timer.h:5,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> from ./include/linux/workqueue.h:9,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> from ./include/linux/bpf.h:9,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> from security/security.c:13:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c:2060:25: error: 'struct security_hook_heads' has no member named 'socket_getpeersec_stream'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 2060 | &security_hook_heads.socket_getpeersec_stream,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> ./include/linux/list.h:857:12: note: in definition of macro 'hlist_entry_safe'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 857 | ({ typeof(ptr) ____ptr = (ptr); \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^~~<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c:2059:3: note: in expansion of macro 'hlist_for_each_entry'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 2059 | hlist_for_each_entry(hp,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c:2060:25: error: 'struct security_hook_heads' has no member named 'socket_getpeersec_stream'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 2060 | &security_hook_heads.socket_getpeersec_stream,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> ./include/linux/list.h:857:28: note: in definition of macro 'hlist_entry_safe'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 857 | ({ typeof(ptr) ____ptr = (ptr); \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^~~<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> security/security.c:2059:3: note: in expansion of macro 'hlist_for_each_entry'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 2059 | hlist_for_each_entry(hp,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> In file included from ./include/linux/list.h:9,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> from ./include/linux/timer.h:5,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> from ./include/linux/workqueue.h:9,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> from ./include/linux/bpf.h:9,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> from security/security.c:13:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> ./include/linux/kernel.h:993:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 993 | void *__mptr = (void *)(ptr); \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> ./include/linux/list.h:847:40: note: in expansion of macro 'container_of'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 847 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> | ^~~~~~~~~~~~<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> . <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> . <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>BTW, when I do the same with linux-5.4.21 vanila source, it compiles ok. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Can anyone give me an advice? Could this Ubuntu-5.4.0-42.46 version have a bug and maybe I need a patch?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thank you!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Chan Kim<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></div></body></html>