Skip to content

Conversation

@linux-riscv-bot
Copy link

PR for series 1029070 applied to workflow__riscv__fixes

Name: RISC-V: KVM: Add Zicfiss/Zicfilp support
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1029070
Version: 1

Extend the KVM ISA extension ONE_REG interface to allow KVM user
space to detect and enable zicfiss/zicfilp exts for Guest/VM,
the rules defined in the spec [1] are as follows:

Signed-off-by: Linux RISC-V bot <[email protected]>
zicfiss / zicfilp introduces a new exception to priv isa `software check
exception` with cause code = 18. Delegate this exception to VS mode because
cfi violations in VU/VS will be reported via this exception.

RISC-V KVM should ensure that even if the SBI implementation ignores
hedeleg settings and routes VS-mode software check exceptions to HS mode,
KVM still correctly forwards them to the guest. Otherwise, these exceptions
would exit to userspace and terminate the guest.

Signed-off-by: Quan Zhou <[email protected]>
Signed-off-by: Linux RISC-V bot <[email protected]>
Add support in KVM SBI FWFT extension to allow VS-mode to request
SBI_FWFT_{LANDING_PAD/SHADOW_STACK/PTE_AD_HW_UPDATING}.

Signed-off-by: Quan Zhou <[email protected]>
Signed-off-by: Linux RISC-V bot <[email protected]>
…reg-list test

The KVM RISC-V allows zicfiss/zicfilp/svadu and SBI FWFT for Guest/VM,
so add them to get-reg-list test.

Signed-off-by: Quan Zhou <[email protected]>
Signed-off-by: Linux RISC-V bot <[email protected]>
@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 95.70 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
I: config: PASS in 0:00:10.839259
I: default: FAIL in 0:01:17.376195
I: kernel: SKIP in 0:00:00.000008
I: xipkernel: SKIP in 0:00:00.000004
I: modules: FAIL in 0:00:00.076957
I: dtbs: PASS in 0:00:01.633245
I: dtbs-legacy: SKIP in 0:00:00.004646
I: debugkernel: SKIP in 0:00:00.000004
I: headers: PASS in 0:00:01.561646
I: build output in /build/tmp.nYtTfErZJZ
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.nYtTfErZJZ/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.nYtTfErZJZ/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.nYtTfErZJZ/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
/build/tmpxw15hv8b/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
 1188 |         .dma_mask = DMA_BIT_MASK(64),   /* force 64-bit DMA addr capability */
      |                     ^~~~~~~~~~~~~~~~
/build/tmpxw15hv8b/include/linux/dma-mapping.h:93:54: note: expanded from macro 'DMA_BIT_MASK'
   93 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
      |                                                      ^ ~~~
1 warning generated.
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
  560 |         if (riscv_isa_extension_available(isa, ZICFILP))
      |             ^
/build/tmpxw15hv8b/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:145:1: note: expanded from here
  145 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmpxw15hv8b/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
  561 |                 cfg->henvcfg |= ENVCFG_LPE;
      |                                 ^
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
  563 |         if (riscv_isa_extension_available(isa, ZICFISS))
      |             ^
/build/tmpxw15hv8b/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:146:1: note: expanded from here
  146 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmpxw15hv8b/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
  564 |                 cfg->henvcfg |= ENVCFG_SSE;
      |                                 ^
4 errors generated.
make[5]: *** [/build/tmpxw15hv8b/scripts/Makefile.build:287: arch/riscv/kvm/vcpu.o] Error 1
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
   75 |         KVM_ISA_EXT_ARR(ZICFILP),
      |         ^
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:5:1: note: expanded from here
    5 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmpxw15hv8b/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
   76 |         KVM_ISA_EXT_ARR(ZICFISS),
      |         ^
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:7:1: note: expanded from here
    7 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmpxw15hv8b/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
2 errors generated.
make[5]: *** [/build/tmpxw15hv8b/scripts/Makefile.build:287: arch/riscv/kvm/vcpu_onereg.o] Error 1
make[5]: Target 'arch/riscv/kvm/' not remade because of errors.
make[4]: *** [/build/tmpxw15hv8b/scripts/Makefile.build:556: arch/riscv/kvm] Error 2
make[4]: Target 'arch/riscv/' not remade because of errors.
make[3]: *** [/build/tmpxw15hv8b/scripts/Makefile.build:556: arch/riscv] Error 2
make[3]: Target './' not remade because of errors.
make[2]: *** [/build/tmpxw15hv8b/Makefile:2010: .] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmpxw15hv8b/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.nYtTfErZJZ/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.nYtTfErZJZ/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.nYtTfErZJZ/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.nYtTfErZJZ/build/modinstall/lib/modules/6.18.0-rc5-00042-gace9b83b503a/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.nYtTfErZJZ/build/modinstall/lib/modules/6.18.0-rc5-00042-gace9b83b503a/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.nYtTfErZJZ/build/modinstall/lib/modules/6.18.0-rc5-00042-gace9b83b503a/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmpxw15hv8b/Makefile:1916: modules_install] Error 2
make[1]: *** [/build/tmpxw15hv8b/Makefile:248: __sub-make] Error 2
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.nYtTfErZJZ/build INSTALL_DTBS_PATH=/build/tmp.nYtTfErZJZ/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.nYtTfErZJZ/build/dtbsinstall
mkdir -p /build/tmp.nYtTfErZJZ/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.nYtTfErZJZ/build INSTALL_DTBS_PATH=/build/tmp.nYtTfErZJZ/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.nYtTfErZJZ/build/dtbs.tar -C /build/tmp.nYtTfErZJZ/build/dtbsinstall dtbs
rm -rf /build/tmp.nYtTfErZJZ/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.nYtTfErZJZ/build INSTALL_HDR_PATH=/build/tmp.nYtTfErZJZ/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.nYtTfErZJZ/build/headers.tar -C /build/tmp.nYtTfErZJZ/build/install_hdr .
warnings/errors:
/build/tmpxw15hv8b/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?


@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 775.48 seconds
Result: ERROR
Output:

Redirect to /build/tmp.6RN58e8gUD and /build/tmp.c6FqzT2AYb
Tree base:
ea271e63c9cc5 ("Adding CI files")
Building the whole tree with the patch
error:
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?



real	12m48.488s
user	506m14.512s
sys	83m45.431s

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1004.13 seconds
Result: ERROR
Output:

Redirect to /build/tmp.ktxz4xwMDP and /build/tmp.eAZMyceuKL
Tree base:
ea271e63c9cc5 ("Adding CI files")
Building the whole tree with the patch
error:
/build/tmpxw15hv8b/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFILP' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:561:33: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmpxw15hv8b/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFISS' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu.c:564:33: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFILP' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmpxw15hv8b/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFISS' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICSR'?



real	16m37.223s
user	657m31.369s
sys	102m16.050s

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 24.85 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.45 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.39 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 79.16 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
kdoc
Desc: Detects for kdoc errors
Duration: 0.98 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[1/4] RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 1.16 seconds
Result: ERROR
Output:

Commit ace9b83b503a ("RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM")
	author Signed-off-by missing
	author email:    [email protected]
	committer email: [email protected]
	Signed-off-by: Linux RISC-V bot <[email protected]>

Errors in tree with Signed-off-by, please fix!


@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 94.05 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
I: config: PASS in 0:00:10.478602
I: default: FAIL in 0:01:16.595764
I: kernel: SKIP in 0:00:00.000008
I: xipkernel: SKIP in 0:00:00.000005
I: modules: FAIL in 0:00:00.093066
I: dtbs: PASS in 0:00:01.468770
I: dtbs-legacy: SKIP in 0:00:00.004733
I: debugkernel: SKIP in 0:00:00.000005
I: headers: PASS in 0:00:01.672741
I: build output in /build/tmp.FMFMop0arN
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.FMFMop0arN/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.FMFMop0arN/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.FMFMop0arN/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
  560 |         if (riscv_isa_extension_available(isa, ZICFILP))
      |             ^
/build/tmp545kwmrq/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:146:1: note: expanded from here
  146 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmp545kwmrq/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
  561 |                 cfg->henvcfg |= ENVCFG_LPE;
      |                                 ^
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
  563 |         if (riscv_isa_extension_available(isa, ZICFISS))
      |             ^
/build/tmp545kwmrq/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:147:1: note: expanded from here
  147 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmp545kwmrq/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
  564 |                 cfg->henvcfg |= ENVCFG_SSE;
      |                                 ^
4 errors generated.
make[5]: *** [/build/tmp545kwmrq/scripts/Makefile.build:287: arch/riscv/kvm/vcpu.o] Error 1
/build/tmp545kwmrq/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
 1188 |         .dma_mask = DMA_BIT_MASK(64),   /* force 64-bit DMA addr capability */
      |                     ^~~~~~~~~~~~~~~~
/build/tmp545kwmrq/include/linux/dma-mapping.h:93:54: note: expanded from macro 'DMA_BIT_MASK'
   93 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
      |                                                      ^ ~~~
1 warning generated.
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
   75 |         KVM_ISA_EXT_ARR(ZICFILP),
      |         ^
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:5:1: note: expanded from here
    5 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmp545kwmrq/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
   76 |         KVM_ISA_EXT_ARR(ZICFISS),
      |         ^
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:7:1: note: expanded from here
    7 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmp545kwmrq/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
2 errors generated.
make[5]: *** [/build/tmp545kwmrq/scripts/Makefile.build:287: arch/riscv/kvm/vcpu_onereg.o] Error 1
make[5]: Target 'arch/riscv/kvm/' not remade because of errors.
make[4]: *** [/build/tmp545kwmrq/scripts/Makefile.build:556: arch/riscv/kvm] Error 2
make[4]: Target 'arch/riscv/' not remade because of errors.
make[3]: *** [/build/tmp545kwmrq/scripts/Makefile.build:556: arch/riscv] Error 2
make[3]: Target './' not remade because of errors.
make[2]: *** [/build/tmp545kwmrq/Makefile:2010: .] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmp545kwmrq/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.FMFMop0arN/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.FMFMop0arN/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.FMFMop0arN/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.FMFMop0arN/build/modinstall/lib/modules/6.18.0-rc5-00043-g1d376ca28e19/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.FMFMop0arN/build/modinstall/lib/modules/6.18.0-rc5-00043-g1d376ca28e19/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.FMFMop0arN/build/modinstall/lib/modules/6.18.0-rc5-00043-g1d376ca28e19/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmp545kwmrq/Makefile:1916: modules_install] Error 2
make[1]: *** [/build/tmp545kwmrq/Makefile:248: __sub-make] Error 2
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.FMFMop0arN/build INSTALL_DTBS_PATH=/build/tmp.FMFMop0arN/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.FMFMop0arN/build/dtbsinstall
mkdir -p /build/tmp.FMFMop0arN/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.FMFMop0arN/build INSTALL_DTBS_PATH=/build/tmp.FMFMop0arN/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.FMFMop0arN/build/dtbs.tar -C /build/tmp.FMFMop0arN/build/dtbsinstall dtbs
rm -rf /build/tmp.FMFMop0arN/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.FMFMop0arN/build INSTALL_HDR_PATH=/build/tmp.FMFMop0arN/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.FMFMop0arN/build/headers.tar -C /build/tmp.FMFMop0arN/build/install_hdr .
warnings/errors:
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp545kwmrq/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?


@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 774.19 seconds
Result: ERROR
Output:

Redirect to /build/tmp.z9BUNIQKFV and /build/tmp.4rE7bWoLk3
Tree base:
ace9b83b503a2 ("RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM")
Building the whole tree with the patch
error:
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?



real	12m47.280s
user	505m54.298s
sys	83m44.898s

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1005.96 seconds
Result: ERROR
Output:

Redirect to /build/tmp.dMQgg1IwdB and /build/tmp.ankCcF4eSS
Tree base:
ace9b83b503a2 ("RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM")
Building the whole tree with the patch
error:
/build/tmp545kwmrq/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFILP' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:561:33: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmp545kwmrq/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFISS' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu.c:564:33: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFILP' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmp545kwmrq/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFISS' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICSR'?



real	16m38.200s
user	657m52.915s
sys	102m18.658s

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 24.28 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.18 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 78.77 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
kdoc
Desc: Detects for kdoc errors
Duration: 1.01 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 2: "[2/4] RISC-V: KVM: Add support for software check exception"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 94.49 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.dLkXHcdj9r/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.dLkXHcdj9r/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.dLkXHcdj9r/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
  560 |         if (riscv_isa_extension_available(isa, ZICFILP))
      |             ^
/build/tmpfhjnbpv5/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:146:1: note: expanded from here
  146 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmpfhjnbpv5/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
  561 |                 cfg->henvcfg |= ENVCFG_LPE;
      |                                 ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
  563 |         if (riscv_isa_extension_available(isa, ZICFISS))
      |             ^
/build/tmpfhjnbpv5/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:147:1: note: expanded from here
  147 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmpfhjnbpv5/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
  564 |                 cfg->henvcfg |= ENVCFG_SSE;
      |                                 ^
4 errors generated.
make[5]: *** [/build/tmpfhjnbpv5/scripts/Makefile.build:287: arch/riscv/kvm/vcpu.o] Error 1
/build/tmpfhjnbpv5/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
 1188 |         .dma_mask = DMA_BIT_MASK(64),   /* force 64-bit DMA addr capability */
      |                     ^~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/dma-mapping.h:93:54: note: expanded from macro 'DMA_BIT_MASK'
   93 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
      |                                                      ^ ~~~
1 warning generated.
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
   75 |         KVM_ISA_EXT_ARR(ZICFILP),
      |         ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:5:1: note: expanded from here
    5 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmpfhjnbpv5/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
   76 |         KVM_ISA_EXT_ARR(ZICFISS),
      |         ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:7:1: note: expanded from here
    7 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmpfhjnbpv5/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
2 errors generated.
make[5]: *** [/build/tmpfhjnbpv5/scripts/Makefile.build:287: arch/riscv/kvm/vcpu_onereg.o] Error 1
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:345:16: error: use of undeclared identifier 'kvm_sbi_fwft_landing_pad_supported'
  345 |                 .supported = kvm_sbi_fwft_landing_pad_supported,
      |                              ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:346:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_landing_pad'
  346 |                 .reset = kvm_sbi_fwft_reset_landing_pad,
      |                          ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:347:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_landing_pad'
  347 |                 .set = kvm_sbi_fwft_set_landing_pad,
      |                        ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:348:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_landing_pad'
  348 |                 .get = kvm_sbi_fwft_get_landing_pad,
      |                        ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:354:16: error: use of undeclared identifier 'kvm_sbi_fwft_shadow_stack_supported'
  354 |                 .supported = kvm_sbi_fwft_shadow_stack_supported,
      |                              ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:355:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_shadow_stack'
  355 |                 .reset = kvm_sbi_fwft_reset_shadow_stack,
      |                          ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:356:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_shadow_stack'
  356 |                 .set = kvm_sbi_fwft_set_shadow_stack,
      |                        ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:357:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_shadow_stack'
  357 |                 .get = kvm_sbi_fwft_get_shadow_stack,
      |                        ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:363:16: error: use of undeclared identifier 'kvm_sbi_fwft_pte_ad_hw_updating_supported'
  363 |                 .supported = kvm_sbi_fwft_pte_ad_hw_updating_supported,
      |                              ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:364:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_pte_ad_hw_updating'
  364 |                 .reset = kvm_sbi_fwft_reset_pte_ad_hw_updating,
      |                          ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:365:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_pte_ad_hw_updating'
  365 |                 .set = kvm_sbi_fwft_set_pte_ad_hw_updating,
      |                        ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:366:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_pte_ad_hw_updating'
  366 |                 .get = kvm_sbi_fwft_get_pte_ad_hw_updating,
      |                        ^
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:375:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  375 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:390:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  390 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  484 |         fwft->configs = kcalloc(ARRAY_SIZE(features), sizeof(struct kvm_sbi_fwft_config),
      |                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |                                 GFP_KERNEL);
      |                                 ~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^
/build/tmpfhjnbpv5/include/linux/slab.h:1044:48: note: expanded from macro 'kcalloc'
 1044 | #define kcalloc(n, size, flags)         kmalloc_array(n, size, (flags) | __GFP_ZERO)
      |                                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/slab.h:1005:63: note: expanded from macro 'kmalloc_array'
 1005 | #define kmalloc_array(...)                      alloc_hooks(kmalloc_array_noprof(__VA_ARGS__))
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/alloc_tag.h:265:31: note: expanded from macro 'alloc_hooks'
  265 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/alloc_tag.h:251:9: note: expanded from macro 'alloc_hooks_tag'
  251 |         typeof(_do_alloc) _res;                                         \
      |                ^~~~~~~~~
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  484 |         fwft->configs = kcalloc(ARRAY_SIZE(features), sizeof(struct kvm_sbi_fwft_config),
      |                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |                                 GFP_KERNEL);
      |                                 ~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^
/build/tmpfhjnbpv5/include/linux/slab.h:1044:48: note: expanded from macro 'kcalloc'
 1044 | #define kcalloc(n, size, flags)         kmalloc_array(n, size, (flags) | __GFP_ZERO)
      |                                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/slab.h:1005:63: note: expanded from macro 'kmalloc_array'
 1005 | #define kmalloc_array(...)                      alloc_hooks(kmalloc_array_noprof(__VA_ARGS__))
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/alloc_tag.h:265:31: note: expanded from macro 'alloc_hooks'
  265 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/alloc_tag.h:255:10: note: expanded from macro 'alloc_hooks_tag'
  255 |                 _res = _do_alloc;                                       \
      |                        ^~~~~~~~~
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  484 |         fwft->configs = kcalloc(ARRAY_SIZE(features), sizeof(struct kvm_sbi_fwft_config),
      |                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |                                 GFP_KERNEL);
      |                                 ~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^
/build/tmpfhjnbpv5/include/linux/slab.h:1044:48: note: expanded from macro 'kcalloc'
 1044 | #define kcalloc(n, size, flags)         kmalloc_array(n, size, (flags) | __GFP_ZERO)
      |                                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/slab.h:1005:63: note: expanded from macro 'kmalloc_array'
 1005 | #define kmalloc_array(...)                      alloc_hooks(kmalloc_array_noprof(__VA_ARGS__))
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/alloc_tag.h:265:31: note: expanded from macro 'alloc_hooks'
  265 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/alloc_tag.h:258:10: note: expanded from macro 'alloc_hooks_tag'
  258 |                 _res = _do_alloc;                                       \
      |                        ^~~~~~~~~
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:489:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  489 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:517:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  517 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmpfhjnbpv5/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
19 errors generated.
make[5]: *** [/build/tmpfhjnbpv5/scripts/Makefile.build:287: arch/riscv/kvm/vcpu_sbi_fwft.o] Error 1
make[5]: Target 'arch/riscv/kvm/' not remade because of errors.
make[4]: *** [/build/tmpfhjnbpv5/scripts/Makefile.build:556: arch/riscv/kvm] Error 2
make[4]: Target 'arch/riscv/' not remade because of errors.
make[3]: *** [/build/tmpfhjnbpv5/scripts/Makefile.build:556: arch/riscv] Error 2
make[3]: Target './' not remade because of errors.
make[2]: *** [/build/tmpfhjnbpv5/Makefile:2010: .] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmpfhjnbpv5/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.dLkXHcdj9r/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.dLkXHcdj9r/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.dLkXHcdj9r/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.dLkXHcdj9r/build/modinstall/lib/modules/6.18.0-rc5-00044-ge528ed70eb9d/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.dLkXHcdj9r/build/modinstall/lib/modules/6.18.0-rc5-00044-ge528ed70eb9d/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.dLkXHcdj9r/build/modinstall/lib/modules/6.18.0-rc5-00044-ge528ed70eb9d/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmpfhjnbpv5/Makefile:1916: modules_install] Error 2
make[1]: *** [/build/tmpfhjnbpv5/Makefile:248: __sub-make] Error 2
I: config: PASS in 0:00:10.589289
I: default: FAIL in 0:01:16.733242
I: kernel: SKIP in 0:00:00.000008
I: xipkernel: SKIP in 0:00:00.000005
I: modules: FAIL in 0:00:00.098669
I: dtbs: PASS in 0:00:01.577186
I: dtbs-legacy: SKIP in 0:00:00.005038
I: debugkernel: SKIP in 0:00:00.000004
I: headers: PASS in 0:00:01.581761
I: build output in /build/tmp.dLkXHcdj9r
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.dLkXHcdj9r/build INSTALL_DTBS_PATH=/build/tmp.dLkXHcdj9r/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.dLkXHcdj9r/build/dtbsinstall
mkdir -p /build/tmp.dLkXHcdj9r/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.dLkXHcdj9r/build INSTALL_DTBS_PATH=/build/tmp.dLkXHcdj9r/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.dLkXHcdj9r/build/dtbs.tar -C /build/tmp.dLkXHcdj9r/build/dtbsinstall dtbs
rm -rf /build/tmp.dLkXHcdj9r/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.dLkXHcdj9r/build INSTALL_HDR_PATH=/build/tmp.dLkXHcdj9r/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.dLkXHcdj9r/build/headers.tar -C /build/tmp.dLkXHcdj9r/build/install_hdr .
warnings/errors:
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpfhjnbpv5/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:345:16: error: use of undeclared identifier 'kvm_sbi_fwft_landing_pad_supported'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:346:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_landing_pad'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:347:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_landing_pad'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:348:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_landing_pad'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:354:16: error: use of undeclared identifier 'kvm_sbi_fwft_shadow_stack_supported'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:355:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_shadow_stack'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:356:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_shadow_stack'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:357:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_shadow_stack'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:363:16: error: use of undeclared identifier 'kvm_sbi_fwft_pte_ad_hw_updating_supported'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:364:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_pte_ad_hw_updating'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:365:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_pte_ad_hw_updating'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:366:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_pte_ad_hw_updating'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:375:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:390:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:489:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:517:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'


@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 776.13 seconds
Result: ERROR
Output:

Redirect to /build/tmp.yY9U8z5ArE and /build/tmp.1rvKGjiNiJ
Tree base:
1d376ca28e192 ("RISC-V: KVM: Add support for software check exception")
Building the whole tree with the patch
error:
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:238:9: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:243:29: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:250:74: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:259:27: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:259:42: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:265:9: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:270:29: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:277:74: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:286:27: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:286:42: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:345:16: error: use of undeclared identifier 'kvm_sbi_fwft_landing_pad_supported'; did you mean 'kvm_sbi_fwft_pointer_landing_pad_supported'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:354:16: error: use of undeclared identifier 'kvm_sbi_fwft_shadow_stack_supported'; did you mean 'kvm_sbi_fwft_pointer_shadow_stack_supported'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:363:16: error: use of undeclared identifier 'kvm_sbi_fwft_pte_ad_hw_updating_supported'; did you mean 'kvm_sbi_fwft_pointer_pte_ad_hw_updating_supported'?



real	12m48.924s
user	506m53.885s
sys	83m43.956s

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1006.54 seconds
Result: ERROR
Output:

Redirect to /build/tmp.az94mI3Wu7 and /build/tmp.yLCqJOX8uu
Tree base:
1d376ca28e192 ("RISC-V: KVM: Add support for software check exception")
Building the whole tree with the patch
error:
/build/tmpfhjnbpv5/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFILP' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:561:33: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmpfhjnbpv5/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFISS' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu.c:564:33: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFILP' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFISS' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmpfhjnbpv5/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFILP' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:243:36: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:250:81: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:259:34: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmpfhjnbpv5/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFISS' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:270:36: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:277:81: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:286:34: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:345:30: error: 'kvm_sbi_fwft_landing_pad_supported' undeclared here (not in a function); did you mean 'kvm_sbi_fwft_pointer_landing_pad_supported'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:354:30: error: 'kvm_sbi_fwft_shadow_stack_supported' undeclared here (not in a function); did you mean 'kvm_sbi_fwft_pointer_shadow_stack_supported'?
/build/tmpfhjnbpv5/arch/riscv/kvm/vcpu_sbi_fwft.c:363:30: error: 'kvm_sbi_fwft_pte_ad_hw_updating_supported' undeclared here (not in a function); did you mean 'kvm_sbi_fwft_pointer_pte_ad_hw_updating_supported'?



real	16m39.550s
user	659m9.677s
sys	102m22.310s

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 24.69 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.41 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 2.13 seconds
Result: WARNING
Output:

CHECK: Alignment should match open parenthesis
#40: FILE: arch/riscv/kvm/vcpu_sbi_fwft.c:217:
+static long kvm_sbi_fwft_set_henvcfg_flag(struct kvm_vcpu *vcpu,
+					 struct kvm_sbi_fwft_config *conf,

CHECK: Alignment should match open parenthesis
#70: FILE: arch/riscv/kvm/vcpu_sbi_fwft.c:247:
+static long kvm_sbi_fwft_set_landing_pad(struct kvm_vcpu *vcpu,
+						   struct kvm_sbi_fwft_config *conf,

CHECK: Alignment should match open parenthesis
#77: FILE: arch/riscv/kvm/vcpu_sbi_fwft.c:254:
+static long kvm_sbi_fwft_get_landing_pad(struct kvm_vcpu *vcpu,
+						   struct kvm_sbi_fwft_config *conf,

CHECK: Alignment should match open parenthesis
#97: FILE: arch/riscv/kvm/vcpu_sbi_fwft.c:274:
+static long kvm_sbi_fwft_set_shadow_stack(struct kvm_vcpu *vcpu,
+						   struct kvm_sbi_fwft_config *conf,

CHECK: Alignment should match open parenthesis
#104: FILE: arch/riscv/kvm/vcpu_sbi_fwft.c:281:
+static long kvm_sbi_fwft_get_shadow_stack(struct kvm_vcpu *vcpu,
+						   struct kvm_sbi_fwft_config *conf,

CHECK: Alignment should match open parenthesis
#125: FILE: arch/riscv/kvm/vcpu_sbi_fwft.c:302:
+static long kvm_sbi_fwft_set_pte_ad_hw_updating(struct kvm_vcpu *vcpu,
+						   struct kvm_sbi_fwft_config *conf,

CHECK: Alignment should match open parenthesis
#132: FILE: arch/riscv/kvm/vcpu_sbi_fwft.c:309:
+static long kvm_sbi_fwft_get_pte_ad_hw_updating(struct kvm_vcpu *vcpu,
+						   struct kvm_sbi_fwft_config *conf,

total: 0 errors, 0 warnings, 7 checks, 150 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit e528ed70eb9d ("RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 7 checks, 150 lines checked
CHECK: Alignment should match open parenthesis


@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 78.96 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
kdoc
Desc: Detects for kdoc errors
Duration: 1.02 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 3: "[3/4] RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 95.13 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.jgKZIyLb0y/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.jgKZIyLb0y/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.jgKZIyLb0y/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
  560 |         if (riscv_isa_extension_available(isa, ZICFILP))
      |             ^
/build/tmp6mjxd7n3/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:146:1: note: expanded from here
  146 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmp6mjxd7n3/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
  561 |                 cfg->henvcfg |= ENVCFG_LPE;
      |                                 ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
  563 |         if (riscv_isa_extension_available(isa, ZICFISS))
      |             ^
/build/tmp6mjxd7n3/arch/riscv/include/asm/cpufeature-macros.h:16:46: note: expanded from macro 'riscv_isa_extension_available'
   16 |         __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
      |                                                     ^
<scratch space>:147:1: note: expanded from here
  147 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmp6mjxd7n3/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
  564 |                 cfg->henvcfg |= ENVCFG_SSE;
      |                                 ^
4 errors generated.
make[5]: *** [/build/tmp6mjxd7n3/scripts/Makefile.build:287: arch/riscv/kvm/vcpu.o] Error 1
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
   75 |         KVM_ISA_EXT_ARR(ZICFILP),
      |         ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:5:1: note: expanded from here
    5 | RISCV_ISA_EXT_ZICFILP
      | ^
/build/tmp6mjxd7n3/arch/riscv/include/uapi/asm/kvm.h:193:2: note: 'KVM_RISCV_ISA_EXT_ZICFILP' declared here
  193 |         KVM_RISCV_ISA_EXT_ZICFILP,
      |         ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
   76 |         KVM_ISA_EXT_ARR(ZICFISS),
      |         ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:24:29: note: expanded from macro 'KVM_ISA_EXT_ARR'
   24 | [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext
      |                             ^
<scratch space>:7:1: note: expanded from here
    7 | RISCV_ISA_EXT_ZICFISS
      | ^
/build/tmp6mjxd7n3/arch/riscv/include/uapi/asm/kvm.h:194:2: note: 'KVM_RISCV_ISA_EXT_ZICFISS' declared here
  194 |         KVM_RISCV_ISA_EXT_ZICFISS,
      |         ^
2 errors generated.
make[5]: *** [/build/tmp6mjxd7n3/scripts/Makefile.build:287: arch/riscv/kvm/vcpu_onereg.o] Error 1
/build/tmp6mjxd7n3/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
 1188 |         .dma_mask = DMA_BIT_MASK(64),   /* force 64-bit DMA addr capability */
      |                     ^~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/dma-mapping.h:93:54: note: expanded from macro 'DMA_BIT_MASK'
   93 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
      |                                                      ^ ~~~
1 warning generated.
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:345:16: error: use of undeclared identifier 'kvm_sbi_fwft_landing_pad_supported'
  345 |                 .supported = kvm_sbi_fwft_landing_pad_supported,
      |                              ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:346:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_landing_pad'
  346 |                 .reset = kvm_sbi_fwft_reset_landing_pad,
      |                          ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:347:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_landing_pad'
  347 |                 .set = kvm_sbi_fwft_set_landing_pad,
      |                        ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:348:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_landing_pad'
  348 |                 .get = kvm_sbi_fwft_get_landing_pad,
      |                        ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:354:16: error: use of undeclared identifier 'kvm_sbi_fwft_shadow_stack_supported'
  354 |                 .supported = kvm_sbi_fwft_shadow_stack_supported,
      |                              ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:355:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_shadow_stack'
  355 |                 .reset = kvm_sbi_fwft_reset_shadow_stack,
      |                          ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:356:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_shadow_stack'
  356 |                 .set = kvm_sbi_fwft_set_shadow_stack,
      |                        ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:357:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_shadow_stack'
  357 |                 .get = kvm_sbi_fwft_get_shadow_stack,
      |                        ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:363:16: error: use of undeclared identifier 'kvm_sbi_fwft_pte_ad_hw_updating_supported'
  363 |                 .supported = kvm_sbi_fwft_pte_ad_hw_updating_supported,
      |                              ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:364:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_pte_ad_hw_updating'
  364 |                 .reset = kvm_sbi_fwft_reset_pte_ad_hw_updating,
      |                          ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:365:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_pte_ad_hw_updating'
  365 |                 .set = kvm_sbi_fwft_set_pte_ad_hw_updating,
      |                        ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:366:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_pte_ad_hw_updating'
  366 |                 .get = kvm_sbi_fwft_get_pte_ad_hw_updating,
      |                        ^
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:375:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  375 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:390:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  390 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  484 |         fwft->configs = kcalloc(ARRAY_SIZE(features), sizeof(struct kvm_sbi_fwft_config),
      |                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |                                 GFP_KERNEL);
      |                                 ~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^
/build/tmp6mjxd7n3/include/linux/slab.h:1044:48: note: expanded from macro 'kcalloc'
 1044 | #define kcalloc(n, size, flags)         kmalloc_array(n, size, (flags) | __GFP_ZERO)
      |                                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/slab.h:1005:63: note: expanded from macro 'kmalloc_array'
 1005 | #define kmalloc_array(...)                      alloc_hooks(kmalloc_array_noprof(__VA_ARGS__))
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/alloc_tag.h:265:31: note: expanded from macro 'alloc_hooks'
  265 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/alloc_tag.h:251:9: note: expanded from macro 'alloc_hooks_tag'
  251 |         typeof(_do_alloc) _res;                                         \
      |                ^~~~~~~~~
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  484 |         fwft->configs = kcalloc(ARRAY_SIZE(features), sizeof(struct kvm_sbi_fwft_config),
      |                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |                                 GFP_KERNEL);
      |                                 ~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^
/build/tmp6mjxd7n3/include/linux/slab.h:1044:48: note: expanded from macro 'kcalloc'
 1044 | #define kcalloc(n, size, flags)         kmalloc_array(n, size, (flags) | __GFP_ZERO)
      |                                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/slab.h:1005:63: note: expanded from macro 'kmalloc_array'
 1005 | #define kmalloc_array(...)                      alloc_hooks(kmalloc_array_noprof(__VA_ARGS__))
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/alloc_tag.h:265:31: note: expanded from macro 'alloc_hooks'
  265 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/alloc_tag.h:255:10: note: expanded from macro 'alloc_hooks_tag'
  255 |                 _res = _do_alloc;                                       \
      |                        ^~~~~~~~~
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  484 |         fwft->configs = kcalloc(ARRAY_SIZE(features), sizeof(struct kvm_sbi_fwft_config),
      |                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |                                 GFP_KERNEL);
      |                                 ~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^
/build/tmp6mjxd7n3/include/linux/slab.h:1044:48: note: expanded from macro 'kcalloc'
 1044 | #define kcalloc(n, size, flags)         kmalloc_array(n, size, (flags) | __GFP_ZERO)
      |                                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/slab.h:1005:63: note: expanded from macro 'kmalloc_array'
 1005 | #define kmalloc_array(...)                      alloc_hooks(kmalloc_array_noprof(__VA_ARGS__))
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/alloc_tag.h:265:31: note: expanded from macro 'alloc_hooks'
  265 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/alloc_tag.h:258:10: note: expanded from macro 'alloc_hooks_tag'
  258 |                 _res = _do_alloc;                                       \
      |                        ^~~~~~~~~
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:489:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  489 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:517:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
  517 |         for (i = 0; i < ARRAY_SIZE(features); i++) {
      |                         ^~~~~~~~~~~~~~~~~~~~
/build/tmp6mjxd7n3/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
19 errors generated.
make[5]: *** [/build/tmp6mjxd7n3/scripts/Makefile.build:287: arch/riscv/kvm/vcpu_sbi_fwft.o] Error 1
make[5]: Target 'arch/riscv/kvm/' not remade because of errors.
make[4]: *** [/build/tmp6mjxd7n3/scripts/Makefile.build:556: arch/riscv/kvm] Error 2
make[4]: Target 'arch/riscv/' not remade because of errors.
make[3]: *** [/build/tmp6mjxd7n3/scripts/Makefile.build:556: arch/riscv] Error 2
make[3]: Target './' not remade because of errors.
make[2]: *** [/build/tmp6mjxd7n3/Makefile:2010: .] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmp6mjxd7n3/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.jgKZIyLb0y/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.jgKZIyLb0y/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.jgKZIyLb0y/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.jgKZIyLb0y/build/modinstall/lib/modules/6.18.0-rc5-00045-ga4e5130d6135/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.jgKZIyLb0y/build/modinstall/lib/modules/6.18.0-rc5-00045-ga4e5130d6135/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.jgKZIyLb0y/build/modinstall/lib/modules/6.18.0-rc5-00045-ga4e5130d6135/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmp6mjxd7n3/Makefile:1916: modules_install] Error 2
make[1]: *** [/build/tmp6mjxd7n3/Makefile:248: __sub-make] Error 2
I: config: PASS in 0:00:10.588197
I: default: FAIL in 0:01:16.528060
I: kernel: SKIP in 0:00:00.000008
I: xipkernel: SKIP in 0:00:00.000004
I: modules: FAIL in 0:00:00.084100
I: dtbs: PASS in 0:00:01.663942
I: dtbs-legacy: SKIP in 0:00:00.004600
I: debugkernel: SKIP in 0:00:00.000004
I: headers: PASS in 0:00:01.691044
I: build output in /build/tmp.jgKZIyLb0y
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.jgKZIyLb0y/build INSTALL_DTBS_PATH=/build/tmp.jgKZIyLb0y/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.jgKZIyLb0y/build/dtbsinstall
mkdir -p /build/tmp.jgKZIyLb0y/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.jgKZIyLb0y/build INSTALL_DTBS_PATH=/build/tmp.jgKZIyLb0y/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.jgKZIyLb0y/build/dtbs.tar -C /build/tmp.jgKZIyLb0y/build/dtbsinstall dtbs
rm -rf /build/tmp.jgKZIyLb0y/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.jgKZIyLb0y/build INSTALL_HDR_PATH=/build/tmp.jgKZIyLb0y/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1764559788 --clamp-mtime -caf /build/tmp.jgKZIyLb0y/build/headers.tar -C /build/tmp.jgKZIyLb0y/build/install_hdr .
warnings/errors:
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmp6mjxd7n3/drivers/dma/mmp_pdma.c:1188:14: warning: shift count >= width of type [-Wshift-count-overflow]
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:345:16: error: use of undeclared identifier 'kvm_sbi_fwft_landing_pad_supported'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:346:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_landing_pad'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:347:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_landing_pad'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:348:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_landing_pad'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:354:16: error: use of undeclared identifier 'kvm_sbi_fwft_shadow_stack_supported'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:355:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_shadow_stack'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:356:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_shadow_stack'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:357:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_shadow_stack'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:363:16: error: use of undeclared identifier 'kvm_sbi_fwft_pte_ad_hw_updating_supported'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:364:12: error: use of undeclared identifier 'kvm_sbi_fwft_reset_pte_ad_hw_updating'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:365:10: error: use of undeclared identifier 'kvm_sbi_fwft_set_pte_ad_hw_updating'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:366:10: error: use of undeclared identifier 'kvm_sbi_fwft_get_pte_ad_hw_updating'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:375:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:390:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:484:26: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:489:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:517:18: error: invalid application of 'sizeof' to an incomplete type 'const struct kvm_sbi_fwft_feature[]'


@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 775.59 seconds
Result: ERROR
Output:

Redirect to /build/tmp.m8wDQzqYt5 and /build/tmp.tjR7ZQJTX2
Tree base:
e528ed70eb9d4 ("RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features")
Building the whole tree with the patch
error:
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:560:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:561:19: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:563:6: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:564:19: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:75:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:76:2: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:238:9: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFILP'; did you mean 'KVM_RISCV_ISA_EXT_ZICFILP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:243:29: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:250:74: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:259:27: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:259:42: error: use of undeclared identifier 'ENVCFG_LPE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:265:9: error: use of undeclared identifier 'RISCV_ISA_EXT_ZICFISS'; did you mean 'KVM_RISCV_ISA_EXT_ZICFISS'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:270:29: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:277:74: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:286:27: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:286:42: error: use of undeclared identifier 'ENVCFG_SSE'
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:345:16: error: use of undeclared identifier 'kvm_sbi_fwft_landing_pad_supported'; did you mean 'kvm_sbi_fwft_pointer_landing_pad_supported'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:354:16: error: use of undeclared identifier 'kvm_sbi_fwft_shadow_stack_supported'; did you mean 'kvm_sbi_fwft_pointer_shadow_stack_supported'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:363:16: error: use of undeclared identifier 'kvm_sbi_fwft_pte_ad_hw_updating_supported'; did you mean 'kvm_sbi_fwft_pointer_pte_ad_hw_updating_supported'?



real	12m48.766s
user	506m46.871s
sys	83m50.847s

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1005.00 seconds
Result: ERROR
Output:

Redirect to /build/tmp.eMNfji0Ifx and /build/tmp.R4pLn3XcOt
Tree base:
e528ed70eb9d4 ("RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features")
Building the whole tree with the patch
error:
/build/tmp6mjxd7n3/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFILP' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:561:33: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmp6mjxd7n3/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFISS' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu.c:564:33: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFILP' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_onereg.c:24:29: error: 'RISCV_ISA_EXT_ZICFISS' undeclared here (not in a function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmp6mjxd7n3/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFILP' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICBOP'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:243:36: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:250:81: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:259:34: error: 'ENVCFG_LPE' undeclared (first use in this function); did you mean 'ENVCFG_ADUE'?
/build/tmp6mjxd7n3/arch/riscv/include/asm/cpufeature-macros.h:16:53: error: 'RISCV_ISA_EXT_ZICFISS' undeclared (first use in this function); did you mean 'RISCV_ISA_EXT_ZICSR'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:270:36: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:277:81: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:286:34: error: 'ENVCFG_SSE' undeclared (first use in this function); did you mean 'ENVCFG_STCE'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:345:30: error: 'kvm_sbi_fwft_landing_pad_supported' undeclared here (not in a function); did you mean 'kvm_sbi_fwft_pointer_landing_pad_supported'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:354:30: error: 'kvm_sbi_fwft_shadow_stack_supported' undeclared here (not in a function); did you mean 'kvm_sbi_fwft_pointer_shadow_stack_supported'?
/build/tmp6mjxd7n3/arch/riscv/kvm/vcpu_sbi_fwft.c:363:30: error: 'kvm_sbi_fwft_pte_ad_hw_updating_supported' undeclared here (not in a function); did you mean 'kvm_sbi_fwft_pointer_pte_ad_hw_updating_supported'?



real	16m37.830s
user	658m13.923s
sys	102m25.333s

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.37 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.45 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.68 seconds
Result: WARNING
Output:

WARNING: line length of 105 exceeds 100 columns
#48: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:717:
+	case 12: return "KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(pte_ad_hw_updating.enable)";

WARNING: line length of 104 exceeds 100 columns
#49: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:718:
+	case 13: return "KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(pte_ad_hw_updating.flags)";

WARNING: line length of 104 exceeds 100 columns
#50: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:719:
+	case 14: return "KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(pte_ad_hw_updating.value)";

WARNING: line length of 143 exceeds 100 columns
#58: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:913:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(landing_pad.enable),

WARNING: line length of 142 exceeds 100 columns
#59: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:914:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(landing_pad.flags),

WARNING: line length of 142 exceeds 100 columns
#60: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:915:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(landing_pad.value),

WARNING: line length of 144 exceeds 100 columns
#61: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:916:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(shadow_stack.enable),

WARNING: line length of 143 exceeds 100 columns
#62: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:917:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(shadow_stack.flags),

WARNING: line length of 143 exceeds 100 columns
#63: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:918:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(shadow_stack.value),

WARNING: line length of 150 exceeds 100 columns
#64: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:919:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(pte_ad_hw_updating.enable),

WARNING: line length of 149 exceeds 100 columns
#65: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:920:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(pte_ad_hw_updating.flags),

WARNING: line length of 149 exceeds 100 columns
#66: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:921:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_STATE | KVM_REG_RISCV_SBI_FWFT | KVM_REG_RISCV_SBI_FWFT_REG(pte_ad_hw_updating.value),

total: 0 errors, 12 warnings, 0 checks, 62 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit a4e5130d6135 ("KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 12 warnings, 0 checks, 62 lines checked
WARNING: line length of 104 exceeds 100 columns
WARNING: line length of 105 exceeds 100 columns
WARNING: line length of 142 exceeds 100 columns
WARNING: line length of 143 exceeds 100 columns
WARNING: line length of 144 exceeds 100 columns
WARNING: line length of 149 exceeds 100 columns
WARNING: line length of 150 exceeds 100 columns


@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 80.03 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
kdoc
Desc: Detects for kdoc errors
Duration: 1.02 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 4: "[4/4] KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to get-reg-list test"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants