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-smartpqi.spec'], chrootPath='/var/lib/mock/dist-an8.8-kernel-5.10.134-17-build-390185-71960/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-smartpqi.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'} and shell False warning: Macro expanded in comment on line 17: %{pkg}-fromsrc.conf warning: Macro expanded in comment on line 19: %{pkg}.conf Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/kmod-smartpqi-5.10.134~17-2.1.22_040~3.an8.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-smartpqi.spec'], chrootPath='/var/lib/mock/dist-an8.8-kernel-5.10.134-17-build-390185-71960/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-smartpqi.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'} and shell False warning: Macro expanded in comment on line 17: %{pkg}-fromsrc.conf warning: Macro expanded in comment on line 19: %{pkg}.conf Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20nqLl + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kmod-smartpqi-2.1.22_040 + /usr/bin/gzip -dc /builddir/build/SOURCES/kmod-smartpqi-2.1.22_040.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd kmod-smartpqi-2.1.22_040 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Y0XtpK + umask 022 + cd /builddir/build/BUILD + cd kmod-smartpqi-2.1.22_040 + make KDIR=/usr/src/kernels/5.10.134-17.an8.x86_64/ KVER=5.10.134-17.an8.x86_64 build find: '/lib/modules/5.10.134-17.an8.x86_64': No such file or directory find: '/lib/modules/5.10.134-17.an8.x86_64/*/include/linux': No such file or directory find: '/lib/modules/5.10.134-17.an8.x86_64': No such file or directory find: '/lib/modules/5.10.134-17.an8.x86_64': No such file or directory find: '/lib/modules/5.10.134-17.an8.x86_64': No such file or directory ( \ if [ ! -d /usr/src/kernels/5.10.134-17.an8.x86_64/ ]; then \ exit 0; \ fi; \ cd src; \ make -j4 V=1 -C /usr/src/kernels/5.10.134-17.an8.x86_64/ EXTRA_CFLAGS+=-DKCLASS5D EXTRA_CFLAGS+=-DKFEATURE_NEEDS_BLK_RQ_IS_PASSTHROUGH EXTRA_CFLAGS+=-DKFEATURE_HAS_GLOBAL_SCSI_DONE EXTRA_CFLAGS+=-DKFEATURE_HAS_SCSI_CMD_PRIV M=`pwd`; \ mkdir -p 5.10.134-17.an8.x86_64; \ cp smartpqi.ko 5.10.134-17.an8.x86_64; \ ) make[1]: Entering directory '/usr/src/kernels/5.10.134-17.an8.x86_64' test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) make -f ./scripts/Makefile.build obj=/builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src \ single-build= \ need-builtin=1 need-modorder=1 gcc -Wp,-MMD,/builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.smartpqi_init.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DKCLASS5D -DKFEATURE_NEEDS_BLK_RQ_IS_PASSTHROUGH -DKFEATURE_HAS_GLOBAL_SCSI_DONE -DKFEATURE_HAS_SCSI_CMD_PRIV -DMODULE -DKBUILD_BASENAME='"smartpqi_init"' -DKBUILD_MODNAME='"smartpqi"' -c -o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_init.o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_init.c gcc -Wp,-MMD,/builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.smartpqi_sis.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DKCLASS5D -DKFEATURE_NEEDS_BLK_RQ_IS_PASSTHROUGH -DKFEATURE_HAS_GLOBAL_SCSI_DONE -DKFEATURE_HAS_SCSI_CMD_PRIV -DMODULE -DKBUILD_BASENAME='"smartpqi_sis"' -DKBUILD_MODNAME='"smartpqi"' -c -o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sis.o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sis.c gcc -Wp,-MMD,/builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.smartpqi_sas_transport.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DKCLASS5D -DKFEATURE_NEEDS_BLK_RQ_IS_PASSTHROUGH -DKFEATURE_HAS_GLOBAL_SCSI_DONE -DKFEATURE_HAS_SCSI_CMD_PRIV -DMODULE -DKBUILD_BASENAME='"smartpqi_sas_transport"' -DKBUILD_MODNAME='"smartpqi"' -c -o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sas_transport.o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sas_transport.c gcc -Wp,-MMD,/builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.smartpqi_kernel_compat.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DKCLASS5D -DKFEATURE_NEEDS_BLK_RQ_IS_PASSTHROUGH -DKFEATURE_HAS_GLOBAL_SCSI_DONE -DKFEATURE_HAS_SCSI_CMD_PRIV -DMODULE -DKBUILD_BASENAME='"smartpqi_kernel_compat"' -DKBUILD_MODNAME='"smartpqi"' -c -o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.c In file included from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.c:25: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: In function 'pqi_scsi_done': /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:618:3: error: implicit declaration of function 'scsi_done'; did you mean 'pqi_scsi_done'? [-Werror=implicit-function-declaration] scsi_done(scmd); ^~~~~~~~~ pqi_scsi_done /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: At top level: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:701:20: error: redefinition of 'blk_rq_is_passthrough' static inline bool blk_rq_is_passthrough(struct request *rq) ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/bsg-lib.h:12, from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.c:21: ./include/linux/blkdev.h:276:20: note: previous definition of 'blk_rq_is_passthrough' was here static inline bool blk_rq_is_passthrough(struct request *rq) ^~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.c:25: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: In function 'blk_rq_is_passthrough': /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:11: error: 'struct request' has no member named 'cmd_type' return rq->cmd_type != REQ_TYPE_FS; ^~ In file included from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sas_transport.c:27: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: In function 'pqi_scsi_done': /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:618:3: error: implicit declaration of function 'scsi_done'; did you mean 'pqi_scsi_done'? [-Werror=implicit-function-declaration] scsi_done(scmd); ^~~~~~~~~ pqi_scsi_done /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: At top level: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:701:20: error: redefinition of 'blk_rq_is_passthrough' static inline bool blk_rq_is_passthrough(struct request *rq) ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/bsg-lib.h:12, from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sas_transport.c:21: ./include/linux/blkdev.h:276:20: note: previous definition of 'blk_rq_is_passthrough' was here static inline bool blk_rq_is_passthrough(struct request *rq) ^~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sas_transport.c:27: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: In function 'blk_rq_is_passthrough': /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:25: error: 'REQ_TYPE_FS' undeclared (first use in this function); did you mean 'DESCTYPE_S'? return rq->cmd_type != REQ_TYPE_FS; ^~~~~~~~~~~ DESCTYPE_S /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:11: error: 'struct request' has no member named 'cmd_type' return rq->cmd_type != REQ_TYPE_FS; ^~ /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:25: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:25: error: 'REQ_TYPE_FS' undeclared (first use in this function); did you mean 'DESCTYPE_S'? return rq->cmd_type != REQ_TYPE_FS; ^~~~~~~~~~~ DESCTYPE_S /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:25: note: each undeclared identifier is reported only once for each function it appears in In file included from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_init.c:39: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: In function 'pqi_scsi_done': /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:618:3: error: implicit declaration of function 'scsi_done'; did you mean 'pqi_scsi_done'? [-Werror=implicit-function-declaration] scsi_done(scmd); ^~~~~~~~~ pqi_scsi_done /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: At top level: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:701:20: error: redefinition of 'blk_rq_is_passthrough' static inline bool blk_rq_is_passthrough(struct request *rq) ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/blk-mq.h:6, from ./include/scsi/scsi_host.h:12, from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_init.c:30: ./include/linux/blkdev.h:276:20: note: previous definition of 'blk_rq_is_passthrough' was here static inline bool blk_rq_is_passthrough(struct request *rq) ^~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_init.c:39: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h: In function 'blk_rq_is_passthrough': /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:11: error: 'struct request' has no member named 'cmd_type' return rq->cmd_type != REQ_TYPE_FS; ^~ make[2]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:25: error: 'REQ_TYPE_FS' undeclared (first use in this function); did you mean 'DESCTYPE_S'? return rq->cmd_type != REQ_TYPE_FS; ^~~~~~~~~~~ DESCTYPE_S /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:703:25: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sas_transport.o] Error 1 /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_kernel_compat.h:704:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: some warnings being treated as errors ./tools/objtool/objtool orc generate --module --no-fp --retpoline --rethunk --uaccess /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sis.o make[2]: *** [scripts/Makefile.build:286: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_init.o] Error 1 if objdump -h /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sis.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MMD,/builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.smartpqi_sis.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DKCLASS5D -DKFEATURE_NEEDS_BLK_RQ_IS_PASSTHROUGH -DKFEATURE_HAS_GLOBAL_SCSI_DONE -DKFEATURE_HAS_SCSI_CMD_PRIV -DMODULE -DKBUILD_BASENAME='"smartpqi_sis"' -DKBUILD_MODNAME='"smartpqi"' /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sis.c | scripts/genksyms/genksyms -r /dev/null > /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.tmp_smartpqi_sis.ver; ld -m elf_x86_64 -r -o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.tmp_smartpqi_sis.o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sis.o -T /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.tmp_smartpqi_sis.ver; mv -f /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.tmp_smartpqi_sis.o /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/smartpqi_sis.o; rm -f /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src/.tmp_smartpqi_sis.ver; fi make[1]: *** [Makefile:1834: /builddir/build/BUILD/kmod-smartpqi-2.1.22_040/src] Error 2 make[1]: Leaving directory '/usr/src/kernels/5.10.134-17.an8.x86_64' cp: cannot stat 'smartpqi.ko': No such file or directory make: *** [Makefile:199: build] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.Y0XtpK (%build) RPM build errors: Macro expanded in comment on line 17: %{pkg}-fromsrc.conf Macro expanded in comment on line 19: %{pkg}.conf Bad exit status from /var/tmp/rpm-tmp.Y0XtpK (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-smartpqi.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: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-smartpqi.spec'