[android-common:android17-6.18-kminext 2/2] arch/arm64/kvm/hyp/nvhe/pkvm.c:1887:7: warning: assignment to 'const uuid_t *' from 'int' makes pointer from integer without a cast
kernel test robot <[email protected]> Sat, 01 Aug 2026 01:14:14 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
Hi Bart=C5=82omiej, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android17-6.18-kmine= xt head: 5f0eb26cb7246c8412f464078342992f756b7b74 commit: eff36ac2fe9748dfe31b22d00b62f6eaf7323732 [2/2] ANDROID: KVM: arm64:= Add TRNG handling for protected guests config: arm64-randconfig-003-20260731 (https://download.01.org/0day-ci/arch= ive/20260801/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 10.5.0 reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archive= /20260801/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new versio= n of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/202608010034.YXjcWdUW-lkp@i= ntel.com/ All warnings (new ones prefixed by >>): In file included from arch/arm64/kvm/hyp/nvhe/pkvm.c:23: arch/arm64/kvm/hyp/include/nvhe/modules.h:40:6: warning: no previous pro= totype for 'module_handle_host_perm_fault' [-Wmissing-prototypes] 40 | bool module_handle_host_perm_fault(struct user_pt_regs *regs, u6= 4 esr, u64 addr) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:41:6: warning: no previous pro= totype for 'module_handle_host_smc' [-Wmissing-prototypes] 41 | bool module_handle_host_smc(struct user_pt_regs *regs) { return = false; } | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:6: warning: no previous pro= totype for 'module_handle_guest_smc' [-Wmissing-prototypes] 42 | bool module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, st= ruct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/pkvm.c: In function 'module_handle_guest_trng_rn= g': arch/arm64/kvm/hyp/nvhe/pkvm.c:1868:8: error: implicit declaration of fu= nction 'module_get_guest_trng_rng'; did you mean 'module_handle_guest_trng_= rng'? [-Werror=3Dimplicit-function-declaration] 1868 | ret =3D module_get_guest_trng_rng(entropy, nbits); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | module_handle_guest_trng_rng arch/arm64/kvm/hyp/nvhe/pkvm.c: In function 'module_handle_guest_trng': arch/arm64/kvm/hyp/nvhe/pkvm.c:1887:9: error: implicit declaration of fu= nction 'module_get_guest_trng_uuid'; did you mean 'module_handle_guest_trng= _rng'? [-Werror=3Dimplicit-function-declaration] 1887 | uuid =3D module_get_guest_trng_uuid(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | module_handle_guest_trng_rng >> arch/arm64/kvm/hyp/nvhe/pkvm.c:1887:7: warning: assignment to 'const uui= d_t *' from 'int' makes pointer from integer without a cast [-Wint-conversi= on] 1887 | uuid =3D module_get_guest_trng_uuid(); | ^ cc1: some warnings being treated as errors vim +1887 arch/arm64/kvm/hyp/nvhe/pkvm.c 1879=09 1880 static bool module_handle_guest_trng(struct kvm_vcpu *vcpu) 1881 { 1882 u32 fn; 1883 u64 ret =3D SMCCC_RET_NOT_SUPPORTED; 1884 const uuid_t *uuid; 1885=09 1886 fn =3D smccc_get_function(vcpu); > 1887 uuid =3D module_get_guest_trng_uuid(); 1888 if (!uuid) 1889 return false; 1890=09 1891 switch (fn) { 1892 case ARM_SMCCC_TRNG_VERSION: 1893 ret =3D ARM_SMCCC_TRNG_VER_1_0; 1894 break; 1895 case ARM_SMCCC_TRNG_FEATURES: 1896 switch (smccc_get_arg1(vcpu)) { 1897 case ARM_SMCCC_TRNG_VERSION: 1898 case ARM_SMCCC_TRNG_FEATURES: 1899 case ARM_SMCCC_TRNG_GET_UUID: 1900 case ARM_SMCCC_TRNG_RND64: 1901 ret =3D SMCCC_RET_SUCCESS; 1902 break; 1903 } 1904 break; 1905 case ARM_SMCCC_TRNG_GET_UUID: 1906 smccc_set_retval(vcpu, le32_to_cpu(((u32 *)uuid->b)[0]), 1907 le32_to_cpu(((u32 *)uuid->b)[1]), 1908 le32_to_cpu(((u32 *)uuid->b)[2]), 1909 le32_to_cpu(((u32 *)uuid->b)[3])); 1910 return true; 1911 case ARM_SMCCC_TRNG_RND64: 1912 return module_handle_guest_trng_rng(vcpu); 1913 default: 1914 return false; 1915 } 1916=09 1917 smccc_set_retval(vcpu, ret, 0, 0, 0); 1918 return true; 1919 } 1920=09 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki