Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6019854rwr; Mon, 24 Apr 2023 12:22:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZmCulRzP9OkTFC8XkZEDluDGYd5v5M1YTy9r10b3YW3XAoq9vArpzom3xj8Uk3MKPym1ic X-Received: by 2002:a05:6a20:42a7:b0:ee:bac2:c6e1 with SMTP id o39-20020a056a2042a700b000eebac2c6e1mr19936994pzj.23.1682364152257; Mon, 24 Apr 2023 12:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682364152; cv=none; d=google.com; s=arc-20160816; b=keRZMlHPHyBk/pGWciClkG6+ZLJ5sOwa1E25mx4Wawsgy44gUB4vwfPe2Os57JuCQC sLSj0PGCBPZqtBF88NHszVhh7tJii8Ddo0sdJ49UEy7q0FZlW1VbWkPvrw5LdKzIWR/C lkkHJY0eGY3R++E9Sm3eBvX6dw8Xeeusjp9mrUqT48OJ/SQPKwuYlHOOVKe9sPPFALpZ FiChr28cXcy0vkPBCI/ST7uICdw/BSLLPTHulF20PROhFyORLm8ckPiC3JT+QN0oCi/S o3S3yKPLQL2nx4Xlx+3LXeSdCqoUqKyGrAikxOb0UKhfNEoMKzPDC9XdLnVu6SKGfJ9J nilA== 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=TmGJFGITv61Zn28bDZJ2VMNNCwLJfoJLWd4WercF5mQ=; b=Om1FZkf8rswN7wIiy01woBnWZSJlSqfP2pG5+w+a5ji9Ifh2WVD6mOfnphvS3EOH08 LTc5lf0LJVqqNFlKG0zrQTOAz42enm3XrMp7lzmfIeM20n8WQ56ZSnDLwLWyj96d0u7i uaCGSgKPZ/p3ElDNyB4xn8AH57pkD/MK4uswLiFTTR8ivRriMnz9QaYUQMo7w/Pm/7rq vSBavceok4IkSTLkUPv/jg7xh0C4OBmoQ8AcZOmngji9qeHj37qzyTTqnMHuVczv+Yef 2NkCCZIdxlVjcpNSoF+MYrEtmThrljIb/N7S4BpbzNOBwberKVA52zPNcjQUvdf2+Vlo qByw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dJPSfhgN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a63d001000000b005023e0f160dsi11831006pgf.489.2023.04.24.12.22.20; Mon, 24 Apr 2023 12:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dJPSfhgN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232544AbjDXTMK (ORCPT + 99 others); Mon, 24 Apr 2023 15:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbjDXTMI (ORCPT ); Mon, 24 Apr 2023 15:12:08 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACB216591; Mon, 24 Apr 2023 12:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682363523; x=1713899523; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yXmB4O56FdS7HN2yEs1rka8M14EJ9vI2hHwXGarRAMA=; b=dJPSfhgNKx0lUacFOh0OZeoUVk/iXWZfaPfofkmQwa2onn08GQaow2XY qH20dzld0W0H40d4TnPb3qZ1xmsxv2potKIcIngPNFSaHeeTmUIMjpFsS JSItJb3sCOwjnfikKLn4f6t6dTFQ/ikA1PEqwnKPuoyLcvcnZk0/5x413 Le3gBho5xGHGk2DgrarwQWt53pyfz/E050b5Uea9BlRzd39hSzRpV7WDb yB2WgANvsZOSOcfFwCg2djSmGodILCX0yceSuB6AYpKmO5P9xYybKcTBg GIrf2G+pSedgSp4Cw58EobAOBPwF/Hj2CJV63uPUY8idrYlFiNlezSVBW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="345291579" X-IronPort-AV: E=Sophos;i="5.99,223,1677571200"; d="scan'208";a="345291579" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 12:12:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="939456108" X-IronPort-AV: E=Sophos;i="5.99,223,1677571200"; d="scan'208";a="939456108" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 24 Apr 2023 12:11:59 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pr1bS-000ibk-0u; Mon, 24 Apr 2023 19:11:58 +0000 Date: Tue, 25 Apr 2023 03:11:13 +0800 From: kernel test robot To: Grzegorz Jaszczyk , linux-kernel@vger.kernel.org, alex.williamson@redhat.com Cc: oe-kbuild-all@lists.linux.dev, dmy@semihalf.com, tn@semihalf.com, dbehr@google.com, dbehr@chromium.org, upstream@semihalf.com, dtor@google.com, jgg@ziepe.ca, kevin.tian@intel.com, cohuck@redhat.com, abhsahu@nvidia.com, yishaih@nvidia.com, yi.l.liu@intel.com, kvm@vger.kernel.org, libvir-list@redhat.com, Grzegorz Jaszczyk Subject: Re: [PATCH v2] vfio/pci: Propagate ACPI notifications to user-space via eventfd Message-ID: <202304250252.8MirvFb0-lkp@intel.com> References: <20230424162748.2711945-1-jaz@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230424162748.2711945-1-jaz@semihalf.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Grzegorz, kernel test robot noticed the following build warnings: [auto build test WARNING on awilliam-vfio/for-linus] [also build test WARNING on linus/master v6.3 next-20230421] [cannot apply to awilliam-vfio/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/Grzegorz-Jaszczyk/vfio-pci-Propagate-ACPI-notifications-to-user-space-via-eventfd/20230425-002935 base: https://github.com/awilliam/linux-vfio.git for-linus patch link: https://lore.kernel.org/r/20230424162748.2711945-1-jaz%40semihalf.com patch subject: [PATCH v2] vfio/pci: Propagate ACPI notifications to user-space via eventfd config: ia64-allmodconfig (https://download.01.org/0day-ci/archive/20230425/202304250252.8MirvFb0-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/62d759059cd5e6dab70052027e1b69c5d5cdc0f2 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Grzegorz-Jaszczyk/vfio-pci-Propagate-ACPI-notifications-to-user-space-via-eventfd/20230425-002935 git checkout 62d759059cd5e6dab70052027e1b69c5d5cdc0f2 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/vfio/pci/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304250252.8MirvFb0-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/vfio/pci/vfio_pci_core.c:709:6: warning: no previous prototype for 'vfio_pci_acpi_notify_close_device' [-Wmissing-prototypes] 709 | void vfio_pci_acpi_notify_close_device(struct vfio_pci_core_device *vdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/vfio/pci/vfio_pci_core.c: In function 'vfio_pci_ioctl_acpi_notify_eventfd': >> drivers/vfio/pci/vfio_pci_core.c:1029:18: warning: variable 'events' set but not used [-Wunused-but-set-variable] 1029 | __poll_t events; | ^~~~~~ vim +/vfio_pci_acpi_notify_close_device +709 drivers/vfio/pci/vfio_pci_core.c 708 > 709 void vfio_pci_acpi_notify_close_device(struct vfio_pci_core_device *vdev) 710 { 711 struct vfio_acpi_notification *acpi_notify = vdev->acpi_notification; 712 struct pci_dev *pdev = vdev->pdev; 713 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); 714 struct notification_queue *entry, *entry_tmp; 715 u64 cnt; 716 717 if (!acpi_notify || !acpi_notify->acpi_notify_trigger) 718 return; 719 720 acpi_remove_notify_handler(adev->handle, ACPI_DEVICE_NOTIFY, 721 vfio_pci_core_acpi_notify); 722 723 eventfd_ctx_remove_wait_queue(acpi_notify->acpi_notify_trigger, 724 &acpi_notify->wait, &cnt); 725 726 flush_work(&acpi_notify->acpi_notification_work); 727 728 mutex_lock(&acpi_notify->notification_list_lock); 729 list_for_each_entry_safe(entry, entry_tmp, 730 &acpi_notify->notification_list, 731 notify_val_next) { 732 list_del(&entry->notify_val_next); 733 kfree(entry); 734 } 735 mutex_unlock(&acpi_notify->notification_list_lock); 736 737 eventfd_ctx_put(acpi_notify->acpi_notify_trigger); 738 739 kfree(acpi_notify); 740 741 vdev->acpi_notification = NULL; 742 } 743 #else 744 void vfio_pci_acpi_notify_close_device(struct vfio_pci_core_device *vdev) {} 745 #endif /* CONFIG_ACPI */ 746 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests