Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp328483pxu; Wed, 14 Oct 2020 02:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv3KgZdBRIM6ZBIoK3FKQFgyHo3Z9NVI8Wgw3K2im4K3iu+NRLY8OWCFRklbpdZ4QO3lTT X-Received: by 2002:a17:906:6683:: with SMTP id z3mr1838236ejo.303.1602667389915; Wed, 14 Oct 2020 02:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602667389; cv=none; d=google.com; s=arc-20160816; b=VC5XeImRZZOhbJUPly0zslYJQM+YRG7hYM3GqOBrTAvVtync6iYRWuXE58XK3dOvni 7uckqU/Pqy949WARYgfJc6bmmFnn6tY9onryaAw+GtAzLVPzKEqDHr1jtaFSywmNw9k7 IHVMqEQMAjzVYzEW6VlQdpeKfj+IHPh6xPi1P/vXtKVaNM8Ippb9KHWFAQObzbUVg7X4 dlMhoUjPaCHJwS/XV7MdzvN33ykkMWuDkl2l2wYVVWuXXVf+iLtVl6LDptcAROGM88SW 8A6saoYvBPYKTq9obHmT2gY/JzG47r7WdGBms6iMicf2X7R0SW2JI+PVryRjjMFUjhln C1LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=y4uF4ZEBK32Jc4xw6gI6FEIourHHlYCRqz8nki0gYyI=; b=tGblrfSS5b+QiPSUOLmIIXOoq09dvLNXGghGtPglszt+8WnPNToYbgjQSHDrB352lB YzApqmmUtc+A9VG7OFFhr+3rPslhOfhJYmLlapycbtMZkRYcOXYIUHWMqnR/3+W+zGPQ 7Fz6HbmIMyFAWN67FfXq7OVcf7jY18HyJB+ngZuMQq1Nno538osFgZhPHqv5zicdOAof uNaGox51H+h2OZ0AI6aEN/229/hxdBGx+sPVlYTwTaXkLVKQ18Jg2WUyPMyX/aCxv4cA FXsJSzoxxxnQ/Suu2ST88P/m84cIbq3J88pDOUyRAWnkGTOsc4IKP2TLxjb9XRakPDgy HVnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=qOkMFX5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id md27si1752091ejb.714.2020.10.14.02.22.47; Wed, 14 Oct 2020 02:23:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=qOkMFX5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728315AbgJNJFf (ORCPT + 99 others); Wed, 14 Oct 2020 05:05:35 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:65507 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbgJNJFe (ORCPT ); Wed, 14 Oct 2020 05:05:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1602666335; x=1634202335; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=y4uF4ZEBK32Jc4xw6gI6FEIourHHlYCRqz8nki0gYyI=; b=qOkMFX5sufrRtwI98Q7oKihHHXk37ODwvS3A6bG83oyN/IH2ycib0lcC Q2oxQIV+Cy0C5pQbEnXqWfgUwEYH0txiSN45eecLiplhhORP/4moc1i+u /CRwTHoO9JFt68ueghICBuh2Ugl5sx94+Wr3LvJHmflQd9DIDH7LUsGgj I=; X-IronPort-AV: E=Sophos;i="5.77,374,1596499200"; d="scan'208";a="83212214" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 14 Oct 2020 09:05:21 +0000 Received: from EX13D16EUB003.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com (Postfix) with ESMTPS id 10167A2236; Wed, 14 Oct 2020 09:05:16 +0000 (UTC) Received: from 38f9d34ed3b1.ant.amazon.com (10.43.161.71) by EX13D16EUB003.ant.amazon.com (10.43.166.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 14 Oct 2020 09:05:06 +0000 From: Andra Paraschiv To: linux-kernel CC: Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , "David Duncan" , Bjoern Doebel , "David Woodhouse" , Frank van der Linden , Alexander Graf , Greg Kroah-Hartman , Karen Noel , Martin Pohlack , Matt Wilson , Paolo Bonzini , Stefano Garzarella , "Stefan Hajnoczi" , Stewart Smith , "Uwe Dannowski" , Vitaly Kuznetsov , kvm , ne-devel-upstream , Andra Paraschiv Subject: [PATCH v1] nitro_enclaves: Fixup type of the poll result assigned value Date: Wed, 14 Oct 2020 12:05:00 +0300 Message-ID: <20201014090500.75678-1-andraprs@amazon.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 X-Originating-IP: [10.43.161.71] X-ClientProxiedBy: EX13D43UWC001.ant.amazon.com (10.43.162.69) To EX13D16EUB003.ant.amazon.com (10.43.166.99) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the assigned value of the poll result to be EPOLLHUP instead of POLLHUP to match the __poll_t type. Signed-off-by: Andra Paraschiv Reported-by: kernel test robot --- drivers/virt/nitro_enclaves/ne_misc_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/nitro_enclaves/ne_misc_dev.c b/drivers/virt/nitro_enclaves/ne_misc_dev.c index f06622b48d69..9148566455e8 100644 --- a/drivers/virt/nitro_enclaves/ne_misc_dev.c +++ b/drivers/virt/nitro_enclaves/ne_misc_dev.c @@ -1508,7 +1508,7 @@ static __poll_t ne_enclave_poll(struct file *file, poll_table *wait) if (!ne_enclave->has_event) return mask; - mask = POLLHUP; + mask = EPOLLHUP; return mask; } -- 2.20.1 (Apple Git-117) Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.