Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1181087imm; Fri, 28 Sep 2018 13:32:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV60llq1OS/VBillyQu3baJFuZq7wqAPeSRC296PGK0MRN7TtzcAhCAkjVVHnGBuZ5pVco7pb X-Received: by 2002:a63:101c:: with SMTP id f28-v6mr261899pgl.38.1538166721433; Fri, 28 Sep 2018 13:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538166721; cv=none; d=google.com; s=arc-20160816; b=d9hIYgL2LliwLuQMC8nXoAGMoYP+jEZG2/6NmY46DhRguo6cKq9gFcf8Yy8rd1ZBrs 7Ul58BfE1QwBmHT3sqiR28jW4G830BSbiACczeOKVpYZIk9JFocrtbRqFWadY6vWErW6 VjVgPYXqNK2X2jcbCDxMbNfa8Y1KukKTLCVbBUvSPDVF6caECze/2k9H2fd/M9uypIkr 0dI2KmZHt3wPM/SvNKWbe5UzNKKE4zBmDHCfiBquvCTHkYZ7xKn5hCfP58LwUkjPFea9 fHAaNDvCkzq6Tmc0MrZ7TvQCezMX2Hkfso/cjTDnWt2MHJHrqU8dlHYni8Y780kR/89J Wzhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=5U4xrEH/hCWaM7Sjj+h584AQGGDXXB3JTHz4BL1sR1Y=; b=FAr2LObrjJqgl99de9f56z20ifOPUien8dpGx9HMmxb6mXXAAgwFDUmwx9vO69z+Lu vUiPUWkTWK/VpLWOvf0z5cq0pioiHQH8VsQi7cuapsd1fe0120kSLT9a91jtBbMTCr/t wjt46bFxWjuZdB1KjBb5zUVCxMMXdhf1MRJpLf9qh7e430cSigM9J5feViLdkZ94rzFM yHGfCBorjzBMCT2ZTyQtstt/ntvGQb+didNNhbkWaqcK9+KxXk+omeObJxCSontNDhFl J44ofeYj1RzpLg3WLsHyhy0ybh5fw6JJes/q3Zj+9b6xEtcR7KYEoLbqROLeYkikHfaD px9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t187-v6si5775046pfd.148.2018.09.28.13.31.46; Fri, 28 Sep 2018 13:32:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727254AbeI2C45 (ORCPT + 99 others); Fri, 28 Sep 2018 22:56:57 -0400 Received: from mga12.intel.com ([192.55.52.136]:20136 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbeI2C44 (ORCPT ); Fri, 28 Sep 2018 22:56:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2018 13:31:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,316,1534834800"; d="scan'208";a="87623395" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by orsmga003.jf.intel.com with ESMTP; 28 Sep 2018 13:31:27 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler , stable@vger.kernel.org Subject: [char-misc] mei: replace POLL* with EPOLL* for write queues. Date: Fri, 28 Sep 2018 23:27:48 +0300 Message-Id: <20180928202748.11235-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.14.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looks like during merging the bulk POLL* -> EPOLL* replacement missed the patch 'commit af336cabe083 ("mei: limit the number of queued writes")' Fix sparse warning: drivers/misc/mei/main.c:602:13: warning: restricted __poll_t degrades to integer drivers/misc/mei/main.c:605:30: warning: invalid assignment: |= drivers/misc/mei/main.c:605:30: left side has type restricted __poll_t drivers/misc/mei/main.c:605:30: right side has type int Cc: #v4.17+ Fixes: 'commit af336cabe083 ("mei: limit the number of queued writes")' Signed-off-by: Tomas Winkler --- drivers/misc/mei/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 4d77a6ae183a..87281b3695e6 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c @@ -599,10 +599,10 @@ static __poll_t mei_poll(struct file *file, poll_table *wait) mei_cl_read_start(cl, mei_cl_mtu(cl), file); } - if (req_events & (POLLOUT | POLLWRNORM)) { + if (req_events & (EPOLLOUT | EPOLLWRNORM)) { poll_wait(file, &cl->tx_wait, wait); if (cl->tx_cb_queued < dev->tx_queue_limit) - mask |= POLLOUT | POLLWRNORM; + mask |= EPOLLOUT | EPOLLWRNORM; } out: -- 2.14.4