Received: by 2002:ac8:6216:0:b0:41c:c224:f26f with SMTP id ks22csp77412qtb; Thu, 2 Nov 2023 12:02:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCxxBkwMs1nfp7/mlJ8YdMxjoNInpWLPxZJ9oIGYwtNCt3WfxXCa66YNQWfKGkjklwRyCs X-Received: by 2002:a17:902:e5c3:b0:1cc:58f1:8646 with SMTP id u3-20020a170902e5c300b001cc58f18646mr12617237plf.50.1698951758785; Thu, 02 Nov 2023 12:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698951758; cv=none; d=google.com; s=arc-20160816; b=WxusUlLj3YplG4w5YPI6dUCI5DDJNN7xR9xh5rwTaUCfT2DYY30lejbi7f6EJM4D87 3CY5r278++Mb+bWF1ikAMp40n9NvHrAoJIwfCKHl68yyKZz3LwiwuaFC+HB6n6QOatB0 FduG5Lb6jFco2ym1EQXrT2dIjg5VtXJ+qO/rwiM0+ZJVxVOgbvZhwyIw4nZf3zWOM72e zilmAio3A/02tl+IE0nK18RWFH5viBHH+Tpr7eZwLoSomX3QmsM7Uyrl+7QqGETv0RMl zd/uO0F/shGfeOtqtSm+E0YYxwXwLrjl1W5EQVR2hREsm7G0zT0dPE4i9xXdSkKlj9kl gM7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=FvviSjKh6nG6q/6y7Fz+nbn3fiyK99HefZSTalT2fjc=; fh=Yhxi0q9oqKkwIl+WicqwuplL+zfcYHrSoycLWHkZAJE=; b=U9OdrM69LTJFQi75ZYdZSlywF/swROJ5UD8qMAsIMuUMxsv3bTcmxh80gT9+N0U1KF x0anZV3Ra4A+OjfKWl372fVBse9zwH95mIlLreW4YLoRFWkXVM8I0CAbMBTLNslM9WDA a8KI4nCLGid8Dnrl0c+MKadInhWtIbRUc/BHb4tljlQpnsO5+36e1B+RXfL/sreFY54J lC882/bxn3LMjRoEK5kdooJiTTQe5jDPJutyQ6paREmdAdLBLpB5b8fD3PAcO7PH71hG rUNmeozR7PcwLKreWL3NJfq4rmCn/NwAtTQ/cTHV4RRRudEsBsgQseGwUMmlr0mbTVvT wJdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fnbcsyTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e9-20020a170902cf4900b001cc7c079304si137513plg.97.2023.11.02.12.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 12:02:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fnbcsyTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 796EE8092EF0; Thu, 2 Nov 2023 12:00:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbjKBTAi (ORCPT + 99 others); Thu, 2 Nov 2023 15:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344104AbjKBTAf (ORCPT ); Thu, 2 Nov 2023 15:00:35 -0400 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 496ED186 for ; Thu, 2 Nov 2023 12:00:32 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-5788445ac04so924576a12.2 for ; Thu, 02 Nov 2023 12:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698951632; x=1699556432; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=FvviSjKh6nG6q/6y7Fz+nbn3fiyK99HefZSTalT2fjc=; b=fnbcsyTVrTLI/LkHKniqsYvUQ1UO2BwrDOMJxRwUXMe+9DX1N7E3jk+NEzKhl6i5mo 1cr852XHxxhXJifeozl+Q4PysjNrWC4JXdscCjvcHN97qq5DS++9aNl8VNpSUBLfn3nx 6KCEcrJcamaOb6j1bQxsSD00Ndy/woOM4ySQz8fjSNDuhFhs5VB3Gl7akmTh7DENBtMk gjQBAAhqWHrkPbEOblcGTpP1lJXybl+1HBLAWkm3QXSTsXCwsDsaJPNBJtkLeXsvIZb6 QIBcGlITHvZ/8M1dPEThSFp33XNmbcNBFykvF2jzbcNF5B91dSyOjY62vgEjyEA8CDRz /JPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698951632; x=1699556432; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FvviSjKh6nG6q/6y7Fz+nbn3fiyK99HefZSTalT2fjc=; b=wdzbaGjPtxeo8T36Ea9KfrLI/Jlb3TnsZ/R9ank/lwOkhu503QoiiQSOk5uOgDsa5y Jjl+ghtJR32PFwdxGO+zG0wBLEicJcScnt1ntXdhj9Co2HcZeA6BlTn3/jEoAyHT2mKc 4j35d1H6RlrRZ4/mDig6lw7+ThBrx6Qug4ePD14Fl4SD+DT82dVFmgMXjsvyYrd6ke7C 2ECQhEaXWaOywESYuChKt43+achGRZimnbJB4B7ENzemMMW5VQW6AFv4A1LwTUUxKBVo 3ekoNiun0xZRIeX00JHvcuNlp2nCpKhXg5w9WyOmfBXB4zAG4YzIeUdLAJ8lhwQo2D4q w7pQ== X-Gm-Message-State: AOJu0Yw352lRfWmUCLDXUN1ES+2mHVjFUtJt1GMUJow+Yj9lHexQqxta TyGLfdHWy/NeOqer4pOUKCNhY0l+hpCBtw== X-Received: from xllamas.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5070]) (user=cmllamas job=sendgmr) by 2002:a63:9553:0:b0:5b2:c2ad:f7ba with SMTP id t19-20020a639553000000b005b2c2adf7bamr349358pgn.2.1698951631708; Thu, 02 Nov 2023 12:00:31 -0700 (PDT) Date: Thu, 2 Nov 2023 18:59:02 +0000 In-Reply-To: <20231102185934.773885-1-cmllamas@google.com> Mime-Version: 1.0 References: <20231102185934.773885-1-cmllamas@google.com> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog Message-ID: <20231102185934.773885-2-cmllamas@google.com> Subject: [PATCH 01/21] binder: use EPOLLERR from eventpoll.h From: Carlos Llamas To: Greg Kroah-Hartman , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Eric Biggers Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 12:00:51 -0700 (PDT) Use EPOLLERR instead of POLLERR to make sure it is cast to the correct __poll_t type. This fixes the following sparse issue: drivers/android/binder.c:5030:24: warning: incorrect type in return expression (different base types) drivers/android/binder.c:5030:24: expected restricted __poll_t drivers/android/binder.c:5030:24: got int Fixes: f88982679f54 ("binder: check for binder_thread allocation failure in binder_poll()") Cc: stable@vger.kernel.org Cc: Eric Biggers Signed-off-by: Carlos Llamas --- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 92128aae2d06..71a40a4c546f 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -5030,7 +5030,7 @@ static __poll_t binder_poll(struct file *filp, thread = binder_get_thread(proc); if (!thread) - return POLLERR; + return EPOLLERR; binder_inner_proc_lock(thread->proc); thread->looper |= BINDER_LOOPER_STATE_POLL; -- 2.42.0.869.gea05f2083d-goog