Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-lpfc.spec'], chrootPath='/var/lib/mock/dist-an23-kernel-5.10.134-17-build-389521-71967/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '731ba1c0bf9849ecb1d19c16ee356828', '-D', '/var/lib/mock/dist-an23-kernel-5.10.134-17-build-389521-71967/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-lpfc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1721347200 Wrote: /builddir/build/SRPMS/kmod-lpfc-5.10.134~17-14.2.673.37~5.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-lpfc.spec'], chrootPath='/var/lib/mock/dist-an23-kernel-5.10.134-17-build-389521-71967/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '00956c1bb04a4618889f104eb7a43921', '-D', '/var/lib/mock/dist-an23-kernel-5.10.134-17-build-389521-71967/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-lpfc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1721347200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.21ShLr + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILDROOT/kmod-lpfc-5.10.134~17-14.2.673.37~5.an23.x86_64 + cd /builddir/build/BUILD + rm -rf kmod-lpfc-14.2.673.37 + /usr/lib/rpm/rpmuncompress -x -v /builddir/build/SOURCES/kmod-lpfc-14.2.673.37.tar.gz /usr/bin/gzip -dc '/builddir/build/SOURCES/kmod-lpfc-14.2.673.37.tar.gz' | /usr/bin/tar -xvvof - drwxrwxr-x root/root 0 2024-07-22 16:37 kmod-lpfc-14.2.673.37/ -rw-rw-r-- root/root 3189 2024-07-22 16:37 kmod-lpfc-14.2.673.37/kmod-lpfc.spec drwxrwxr-x root/root 0 2024-07-22 16:37 kmod-lpfc-14.2.673.37/licenses/ -rw-rw-r-- root/root 18011 2024-07-22 16:37 kmod-lpfc-14.2.673.37/licenses/COPYING -rw-rw-r-- root/root 85 2024-07-22 16:37 kmod-lpfc-14.2.673.37/lpfc.conf -rw-rw-r-- root/root 22 2024-07-22 16:37 kmod-lpfc-14.2.673.37/lpfc_dracut.conf drwxrwxr-x root/root 0 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/ -rw-rw-r-- root/root 63292 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/ChangeLog -rw-rw-r-- root/root 2486 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/GNUmakefile -rw-rw-r-- root/root 9257 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/Makefile -rw-rw-r-- root/root 63165 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc.h -rw-rw-r-- root/root 259050 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_attr.c -rw-rw-r-- root/root 5710 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_attr.h -rw-rw-r-- root/root 66825 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_auth.c -rw-rw-r-- root/root 6491 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_auth.h -rw-rw-r-- root/root 211771 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_bsg.c -rw-rw-r-- root/root 15219 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_bsg.h -rw-rw-r-- root/root 9078 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_compat.h -rw-rw-r-- root/root 39057 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_crtn.h -rw-rw-r-- root/root 110699 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_ct.c -rw-rw-r-- root/root 198885 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_debugfs.c -rw-rw-r-- root/root 19155 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_debugfs.h -rw-rw-r-- root/root 15513 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_disc.h -rw-rw-r-- root/root 391220 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_els.c -rw-rw-r-- root/root 222422 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_hbadisc.c -rw-rw-r-- root/root 127385 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_hw.h -rw-rw-r-- root/root 197661 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_hw4.h -rw-rw-r-- root/root 1849 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_ids.h -rw-rw-r-- root/root 481875 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_init.c -rw-rw-r-- root/root 5870 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_logmsg.h -rw-rw-r-- root/root 92741 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_mbox.c -rw-rw-r-- root/root 22341 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_mem.c -rw-rw-r-- root/root 5666 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_nl.h -rw-rw-r-- root/root 95578 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_nportdisc.c -rw-rw-r-- root/root 86878 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_nvme.c -rw-rw-r-- root/root 8890 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_nvme.h -rw-rw-r-- root/root 111791 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_nvmet.c -rw-rw-r-- root/root 253733 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_scsi.c -rw-rw-r-- root/root 7452 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_scsi.h -rw-rw-r-- root/root 724282 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_sli.c -rw-rw-r-- root/root 18157 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_sli.h -rw-rw-r-- root/root 37828 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_sli4.h -rw-rw-r-- root/root 2006 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_version.h -rw-rw-r-- root/root 10482 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_vmid.c -rw-rw-r-- root/root 23288 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_vport.c -rw-rw-r-- root/root 3890 2024-07-22 16:37 kmod-lpfc-14.2.673.37/src/lpfc_vport.h + STATUS=0 + '[' 0 -ne 0 ']' + cd kmod-lpfc-14.2.673.37 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.LYSaFw + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd kmod-lpfc-14.2.673.37 + make -C /usr/src/kernels/5.10.134-17.an23.x86_64/ EXTRA_CFLAGS=-Wno-error=dangling-pointer M=/builddir/build/BUILD/kmod-lpfc-14.2.673.37/src -j32 In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nportdisc.c:43: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_hbadisc.c:46: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_sli.c:52: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c: In function 'lpfc_get_scsi_buf_s4': /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:827:6: warning: "KERNEL_MAJOR" is not defined, evaluates to 0 [-Wundef] 827 | #if (KERNEL_MAJOR > 4) || defined(BUILD_RHEL8) | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_attr.c:47: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c:62: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.c:54: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_debugfs.c:50: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nportdisc.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvmet.c:54: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.h:218:34: error: field 'ls_rsp' has incomplete type 218 | struct nvmefc_tgt_ls_req ls_rsp; | ^~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_auth.c: In function 'lpfc_auth_compute_hash': /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_auth.c:704:6: warning: "KERNEL_MAJOR" is not defined, evaluates to 0 [-Wundef] 704 | #if (KERNEL_MAJOR < 5) | ^~~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_auth.c:705:13: error: 'struct shash_desc' has no member named 'flags' 705 | desc->flags = 0; | ^~ make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvme.o] Error 1 /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:831:21: error: implicit declaration of function 'shost_use_blk_mq' [-Werror=implicit-function-declaration] 831 | if (cmnd && shost_use_blk_mq(cmnd->device->host) && | ^~~~~~~~~~~~~~~~ make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_nvmet.o] Error 1 make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_auth.o] Error 1 /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c: In function 'lpfc_create_port': /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c:4733:6: warning: "KERNEL_MAJOR" is not defined, evaluates to 0 [-Wundef] 4733 | #if (KERNEL_MAJOR < 5) | ^~~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c: In function 'lpfc_external_dif_cmpl': /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:6161:6: warning: "KERNEL_MAJOR" is not defined, evaluates to 0 [-Wundef] 6161 | #if (KERNEL_MAJOR < 3) || ((KERNEL_MAJOR == 3) && (KERNEL_MINOR < 4)) | ^~~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:6162:71: error: 'KM_IRQ0' undeclared (first use in this function) 6162 | data_inq = kmap_atomic(sg_page(sgde), KM_IRQ0) | ^~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:6162:71: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:6162:44: error: too many arguments to function 'kmap_atomic' 6162 | data_inq = kmap_atomic(sg_page(sgde), KM_IRQ0) | ^~~~~~~~~~~ In file included from ./include/linux/pagemap.h:12, from ./include/linux/blkdev.h:15, from ./include/scsi/scsi_device.h:9, from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:35: ./include/linux/highmem.h:154:21: note: declared here 154 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:6171:6: warning: "KERNEL_MAJOR" is not defined, evaluates to 0 [-Wundef] 6171 | #if (KERNEL_MAJOR < 3) || ((KERNEL_MAJOR == 3) && (KERNEL_MINOR < 4)) | ^~~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:6172:79: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 6172 | kunmap_atomic(data_inq - sgde->offset, KM_IRQ0); | ^ ./include/linux/highmem.h:216: note: macro "kunmap_atomic" defined here 216 | #define kunmap_atomic(addr) \ | /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c:4735:23: error: implicit declaration of function 'shost_use_blk_mq' [-Werror=implicit-function-declaration] 4735 | if (!(shost_use_blk_mq(shost) && phba->cfg_enable_scsi_mq)) | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.c:6172:33: error: 'kunmap_atomic' undeclared (first use in this function); did you mean 'kmap_atomic'? 6172 | kunmap_atomic(data_inq - sgde->offset, KM_IRQ0); | ^~~~~~~~~~~~~ | kmap_atomic make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_hbadisc.o] Error 1 make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_debugfs.o] Error 1 cc1: some warnings being treated as errors make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_scsi.o] Error 1 make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_attr.o] Error 1 /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c: In function 'lpfc_io_resume_s3': /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c:14726:6: warning: "KERNEL_MAJOR" is not defined, evaluates to 0 [-Wundef] 14726 | #if (KERNEL_MAJOR < 5) && !defined(BUILD_RHEL8_NZ) | ^~~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c:14729:17: error: implicit declaration of function 'pci_cleanup_aer_uncorrect_error_status' [-Werror=implicit-function-declaration] 14729 | pci_cleanup_aer_uncorrect_error_status(pdev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c: In function 'lpfc_io_resume_s4': /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.c:15616:6: warning: "KERNEL_MAJOR" is not defined, evaluates to 0 [-Wundef] 15616 | #if (KERNEL_MAJOR < 5) && !defined(BUILD_RHEL8_NZ) | ^~~~~~~~~~~~ cc1: some warnings being treated as errors make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_init.o] Error 1 make[1]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_sli.o] Error 1 In file included from ./include/linux/preempt.h:11, from ./include/linux/percpu.h:6, from ./include/linux/context_tracking_state.h:5, from ./include/linux/hardirq.h:5, from ./include/linux/interrupt.h:12, from /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_bsg.c:23: In function '__list_add', inlined from 'list_add_tail' at ./include/linux/list.h:100:2, inlined from 'diag_cmd_data_free' at /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_bsg.c:1347:2, inlined from 'diag_cmd_data_free.isra' at /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_bsg.c:1335:1: ./include/linux/list.h:70:20: warning: storing the address of local variable 'head' in '*&mlist_1(D)->dma.list.prev' [-Wdangling-pointer=] 70 | next->prev = new; | ~~~~~~~~~~~^~~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_bsg.c: In function 'diag_cmd_data_free.isra': /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_bsg.c:1339:26: note: 'head' declared here 1339 | struct list_head head, *curr, *next; | ^~~~ /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src/lpfc_bsg.c:1339:26: note: 'mlist' declared here make: *** [Makefile:1834: /builddir/build/BUILD/kmod-lpfc-14.2.673.37/src] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.LYSaFw (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.LYSaFw (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 00956c1bb04a4618889f104eb7a43921 -D /var/lib/mock/dist-an23-kernel-5.10.134-17-build-389521-71967/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-lpfc.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 00956c1bb04a4618889f104eb7a43921 -D /var/lib/mock/dist-an23-kernel-5.10.134-17-build-389521-71967/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.q99ni1__:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-lpfc.spec'