* [android-common:android16-6.12 1/1] arch/arm64/kvm/hyp/nvhe/pkvm.c:1766:14: warning: assignment to 'const uuid_t *' from 'int' makes pointer from integer without a cast
@ 2026-04-10 13:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-10 13:28 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Bartłomiej,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android16-6.12
head: 91e49117396d06326d151f97f382c6d93a267bea
commit: c0fe83ef01767a3af8396356e2f82aaab869d2f8 [1/1] ANDROID: KVM: arm64: Add TRNG handling for protected guests
config: arm64-randconfig-r061-20260409 (https://download.01.org/0day-ci/archive/20260410/202604102138.ohkHitbO-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260410/202604102138.ohkHitbO-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604102138.ohkHitbO-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/arm64/kvm/hyp/nvhe/pkvm.c:19:
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:49:42: warning: 'struct pkvm_sglist_page' declared inside parameter list will not be visible outside of this definition or declaration
49 | int __pkvm_host_donate_sglist_hyp(struct pkvm_sglist_page *sglist, size_t nr_pages);
| ^~~~~~~~~~~~~~~~
In file included from arch/arm64/kvm/hyp/nvhe/pkvm.c:21:
arch/arm64/kvm/hyp/include/nvhe/modules.h:38:6: warning: no previous prototype for 'module_handle_host_perm_fault' [-Wmissing-prototypes]
38 | bool module_handle_host_perm_fault(struct user_pt_regs *regs, u64 esr, u64 addr) { return false; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/include/nvhe/modules.h:39:6: warning: no previous prototype for 'module_handle_host_smc' [-Wmissing-prototypes]
39 | bool module_handle_host_smc(struct user_pt_regs *regs) { return false; }
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/include/nvhe/modules.h:40:6: warning: no previous prototype for 'module_handle_guest_smc' [-Wmissing-prototypes]
40 | bool module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/pkvm.c: In function 'module_handle_guest_trng_rng':
arch/arm64/kvm/hyp/nvhe/pkvm.c:1747:15: error: implicit declaration of function 'module_get_guest_trng_rng'; did you mean 'module_handle_guest_trng_rng'? [-Werror=implicit-function-declaration]
1747 | ret = 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:1766:16: error: implicit declaration of function 'module_get_guest_trng_uuid'; did you mean 'module_handle_guest_trng_rng'? [-Werror=implicit-function-declaration]
1766 | uuid = module_get_guest_trng_uuid();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| module_handle_guest_trng_rng
>> arch/arm64/kvm/hyp/nvhe/pkvm.c:1766:14: warning: assignment to 'const uuid_t *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1766 | uuid = module_get_guest_trng_uuid();
| ^
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for USB_PHY
Depends on [n]: USB_SUPPORT [=n]
Selected by [y]:
- GKI_HIDDEN_USB_CONFIGS [=y]
WARNING: unmet direct dependencies detected for DIMLIB
Depends on [n]: NET [=n]
Selected by [y]:
- GKI_HIDDEN_VIRTUAL_CONFIGS [=y]
WARNING: unmet direct dependencies detected for PAGE_POOL
Depends on [n]: NET [=n]
Selected by [y]:
- GKI_HIDDEN_NET_CONFIGS [=y]
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on [n]: NET [=n] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY
Depends on [n]: NET [=n]
Selected by [y]:
- GKI_HIDDEN_NET_CONFIGS [=y]
WARNING: unmet direct dependencies detected for PHYLINK
Depends on [n]: NETDEVICES [=n]
Selected by [y]:
- GKI_HIDDEN_ETHERNET_CONFIGS [=y]
WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API
Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y]
Selected by [y]:
- GKI_HIDDEN_MEDIA_CONFIGS [=y]
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on [n]: NET [=n] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on [n]: NET [=n] && WIRELESS [=n] && (CFG80211_WEXT [=n] || WIRELESS_EXT [=y])
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
Depends on [n]: NETDEVICES [=n] && CAN_DEV [=n] && CAN_NETLINK [=n]
Selected by [y]:
- GKI_HIDDEN_MCP251XFD_CONFIGS [=y]
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on [n]: NET [=n] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for NET_DEVLINK
Depends on [n]: NET [=n]
Selected by [y]:
- GKI_HIDDEN_NET_CONFIGS [=y]
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on [n]: NET [=n] && WIRELESS [=n] && PROC_FS [=y] && WEXT_CORE [=y]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
vim +1766 arch/arm64/kvm/hyp/nvhe/pkvm.c
1732
1733 static bool module_handle_guest_trng_rng(struct kvm_vcpu *vcpu)
1734 {
1735 u64 ret;
1736 u64 entropy[DIV_ROUND_UP(ARM_SMCCC_TRNG_SMC64_BITS, 64)];
1737 u64 nbits;
1738
1739 nbits = smccc_get_arg1(vcpu);
1740 if (nbits == 0 || nbits > ARM_SMCCC_TRNG_SMC64_BITS) {
1741 ret = ARM_SMCCC_TRNG_INVALID_PARAMETERS;
1742 goto err;
1743 }
1744
1745 memset(entropy, 0, sizeof(entropy));
1746
> 1747 ret = module_get_guest_trng_rng(entropy, nbits);
1748 if (ret == SMCCC_RET_SUCCESS) {
1749 smccc_set_retval(vcpu, SMCCC_RET_SUCCESS, entropy[2],
1750 entropy[1], entropy[0]);
1751 return true;
1752 }
1753
1754 err:
1755 smccc_set_retval(vcpu, ret, 0, 0, 0);
1756 return true;
1757 }
1758
1759 static bool module_handle_guest_trng(struct kvm_vcpu *vcpu)
1760 {
1761 u32 fn;
1762 u64 ret = SMCCC_RET_NOT_SUPPORTED;
1763 const uuid_t *uuid;
1764
1765 fn = smccc_get_function(vcpu);
> 1766 uuid = module_get_guest_trng_uuid();
1767 if (!uuid)
1768 return false;
1769
1770 switch (fn) {
1771 case ARM_SMCCC_TRNG_VERSION:
1772 ret = ARM_SMCCC_TRNG_VER_1_0;
1773 break;
1774 case ARM_SMCCC_TRNG_FEATURES:
1775 switch (smccc_get_arg1(vcpu)) {
1776 case ARM_SMCCC_TRNG_VERSION:
1777 case ARM_SMCCC_TRNG_FEATURES:
1778 case ARM_SMCCC_TRNG_GET_UUID:
1779 case ARM_SMCCC_TRNG_RND64:
1780 ret = SMCCC_RET_SUCCESS;
1781 break;
1782 }
1783 break;
1784 case ARM_SMCCC_TRNG_GET_UUID:
1785 smccc_set_retval(vcpu, le32_to_cpu(((u32 *)uuid->b)[0]),
1786 le32_to_cpu(((u32 *)uuid->b)[1]),
1787 le32_to_cpu(((u32 *)uuid->b)[2]),
1788 le32_to_cpu(((u32 *)uuid->b)[3]));
1789 return true;
1790 case ARM_SMCCC_TRNG_RND64:
1791 return module_handle_guest_trng_rng(vcpu);
1792 default:
1793 return false;
1794 }
1795
1796 smccc_set_retval(vcpu, ret, 0, 0, 0);
1797 return true;
1798 }
1799
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-10 13:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 13:28 [android-common:android16-6.12 1/1] arch/arm64/kvm/hyp/nvhe/pkvm.c:1766:14: warning: assignment to 'const uuid_t *' from 'int' makes pointer from integer without a cast kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.