All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Woodhouse <dwmw@amazon.co.uk>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Thu, 14 Aug 2025 05:28:11 +0800	[thread overview]
Message-ID: <202508140537.ByBMF2YF-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-13 21:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202508140537.ByBMF2YF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dwmw@amazon.co.uk \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.