* [android-common:android16-6.12 1/1] drivers/misc/pkvm-smc/pkvm/pkvm-smc.c:85:6: warning: no previous prototype for 'filter_smc'
@ 2026-09-20 21:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-20 21:22 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android16-6.12
head: fb15c16e04b24c94825fe17e483d325c4ac239a8
commit: 20d9754be1965db7c4cdc06d647e0984e635432d [1/1] ANDROID: misc: pkvm_smc: Add an allow list for SMCs
config: arm64-randconfig-r1301-20260919 (https://download.01.org/0day-ci/archive/20260921/202609210516.eHWkdOH7-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260921/202609210516.eHWkdOH7-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/202609210516.eHWkdOH7-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/misc/pkvm-smc/pkvm/pkvm-smc.c:85:6: warning: no previous prototype for 'filter_smc' [-Wmissing-prototypes]
bool filter_smc(struct user_pt_regs *regs)
^~~~~~~~~~
drivers/misc/pkvm-smc/pkvm/pkvm-smc.c:108:5: warning: no previous prototype for 'pkvm_smc_filter_hyp_init' [-Wmissing-prototypes]
int pkvm_smc_filter_hyp_init(const struct pkvm_module_ops *ops)
^~~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_MIPI_DSI
Depends on [n]: HAS_IOMEM [=y] && DRM [=n]
Selected by [y]:
- GKI_HIDDEN_DRM_CONFIGS [=y] && 64BIT [=y]
WARNING: unmet direct dependencies detected for SND_JACK
Depends on [n]: SOUND [=n] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y] && 64BIT [=y]
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on [n]: SOUND [=n] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y] && 64BIT [=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] && 64BIT [=y]
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
Depends on [n]: SOUND [=n] && SND [=n] && SND_JACK [=y]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y] && 64BIT [=y]
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on [n]: SOUND [=n] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y] && 64BIT [=y]
vim +/filter_smc +85 drivers/misc/pkvm-smc/pkvm/pkvm-smc.c
80
81 /*
82 * Block all by default.
83 * return false will allow the SMC to be forwarded.
84 */
> 85 bool filter_smc(struct user_pt_regs *regs)
86 {
87 u64 smc_id = regs->regs[0];
88 /*
89 * Ignore bits that doesn't change the functionality:
90 * Bit[30]: 32/64 bit convention
91 * Bit[16]: SVE hint
92 */
93 u64 mask = ~(ARM_SMCCC_1_3_SVE_HINT | BIT(ARM_SMCCC_CALL_CONV_SHIFT));
94 struct pkvm_smc_filter pval = {smc_id & mask, NULL};
95 struct pkvm_smc_filter *entry;
96
97 /* alternatively, we can do 2 level binary search or switch case by service. */
98 entry = (struct pkvm_smc_filter *)__inline_bsearch((void *)&pval, allow_list,
99 ARRAY_SIZE(allow_list),
100 sizeof(allow_list[0]),
101 match_smc);
102 if (!entry)
103 return deny_smc(regs);
104
105 return entry->cb ? entry->cb(regs) : false;
106 }
107
--
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-09-20 21:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-20 21:22 [android-common:android16-6.12 1/1] drivers/misc/pkvm-smc/pkvm/pkvm-smc.c:85:6: warning: no previous prototype for 'filter_smc' 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.