* [dwmw2:cpuid 4/4] arch/x86/kernel/kvm.c:899:30: error: a function declaration without a prototype is deprecated in all versions of C
@ 2025-08-13 21:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-13 21:28 UTC (permalink / raw)
To: David Woodhouse; +Cc: llvm, oe-kbuild-all
tree: git://git.infradead.org/users/dwmw2/linux cpuid
head: 7a7b1aa66380243dddb2037ff113bb2265b529ff
commit: 73038303178dd4d4f847ffe024b87b4a2a0930a5 [4/4] x86/kvm: Obtain TSC frequency from CPUID if present
config: x86_64-buildonly-randconfig-002-20250814 (https://download.01.org/0day-ci/archive/20250814/202508140537.ByBMF2YF-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508140537.ByBMF2YF-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/202508140537.ByBMF2YF-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/kernel/kvm.c:899:30: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
899 | unsigned int kvm_para_tsc_khz()
| ^
| void
1 error generated.
vim +899 arch/x86/kernel/kvm.c
898
> 899 unsigned int kvm_para_tsc_khz()
900 {
901 u32 base = kvm_cpuid_base();
902
903 if (cpuid_eax(base) >= (base | KVM_CPUID_TIMING_INFO))
904 return cpuid_eax(base | KVM_CPUID_TIMING_INFO);
905
906 return 0;
907 }
908
--
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:[~2025-08-13 21:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 21:28 [dwmw2:cpuid 4/4] arch/x86/kernel/kvm.c:899:30: error: a function declaration without a prototype is deprecated in all versions of C 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.