Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thierry Reding <treding@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [thierryreding:pmc 1/26] drivers/hv/vmbus_drv.c:2638:13: error: incompatible function pointer types initializing 'int (*)(struct syscore_ops *)' with an expression of type 'int (void)'
Date: Wed, 5 Feb 2025 19:02:56 +0800	[thread overview]
Message-ID: <202502051808.kZGfNpnd-lkp@intel.com> (raw)

tree:   https://github.com/thierryreding/linux pmc
head:   a402c19b24a5dc1ba2f6fb41de0080a97c202c1b
commit: f5ff652a1c2ce0a75ce86425cbc5f499933c9018 [1/26] syscore: Pass context data to callbacks
config: i386-buildonly-randconfig-005-20250205 (https://download.01.org/0day-ci/archive/20250205/202502051808.kZGfNpnd-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250205/202502051808.kZGfNpnd-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/202502051808.kZGfNpnd-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/hv/vmbus_drv.c:2638:13: error: incompatible function pointer types initializing 'int (*)(struct syscore_ops *)' with an expression of type 'int (void)' [-Wincompatible-function-pointer-types]
    2638 |         .suspend = hv_synic_suspend,
         |                    ^~~~~~~~~~~~~~~~
>> drivers/hv/vmbus_drv.c:2639:12: error: incompatible function pointer types initializing 'void (*)(struct syscore_ops *)' with an expression of type 'void (void)' [-Wincompatible-function-pointer-types]
    2639 |         .resume = hv_synic_resume,
         |                   ^~~~~~~~~~~~~~~
   2 errors generated.
--
>> arch/x86/kernel/cpu/intel_epb.c:188:20: error: too few arguments to function call, single argument 'ops' was not specified
     188 |         intel_epb_restore();
         |         ~~~~~~~~~~~~~~~~~ ^
   arch/x86/kernel/cpu/intel_epb.c:92:13: note: 'intel_epb_restore' declared here
      92 | static void intel_epb_restore(struct syscore_ops *ops)
         |             ^                 ~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/kernel/cpu/intel_epb.c:202:17: error: too few arguments to function call, single argument 'ops' was not specified
     202 |         intel_epb_save();
         |         ~~~~~~~~~~~~~~ ^
   arch/x86/kernel/cpu/intel_epb.c:78:12: note: 'intel_epb_save' declared here
      78 | static int intel_epb_save(struct syscore_ops *ops)
         |            ^              ~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.
--
>> arch/x86/kernel/cpu/microcode/core.c:754:6: error: conflicting types for 'microcode_bsp_resume'
     754 | void microcode_bsp_resume(struct syscore_ops *ops)
         |      ^
   arch/x86/include/asm/microcode.h:19:6: note: previous declaration is here
      19 | void microcode_bsp_resume(void);
         |      ^
>> arch/x86/kernel/cpu/microcode/core.c:766:12: error: incompatible function pointer types initializing 'void (*)(struct syscore_ops *)' with an expression of type 'void (void)' [-Wincompatible-function-pointer-types]
     766 |         .resume = microcode_bsp_resume,
         |                   ^~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +2638 drivers/hv/vmbus_drv.c

63ecc6d22ce466 Dexuan Cui 2019-09-05  2635  
63ecc6d22ce466 Dexuan Cui 2019-09-05  2636  /* The callbacks run only on CPU0, with irqs_disabled. */
63ecc6d22ce466 Dexuan Cui 2019-09-05  2637  static struct syscore_ops hv_synic_syscore_ops = {
63ecc6d22ce466 Dexuan Cui 2019-09-05 @2638  	.suspend = hv_synic_suspend,
63ecc6d22ce466 Dexuan Cui 2019-09-05 @2639  	.resume = hv_synic_resume,
63ecc6d22ce466 Dexuan Cui 2019-09-05  2640  };
63ecc6d22ce466 Dexuan Cui 2019-09-05  2641  

:::::: The code at line 2638 was first introduced by commit
:::::: 63ecc6d22ce46643165c391a9c90ba67e22e1c0f Drivers: hv: vmbus: Suspend/resume the synic for hibernation

:::::: TO: Dexuan Cui <decui@microsoft.com>
:::::: CC: Sasha Levin <sashal@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-02-05 11:03 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=202502051808.kZGfNpnd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=treding@nvidia.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox