Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1164661rdb; Sat, 18 Nov 2023 05:44:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlZsGX+frrwoAhW0YMJbibRcRvWCAVHOPw1CxD15xv0Vq09oVu14KC/EmWhx+AxDceEga8 X-Received: by 2002:a17:90b:180f:b0:274:755b:63b8 with SMTP id lw15-20020a17090b180f00b00274755b63b8mr2414365pjb.43.1700315050875; Sat, 18 Nov 2023 05:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700315050; cv=none; d=google.com; s=arc-20160816; b=lhn+zryFMUjgojdxiaqKA1kTf8O3JTdXL3xkVQInDMZdfp3VOZZ5jKhhH6wGLd5uCy 7Kmd5C8ZcvkpkhRk1aHA+YgOCMPwhlgcqrxkTkNS60wu5ddfmNck2QNC5ED3aHB0ZVuw Gkhs/tpkRQxUyjkpoD4P1Bc1JjamHqLvT1JXUWW2y/2ole48lGPtdOV93BZ92hiQ5GQu 1DJMeTRXVOjtrZzR/4gXED7cgzUNrsycAMRTRTx6FbPZbLs8KsmDq3oH51OUGD6Rw4K8 MUdx8EK162f31UUyST93bUTV8l+xQTK9IOn5hzgEvuEAqXpmOb4NriWDM2+nm4aNnSIU H96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3mpiRk0hqonbJP/EF4rra61GK0dhUE8tYR3c/qT4TLE=; fh=ivyraOhlG6QrZnB6iTr/wsOftt8NlZwd22XdEAZrTD0=; b=qG6xoLii2nIPRZFjGSAIl+FkQeZRBfuvs3pHuoJiMV+BVGCkBQ7HdgIQPrELUFDvZj neYf8QVExRdlV8bDWrx212xoAiHgV1jwypNPMA78k+qzUXf+40l0y4kt3WRcnZpbuJN6 AUMdJZV8GkqsR2vBHS5QLMp+lnW2tXGiBfS7NnDv7MjnawtWuN1c2RLb4ziMBcbL7/7c 1S8+r7pcrAfwPTZLE1PS1nvJMN6jh06BfGsKGPlQsisurJYwhMIIyzkvAkpGHaLMWEBP uyN8NXirylj1QtuhQXlisPvblvBq7U0GjkofDrOG1mq43B0L48GOcs9CB/m/rJpl/fV/ gUAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L1D97QTZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h5-20020a17090ac38500b0028515f9b7d1si297925pjt.168.2023.11.18.05.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 05:44:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L1D97QTZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 76BCB8020CC6; Sat, 18 Nov 2023 05:44:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbjKRNnw (ORCPT + 99 others); Sat, 18 Nov 2023 08:43:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbjKRNnt (ORCPT ); Sat, 18 Nov 2023 08:43:49 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D2FDA2; Sat, 18 Nov 2023 05:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700315026; x=1731851026; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7/M5S0nC2Rw3WJg/Loza0Avq02rrTZUsNGGN6T9wjHo=; b=L1D97QTZ7cK0BeuoyebKN50siKFt0LmFz9fVZYT8PUpzpuWXymlHDqgp 5opGIvHkFRKtD2AqULo0hi4PYXv11YgaS68I9XIePvi6pv+kWvp7Wv7Ak KjLBEA9AhIvmm3F995gMxWBnh38dMPaysLaVv+v8T+Ki8+JA+O43cqXuv S6bFQeWtbCiEFvxiS5st10ZWGBlN7TK/z898Dm4IeyMAkIyJsn/O3OXGc AyR8ti2O6y+7sOETgfmC5Z1QxhLN7v+JUiSazSZk0dz7TCU/J/zL25u0h CVhLwuccSeuPezb+GhvXtl87NC1LOzCsCc8izWfQi66RI4kDmZhFR5zCO w==; X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="371604281" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="371604281" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2023 05:43:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="759414040" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="759414040" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 18 Nov 2023 05:43:39 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r4Lbk-0003x2-1d; Sat, 18 Nov 2023 13:43:36 +0000 Date: Sat, 18 Nov 2023 21:43:05 +0800 From: kernel test robot To: Yi-De Wu , Yingshiuan Pan , Ze-Yu Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Catalin Marinas , Will Deacon , Matthias Brugger , AngeloGioacchino Del Regno Cc: oe-kbuild-all@lists.linux.dev, Arnd Bergmann , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, David Bradil , Trilok Soni , Jade Shih , Ivan Tseng , My Chuang , Shawn Hsiao , PeiLun Suei , Liju Chen , Willix Yeh , Kevenny Hsieh Subject: Re: [PATCH v7 09/16] virt: geniezone: Add irqfd support Message-ID: <202311182112.B1KM0yj9-lkp@intel.com> References: <20231116152756.4250-10-yi-de.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116152756.4250-10-yi-de.wu@mediatek.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 18 Nov 2023 05:44:05 -0800 (PST) Hi Yi-De, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.7-rc1 next-20231117] [cannot apply to arm64/for-next/core robh/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yi-De-Wu/docs-geniezone-Introduce-GenieZone-hypervisor/20231116-233442 base: linus/master patch link: https://lore.kernel.org/r/20231116152756.4250-10-yi-de.wu%40mediatek.com patch subject: [PATCH v7 09/16] virt: geniezone: Add irqfd support config: arm64-randconfig-r081-20231118 (https://download.01.org/0day-ci/archive/20231118/202311182112.B1KM0yj9-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231118/202311182112.B1KM0yj9-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/202311182112.B1KM0yj9-lkp@intel.com/ All error/warnings (new ones prefixed by >>): arch/arm64/geniezone/../../../drivers/virt/geniezone/gzvm_irqfd.c: In function 'gzvm_irqfd_assign': >> arch/arm64/geniezone/../../../drivers/virt/geniezone/gzvm_irqfd.c:185:19: error: implicit declaration of function 'eventfd_ctx_fileget'; did you mean 'eventfd_ctx_fdget'? [-Werror=implicit-function-declaration] 185 | eventfd = eventfd_ctx_fileget(f.file); | ^~~~~~~~~~~~~~~~~~~ | eventfd_ctx_fdget >> arch/arm64/geniezone/../../../drivers/virt/geniezone/gzvm_irqfd.c:185:17: warning: assignment to 'struct eventfd_ctx *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 185 | eventfd = eventfd_ctx_fileget(f.file); | ^ cc1: some warnings being treated as errors vim +185 arch/arm64/geniezone/../../../drivers/virt/geniezone/gzvm_irqfd.c 160 161 static int gzvm_irqfd_assign(struct gzvm *gzvm, struct gzvm_irqfd *args) 162 { 163 struct gzvm_kernel_irqfd *irqfd, *tmp; 164 struct fd f; 165 struct eventfd_ctx *eventfd = NULL; 166 int ret; 167 int idx; 168 169 irqfd = kzalloc(sizeof(*irqfd), GFP_KERNEL_ACCOUNT); 170 if (!irqfd) 171 return -ENOMEM; 172 173 irqfd->gzvm = gzvm; 174 irqfd->gsi = args->gsi; 175 176 INIT_LIST_HEAD(&irqfd->list); 177 INIT_WORK(&irqfd->shutdown, irqfd_shutdown); 178 179 f = fdget(args->fd); 180 if (!f.file) { 181 ret = -EBADF; 182 goto out; 183 } 184 > 185 eventfd = eventfd_ctx_fileget(f.file); 186 if (IS_ERR(eventfd)) { 187 ret = PTR_ERR(eventfd); 188 goto fail; 189 } 190 191 irqfd->eventfd = eventfd; 192 193 /* 194 * Install our own custom wake-up handling so we are notified via 195 * a callback whenever someone signals the underlying eventfd 196 */ 197 init_waitqueue_func_entry(&irqfd->wait, irqfd_wakeup); 198 init_poll_funcptr(&irqfd->pt, irqfd_ptable_queue_proc); 199 200 spin_lock_irq(&gzvm->irqfds.lock); 201 202 ret = 0; 203 list_for_each_entry(tmp, &gzvm->irqfds.items, list) { 204 if (irqfd->eventfd != tmp->eventfd) 205 continue; 206 /* This fd is used for another irq already. */ 207 pr_err("already used: gsi=%d fd=%d\n", args->gsi, args->fd); 208 ret = -EBUSY; 209 spin_unlock_irq(&gzvm->irqfds.lock); 210 goto fail; 211 } 212 213 idx = srcu_read_lock(&gzvm->irq_srcu); 214 215 list_add_tail(&irqfd->list, &gzvm->irqfds.items); 216 217 spin_unlock_irq(&gzvm->irqfds.lock); 218 219 vfs_poll(f.file, &irqfd->pt); 220 221 srcu_read_unlock(&gzvm->irq_srcu, idx); 222 223 /* 224 * do not drop the file until the irqfd is fully initialized, otherwise 225 * we might race against the EPOLLHUP 226 */ 227 fdput(f); 228 return 0; 229 230 fail: 231 if (eventfd && !IS_ERR(eventfd)) 232 eventfd_ctx_put(eventfd); 233 234 fdput(f); 235 236 out: 237 kfree(irqfd); 238 return ret; 239 } 240 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki