Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2181739ybc; Wed, 20 Nov 2019 10:04:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwYZNSEMVngniYB4VXw8jtbGWKOZnYUy0P7CNt4rb700xEu/EBVH9tjmeRc20LDEWJVUEhU X-Received: by 2002:a17:906:2f09:: with SMTP id v9mr6813131eji.91.1574273093363; Wed, 20 Nov 2019 10:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574273093; cv=none; d=google.com; s=arc-20160816; b=xdSqar7pyFqXXv+geNZvN5vvQQb4BfZlAs1OlD9XaalZHqJRmqUH7zIQdQ4JCFz1W6 vYGLQRSS5S+df5AJeh4v/+b5cw2UNp+0ocAwVl3/s9G9tHPbv/cwEF9O98iCVPlCsLjB haC6BmkkH6Gsd8uLM2UOBDvtWDlZ7WVcl+UJw1vumqWuIYeUo+zIjjgce6VPSgTTaj3X aNzK7Ul9Xlwdib5Dnnz/MEgoWt9d05Dyuevq9HA5RakgzrLknF8W7l/DQEuoDtbnX2Tu xztSHVWtGn3gEtZRfDHuPG0Pjx7Myph150ayW+jyWGk9l5leHKu0YjIrcgFDzmAjJeTf qk4Q== 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=n+AVORr1d4ZvqzZAnGUi+LFa3CeeCaALUsfle3Ql5L4=; b=nGOek7MMun+Pa+RtowcKf6q490cfxNtg/FMxXVTwRoo6MdJukCXITZQD1sn9mR5eTA 9HB3lx1FX/QY5SMZV3RQSONUrswUBXZswWn9IviykK4m+oZP2oewWHn3+58PA6uLxBhk nBKdBrkzm4LTMrgrXU6xge935W5AAdi/gVthCDsw6JP0hjoY1dYpK6ENqSJ9LNsqYPgJ F9EUn/bzFAPBbAuY3LooX7nrGcCQYHMtymKXdWLaKZvf3kp2RPOxhlW57P+LIl4dxCdl NOo8HAokD7lYkbtD+K2HIy9v2CnSHWwmKnkvJSOC3uYCxoYgSo97sQHvYXwKEgK/EuN3 /Gww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=arPc5ay9; 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 d20si16692143ejk.173.2019.11.20.10.04.28; Wed, 20 Nov 2019 10:04:53 -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=arPc5ay9; 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 S1727977AbfKTSCd (ORCPT + 99 others); Wed, 20 Nov 2019 13:02:33 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53847 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbfKTSCd (ORCPT ); Wed, 20 Nov 2019 13:02:33 -0500 Received: by mail-wm1-f67.google.com with SMTP id u18so611962wmc.3 for ; Wed, 20 Nov 2019 10:02:31 -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=n+AVORr1d4ZvqzZAnGUi+LFa3CeeCaALUsfle3Ql5L4=; b=arPc5ay9U8+j7Oa5DBvVRY9g74sTYWWVDDbnsEh1rYLzJv0B7YSrqJ/nGckQivzgql Il0elAQC68TVwRUzW42cLK0f82oq2c2sFnDUvGwxi8fneErktMaQdg8Uwa2klEyzlmKR hfiJWZyw2TEFQZpozd9ux2OwLR2K1hKeRcVoDueUloI2GQqACDg3oyaAa1bKYUIK0QMo iRzdtRBPNXPy6HivLoA095hDj5afKv/G+u3SmwyY7TewjbaDaHDo5jBTz3fKgfWVni37 qalinmBUr7I8J4SrgAqxCEuXQxh6q68ueGm7ml6Lt3u4aY2DdvqHVoM/cG6gbtYB5dIt IJ2w== 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=n+AVORr1d4ZvqzZAnGUi+LFa3CeeCaALUsfle3Ql5L4=; b=VHiNpB5QuMonpTbTjmPdtgqSvAsrizj8+o3h07gLHOv9pPTU8DM1iqLWuG47O1rEnb UZg83ajJPg2Hts4uLdX5PMsVcI293afOk0fPC5OXS/yOCUDa31t6Hr4+W3FTecjupb/6 +qjB8NELRdAIFz3xJloyQ6bvVsAp+RRXJuposAPFZ7pTN0ZFa97keHFJU6LD/zH/iPyz sf/2esq9fawF2kdnLUZhGhsGB8F/D1ILPJZjEUwzeQAfK0NQGSJphmdLyQl3VfeqcPK/ ykR+/pkgw6q3+OIAYIdD4E2v1zSoqRd/qrphRJN0BFX0mI5XYYi+bi3vd7A4C1rpbdm3 Rbhw== X-Gm-Message-State: APjAAAWxBX8AH4ask7rlgJnKrY9sISXJd35OQQYcQS9dzx/ExrZFTwL2 i20VD0ElVF+D2V/3Nj6W+0NH5g2d X-Received: by 2002:a1c:6a09:: with SMTP id f9mr4847848wmc.15.1574272951326; Wed, 20 Nov 2019 10:02:31 -0800 (PST) Received: from ltop.local ([2a02:a03f:40e1:9900:950c:3e8e:b6df:1425]) by smtp.gmail.com with ESMTPSA id t185sm21393wmf.45.2019.11.20.10.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 10:02:30 -0800 (PST) Date: Wed, 20 Nov 2019 19:02:29 +0100 From: Luc Van Oostenryck To: Dragan Cvetic Cc: "linux-kernel@vger.kernel.org" , Derek Kiernan Subject: Re: [PATCH] misc: xilinx_sdfec: fix xsdfec_poll()'s return type Message-ID: <20191120180229.frd5padrsdxf7hag@ltop.local> References: <20191120001030.30779-1-luc.vanoostenryck@gmail.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 Wed, Nov 20, 2019 at 03:59:24PM +0000, Dragan Cvetic wrote: > Hi Luc, > > For the sake of my understanding I'd like to ask you when the .pole method is defined > Why I'm asking this? I have a fairly new book (published in 2017) which suggests what is implemented in SDFEC driver. > > I'll test your suggestions and will come back to you soon. Well, yes, it changed in July 2017. The current definition can be found in include/linux/fs.h: struct file_operations { ... __poll_t (*poll) (struct file *, struct poll_table_struct *); ... The main commit making the change is: a3f8683bf7d5 ("->poll() methods should return __poll_t") The result can be verified by compiling the driver with the command make C=2 path/to/the/driver.o which will use the static analyser 'sparse' to make additional checks where the difference between 'unsigned int' and __poll_t will matter. See Documentation/dev-tools/sparse.rst for more info about it. Best regards, -- Luc Van Oostenryck