Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3030497ybc; Thu, 21 Nov 2019 02:12:32 -0800 (PST) X-Google-Smtp-Source: APXvYqz1rBLp+rnFIQvLhhAv9vIcPg7sZbUhfyVui+HgckGlaz1xF3HOk0PPhiL4+tQhzh/SC7t2 X-Received: by 2002:a17:906:3484:: with SMTP id g4mr12767729ejb.293.1574331152059; Thu, 21 Nov 2019 02:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574331152; cv=none; d=google.com; s=arc-20160816; b=QBd6P5l8sXXAwogmDmKBoXyHmHWTN6XpS/+k5Y4VyHTxG6bwyj4+XcOF0PuXYcjkDh QEUyBG3iKYCWY8vxSHNSlzyI/2iR7e80l1XH6Lw5eCIiW5883BpN6o2xmanRWxxPaKvs lWC1mvzfSIgEPIRInGB/RVl1vjKlzdwpSsoZMkiwkYqM1xclLPiV5gRzLOAMugy8KHHF 9t0O978QDH4H8tsL8YK6U6GbaWczwKZ3TWeImdFKDrHIlV0WIvWEua0BVJLzT94FZLIu NqPG1VH6OBJDAcvq3pBi2uqTxRnt/rT2c0RUQRUCyvck2kO6RlPVZ8Ka3pa7L9RZhitE DHlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=R4hjhKPyQPWEsWK0HmI2zX8e76pSPH6drX+KAe0V84E=; b=xZLnlDxHpL0ACSh2pT3J8pUAtPJ7sCT1nSNq8n03ueC7c+ntV5LKGySt9dcCo5zgdR fLmKCfS5ePLNDSGkEYw+ZlXFQv4xue/dY6m7W8+l9E8wvjgTje7Nx0F7valXCrVbi94T OCxQZa99aJclMSMdI9pcgwskOeR0E/tUmY/9lYBg1m9cNP0RGbAwzb5pfNDFo1w6XaSt cujU56HySJOaJecWopSbdAITCEokuy59o3r/Cup2N7AqHzLNbXPj6lAC05ngLLJQAsjb sFXChUmlGfBJqM0zdXwYuYhtMT+kw10A0vMYgEzbr2uZTKOiUYrUNdt77z4o4KvKh+dW dqKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=prbs1dP8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a47si1689797edc.145.2019.11.21.02.12.04; Thu, 21 Nov 2019 02:12:32 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=prbs1dP8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726574AbfKUKIw (ORCPT + 99 others); Thu, 21 Nov 2019 05:08:52 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52095 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbfKUKIv (ORCPT ); Thu, 21 Nov 2019 05:08:51 -0500 Received: by mail-wm1-f68.google.com with SMTP id g206so2761044wme.1 for ; Thu, 21 Nov 2019 02:08:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=R4hjhKPyQPWEsWK0HmI2zX8e76pSPH6drX+KAe0V84E=; b=prbs1dP81sRgtZ7wMCz80nqk+aX4U4XK85NdUe3WyuZaaGzWb6qcXqMherEtvNOdfQ 0mFggBF0xyVTaVOrAJi9kBoL3Wz2rHwKRiBtK9dd0Cix8BWDWQTxqphMaHDloq0dR2uW cfaEJuWSZRXBi3t8JQ1a9RiTet71dpIlmxSrix9fiPhjr6ViM4JByd+qlWkc1Lw9s6Dn MNPXnRbI/U7zcw5K40Cx1EmUwjrSZKUjVf6KH4pEa+ucjPeoQioSZwwvYerH2K54/sZ/ SB33awdggXTa/GgebY19XswcrwnmF8mLAP9YsQ3US8r9L3ZqbmEsEPGe693crpzqwMIp imEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=R4hjhKPyQPWEsWK0HmI2zX8e76pSPH6drX+KAe0V84E=; b=j1WTb3LxI8ooQ4EPlxO/B+GXUUUVB47TgzGBGROemCC7iD0a4cf1i7CyWg65df8Qdc FXDjee++EI/XOlJxDrrgTqUfh9GU4HCt4DSDUrfuey0T9HtAb6QPw+48HAy1kJdr1uCx EdzCIWiGMLWPzo+01IhD3azFVfo1B5PBPuFB2awY3UiewT19NTVm2yjisInowJyFULZN fnF2ukJJD2uZyqd9eqwzQAAvbQnHXHKiLhKAUEmw7lXwGoVQijpr35g0w0hieT/mpRkP iWL76rBGSUTINYgrQEq9iJePK3oSkCKsFiMEJ0gRSMJCd6alcP6otTI+yvzIgdnG518i 6s5g== X-Gm-Message-State: APjAAAV1eVDceEVQYe+U21pXhhWdXiJbF77J7EL13AWbYkB+sQWDz6pW XXWmFZ1Ce8MPnZiWbYfBZRc= X-Received: by 2002:a1c:e08a:: with SMTP id x132mr8950374wmg.146.1574330927887; Thu, 21 Nov 2019 02:08:47 -0800 (PST) Received: from ltop.local ([2a02:a03f:40e1:9900:4082:8c56:ea03:cdcd]) by smtp.gmail.com with ESMTPSA id y2sm2568116wmy.2.2019.11.21.02.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 02:08:47 -0800 (PST) Date: Thu, 21 Nov 2019 11:08:23 +0100 From: Luc Van Oostenryck To: Joel Stanley Cc: Andrew Jeffery , Linux Kernel Mailing List , Robert Lippert , Patrick Venture , linux-aspeed , Linux ARM Subject: Re: [PATCH] aspeed: fix snoop_file_poll()'s return type Message-ID: <20191121100823.2twowr42nsyykvgg@ltop.local> References: <20191120000647.30551-1-luc.vanoostenryck@gmail.com> <787e54c2-2fe3-4afc-a69b-94771726194b@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 02:52:39AM +0000, Joel Stanley wrote: > On Wed, 20 Nov 2019 at 05:42, Andrew Jeffery wrote: > > > > Looks fine to me as POLLIN and EPOLLIN evaluate to the same value despite > > the type difference. > > I assume Luc was using sparse to check: > > CHECK ../drivers/soc/aspeed/aspeed-lpc-snoop.c > ../drivers/soc/aspeed/aspeed-lpc-snoop.c:112:19: warning: incorrect > type in initializer (different base types) > ../drivers/soc/aspeed/aspeed-lpc-snoop.c:112:19: expected > restricted __poll_t ( *poll )( ... ) > ../drivers/soc/aspeed/aspeed-lpc-snoop.c:112:19: got unsigned int ( > * )( ... ) > > If you fix the return type: > > CHECK ../drivers/soc/aspeed/aspeed-lpc-snoop.c > ../drivers/soc/aspeed/aspeed-lpc-snoop.c:106:45: warning: incorrect > type in return expression (different base types) > ../drivers/soc/aspeed/aspeed-lpc-snoop.c:106:45: expected restricted __poll_t > ../drivers/soc/aspeed/aspeed-lpc-snoop.c:106:45: got int Yes, but with the change s/POLLIN/EPOLLIN/ this last warning is not issued. Cheers, -- Luc