From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34B53125AF; Wed, 6 Sep 2023 22:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694039110; x=1725575110; h=date:from:to:cc:subject:message-id:mime-version; bh=CmXryx634wZP08eFToMJDCeQYd4QcOqBm1Z7tFNrDfo=; b=Xos/quwKTvK/loWvc1WoV4zC9OlmhqdjTpq40BIvDOaCrUnSvGle7bUf 6D8Kl+FZjjUIT5MvxsUiv2E3p+14RIRACkhlrTTKaML/Q6uqGwiTiX+Zh PWx9jiUwFzR+2g+ywe3+/IXU8XF9ZlEzsDXWtg4QrmnQeDNDSe3IiXsMm NbWu1wZLCPAqqADwxoluA3tbY/t1EiMWnVMgNCk7sdNuDdL0UAAdkcZCD me043M3M5RctmJo1Y6ic7BDj0XFx16LFymhRVIoZdQAjIxDWVK7cCX4aW p35t9nzfreq18Sj/kMvfJIa2sLqvLfxrubRfBX591It6Z7S/rxoI3VC5f w==; X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="441185994" X-IronPort-AV: E=Sophos;i="6.02,233,1688454000"; d="scan'208";a="441185994" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 15:25:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="718443691" X-IronPort-AV: E=Sophos;i="6.02,233,1688454000"; d="scan'208";a="718443691" Received: from lkp-server01.sh.intel.com (HELO 59b3c6e06877) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 06 Sep 2023 15:25:06 -0700 Received: from kbuild by 59b3c6e06877 with local (Exim 4.96) (envelope-from ) id 1qe0xM-0000dn-2B; Wed, 06 Sep 2023 22:25:04 +0000 Date: Thu, 7 Sep 2023 06:24:28 +0800 From: kernel test robot To: Nick Alcock Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Kris Van Hees , Tomas Jedlicka , Eugene Loh , David Mc Lean , Vincent Lim Subject: [oracle-dtrace:v2/6.5 10/13] drivers/virt/acrn/irqfd.c:146:32: error: incompatible function pointer types passing 'void (struct file *, wait_queue_head_t *, poll_table *)' (aka 'void (struct file *, struct wait_queue_head *, struct poll_table_struct *)') to parameter of type 'poll_qu... Message-ID: <202309070606.cYhMhndO-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/oracle/dtrace-linux-kernel v2/6.5 head: 1120d1c598d4ae2d08278969b9001a866aa8273a commit: 051cfd2102807119e31bdd4947d18388b3df5fd3 [10/13] waitfd: new syscall implementing waitpid() over fds config: x86_64-randconfig-013-20230907 (https://download.01.org/0day-ci/archive/20230907/202309070606.cYhMhndO-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230907/202309070606.cYhMhndO-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202309070606.cYhMhndO-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/virt/acrn/irqfd.c:146:32: error: incompatible function pointer types passing 'void (struct file *, wait_queue_head_t *, poll_table *)' (aka 'void (struct file *, struct wait_queue_head *, struct poll_table_struct *)') to parameter of type 'poll_queue_proc' (aka 'void (*)(struct file *, struct wait_queue_head *, struct poll_table_struct *, unsigned long)') [-Wincompatible-function-pointer-types] init_poll_funcptr(&irqfd->pt, hsm_irqfd_poll_func); ^~~~~~~~~~~~~~~~~~~ include/linux/poll.h:82:70: note: passing argument to parameter 'qproc' here static inline void init_poll_funcptr(poll_table *pt, poll_queue_proc qproc) ^ 1 error generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for VMLINUX_MAP Depends on [n]: EXPERT [=n] Selected by [y]: - KALLMODSYMS [=y] && KALLSYMS [=y] vim +146 drivers/virt/acrn/irqfd.c aa3b483ff1d71c Shuo Liu 2021-02-07 104 aa3b483ff1d71c Shuo Liu 2021-02-07 105 /* aa3b483ff1d71c Shuo Liu 2021-02-07 106 * Assign an eventfd to a VM and create a HSM irqfd associated with the aa3b483ff1d71c Shuo Liu 2021-02-07 107 * eventfd. The properties of the HSM irqfd are built from a &struct aa3b483ff1d71c Shuo Liu 2021-02-07 108 * acrn_irqfd. aa3b483ff1d71c Shuo Liu 2021-02-07 109 */ aa3b483ff1d71c Shuo Liu 2021-02-07 110 static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args) aa3b483ff1d71c Shuo Liu 2021-02-07 111 { aa3b483ff1d71c Shuo Liu 2021-02-07 112 struct eventfd_ctx *eventfd = NULL; aa3b483ff1d71c Shuo Liu 2021-02-07 113 struct hsm_irqfd *irqfd, *tmp; dcf9625f2adf33 Yejune Deng 2021-02-21 114 __poll_t events; aa3b483ff1d71c Shuo Liu 2021-02-07 115 struct fd f; aa3b483ff1d71c Shuo Liu 2021-02-07 116 int ret = 0; aa3b483ff1d71c Shuo Liu 2021-02-07 117 aa3b483ff1d71c Shuo Liu 2021-02-07 118 irqfd = kzalloc(sizeof(*irqfd), GFP_KERNEL); aa3b483ff1d71c Shuo Liu 2021-02-07 119 if (!irqfd) aa3b483ff1d71c Shuo Liu 2021-02-07 120 return -ENOMEM; aa3b483ff1d71c Shuo Liu 2021-02-07 121 aa3b483ff1d71c Shuo Liu 2021-02-07 122 irqfd->vm = vm; aa3b483ff1d71c Shuo Liu 2021-02-07 123 memcpy(&irqfd->msi, &args->msi, sizeof(args->msi)); aa3b483ff1d71c Shuo Liu 2021-02-07 124 INIT_LIST_HEAD(&irqfd->list); aa3b483ff1d71c Shuo Liu 2021-02-07 125 INIT_WORK(&irqfd->shutdown, hsm_irqfd_shutdown_work); aa3b483ff1d71c Shuo Liu 2021-02-07 126 aa3b483ff1d71c Shuo Liu 2021-02-07 127 f = fdget(args->fd); aa3b483ff1d71c Shuo Liu 2021-02-07 128 if (!f.file) { aa3b483ff1d71c Shuo Liu 2021-02-07 129 ret = -EBADF; aa3b483ff1d71c Shuo Liu 2021-02-07 130 goto out; aa3b483ff1d71c Shuo Liu 2021-02-07 131 } aa3b483ff1d71c Shuo Liu 2021-02-07 132 aa3b483ff1d71c Shuo Liu 2021-02-07 133 eventfd = eventfd_ctx_fileget(f.file); aa3b483ff1d71c Shuo Liu 2021-02-07 134 if (IS_ERR(eventfd)) { aa3b483ff1d71c Shuo Liu 2021-02-07 135 ret = PTR_ERR(eventfd); aa3b483ff1d71c Shuo Liu 2021-02-07 136 goto fail; aa3b483ff1d71c Shuo Liu 2021-02-07 137 } aa3b483ff1d71c Shuo Liu 2021-02-07 138 aa3b483ff1d71c Shuo Liu 2021-02-07 139 irqfd->eventfd = eventfd; aa3b483ff1d71c Shuo Liu 2021-02-07 140 aa3b483ff1d71c Shuo Liu 2021-02-07 141 /* aa3b483ff1d71c Shuo Liu 2021-02-07 142 * Install custom wake-up handling to be notified whenever underlying aa3b483ff1d71c Shuo Liu 2021-02-07 143 * eventfd is signaled. aa3b483ff1d71c Shuo Liu 2021-02-07 144 */ aa3b483ff1d71c Shuo Liu 2021-02-07 145 init_waitqueue_func_entry(&irqfd->wait, hsm_irqfd_wakeup); aa3b483ff1d71c Shuo Liu 2021-02-07 @146 init_poll_funcptr(&irqfd->pt, hsm_irqfd_poll_func); aa3b483ff1d71c Shuo Liu 2021-02-07 147 aa3b483ff1d71c Shuo Liu 2021-02-07 148 mutex_lock(&vm->irqfds_lock); aa3b483ff1d71c Shuo Liu 2021-02-07 149 list_for_each_entry(tmp, &vm->irqfds, list) { aa3b483ff1d71c Shuo Liu 2021-02-07 150 if (irqfd->eventfd != tmp->eventfd) aa3b483ff1d71c Shuo Liu 2021-02-07 151 continue; aa3b483ff1d71c Shuo Liu 2021-02-07 152 ret = -EBUSY; aa3b483ff1d71c Shuo Liu 2021-02-07 153 mutex_unlock(&vm->irqfds_lock); aa3b483ff1d71c Shuo Liu 2021-02-07 154 goto fail; aa3b483ff1d71c Shuo Liu 2021-02-07 155 } aa3b483ff1d71c Shuo Liu 2021-02-07 156 list_add_tail(&irqfd->list, &vm->irqfds); aa3b483ff1d71c Shuo Liu 2021-02-07 157 mutex_unlock(&vm->irqfds_lock); aa3b483ff1d71c Shuo Liu 2021-02-07 158 aa3b483ff1d71c Shuo Liu 2021-02-07 159 /* Check the pending event in this stage */ dcf9625f2adf33 Yejune Deng 2021-02-21 160 events = vfs_poll(f.file, &irqfd->pt); aa3b483ff1d71c Shuo Liu 2021-02-07 161 a758b7c4c6f21f Yejune Deng 2021-03-10 162 if (events & EPOLLIN) aa3b483ff1d71c Shuo Liu 2021-02-07 163 acrn_irqfd_inject(irqfd); aa3b483ff1d71c Shuo Liu 2021-02-07 164 aa3b483ff1d71c Shuo Liu 2021-02-07 165 fdput(f); aa3b483ff1d71c Shuo Liu 2021-02-07 166 return 0; aa3b483ff1d71c Shuo Liu 2021-02-07 167 fail: aa3b483ff1d71c Shuo Liu 2021-02-07 168 if (eventfd && !IS_ERR(eventfd)) aa3b483ff1d71c Shuo Liu 2021-02-07 169 eventfd_ctx_put(eventfd); aa3b483ff1d71c Shuo Liu 2021-02-07 170 aa3b483ff1d71c Shuo Liu 2021-02-07 171 fdput(f); aa3b483ff1d71c Shuo Liu 2021-02-07 172 out: aa3b483ff1d71c Shuo Liu 2021-02-07 173 kfree(irqfd); aa3b483ff1d71c Shuo Liu 2021-02-07 174 return ret; aa3b483ff1d71c Shuo Liu 2021-02-07 175 } aa3b483ff1d71c Shuo Liu 2021-02-07 176 :::::: The code at line 146 was first introduced by commit :::::: aa3b483ff1d71c50b33db154048dff9a8f08ac71 virt: acrn: Introduce irqfd :::::: TO: Shuo Liu :::::: CC: Greg Kroah-Hartman -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki