Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp166690imm; Mon, 2 Jul 2018 09:25:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL3+lX8hlQud+19B+uxV0ARpxyt42ewWU/E/tbku+N9Ni1OaGcMv6ghkNKb/tzB+cPWkM5c X-Received: by 2002:a65:56cd:: with SMTP id w13-v6mr22732418pgs.227.1530548709376; Mon, 02 Jul 2018 09:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530548709; cv=none; d=google.com; s=arc-20160816; b=GdA07wgs1HUvtfByxzttAxHWUSnLpZ/V0LHTHZWpQAPix210ryZa2Ffc5bNW3ql2WS pAtNDKud+r0T25EQmx2jfBt0smWer2zbOSstVt3AuOMN/hv8gAk/+nDn+ZtfPnX6ZpvO 5o2HtgtpjWxClTgyec0FjMoxukDy8Xs6wGYqWIC0KmD+NnDvuDrVzprrFmbvOEV0b3oO /uGD1gGTig25jhKQ1+LuMP1nkFJEBmtusTvCoclZL0JDGxkGGn18gABH8ovlL74YJ64n CDGThf3yTAbWIwRnHh49+m7+1uMfzC9xUzxEl9qx7QQDk8QEuecU1EH54TUcdhnqDN0w foZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Jnr+s4GpGc2kimRzX3kEJ386TBFsBq9z5HizMSxO9kc=; b=j/NQ2j0ECBBst+ZCgc8EZ7dsUcSdRPpuQJquQYz2xbyMGe7st1dRCD2Y0RvCI/o5ck E17VPdHFjoRHOS4ABGS2ucjnhpofCoKki1YcMeDSc6Q1xmDRN5XHMZQG8a92c8kyJgOz DInOQbmLf7ygsguv9w1otHLXIBL29I0H77WfZS5c9e7knoILNgfcR/jOfX/nGZb6FOHG X4CzmML0TFQOZDSa3TkWjUbB08x2Lg7xLTqtwTW3ZL3KBE/K/eV8nkCBliy44qpOn42S T+eDkFrGzueT8vPfBcis993BLT/DhSTDiTJ6673WOQXi3Hc/0Bn3rRqCVdWm/606MT0E yO9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=AVLt812S; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s73-v6si15683071pfs.157.2018.07.02.09.24.54; Mon, 02 Jul 2018 09:25:09 -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; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=AVLt812S; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752369AbeGBQYR (ORCPT + 99 others); Mon, 2 Jul 2018 12:24:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34704 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150AbeGBQYP (ORCPT ); Mon, 2 Jul 2018 12:24:15 -0400 Received: by mail-wm0-f68.google.com with SMTP id l15-v6so8211702wmc.1 for ; Mon, 02 Jul 2018 09:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Jnr+s4GpGc2kimRzX3kEJ386TBFsBq9z5HizMSxO9kc=; b=AVLt812Sbw9aKo6owWNG64/ACaP82Nc8JPdlHBw0mTCZg7T5dcqYACQRAeFsL82swR PhivHKfmrWnQBGpEE7rXqZ2M8nandjI4bJUd0O8ng81dIasCnXksyL/k3Aee0SEzchEn TZwmcNH14QBMsgqUkfMmyJoIY9Q74/sPjsrqk0F2JeZZHwnbJKkLTawv06SDOhZCReh3 6mMlqbtfxLHkL2jhjpuw5KV/70fHlp6z2w/Vkb5TWwKFRzxydIZ07HMibnnFlIsjHHXs UYTn9Hazcoy2nnICiXIYa8oyNv0CJRTFVQ2bXLw7Pt0Wrz5B1qiGqCj4BNYV/gTOlZYq BrUA== 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:content-transfer-encoding :in-reply-to:user-agent; bh=Jnr+s4GpGc2kimRzX3kEJ386TBFsBq9z5HizMSxO9kc=; b=BRYjLCaMbu3GMdqi/mmq+zdEOv/VAMDuJL9SV8uTVaQ7OCJK23ib7wo99fY8/IK13S cZhTyTg0q2ZGBqqND5Cj9APwO9RlFgVhHLuJVYXRvD3/WTFGb8TVa9cgCWQdipkZRmqg e/R7ziBLlwx6ymyoVqvUtShpuXjyr1rdJAM+HTncx++pJnKWuT7qWRQkkQYKXk+2LtKu jKqdsp9oKlkDPb9m2YJx38RzoFjYMgk+nk8yjkQ1fvo6kdt6Lz3LOqowZTL2uBdZxfnL WAuc0MK52qyVz4+IpCqS3ubz8MqtsDh7kp7vlukF0EfNvumlcZghCpK39diP4zGxQJEc DUhQ== X-Gm-Message-State: APt69E0nDao37aK+PESRITrub/hvUtHbBBKzI9HBF5rd1fB7t0z3ZL/q 1HUASANF26Uv1jzfMfplafQaPw== X-Received: by 2002:a1c:850c:: with SMTP id h12-v6mr8334795wmd.116.1530548654216; Mon, 02 Jul 2018 09:24:14 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id e128-v6sm11281593wma.46.2018.07.02.09.24.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 09:24:13 -0700 (PDT) Date: Mon, 2 Jul 2018 18:22:38 +0200 From: Jiri Pirko To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jian-Hong Pan , Marcel Holtmann , "David S . Miller" , Matthias Brugger , Janus Piwek , Michael =?iso-8859-1?Q?R=F6der?= , Dollar Chen , Ken Yu Subject: Re: [RFC net-next 05/15] HACK: net: lora: Deal with .poll_mask in 4.18-rc2 Message-ID: <20180702162238.GB2737@nanopsycho.orion> References: <20180701110804.32415-1-afaerber@suse.de> <20180701110804.32415-6-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180701110804.32415-6-afaerber@suse.de> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sun, Jul 01, 2018 at 01:07:54PM CEST, afaerber@suse.de wrote: >linux-next and 4.18-rc2 both identify as LINUX_VERSION(4,18,0), but >commit a11e1d432b51f63ba698d044441284a661f01144 (Revert changes to >convert to ->poll_mask() and aio IOCB_CMD_POLL) reverted .poll_mask >to .poll again. > >Signed-off-by: Andreas F?rber >--- > net/lora/dgram.c | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/net/lora/dgram.c b/net/lora/dgram.c >index 4d931fd3778a..ef56fd90e762 100644 >--- a/net/lora/dgram.c >+++ b/net/lora/dgram.c >@@ -217,7 +217,11 @@ const struct proto_ops dgram_proto_ops = { > .socketpair = sock_no_socketpair, > .accept = sock_no_accept, > .getname = dgram_getname, >+#if 0 /* LINUX_VERSION_CODE >= LINUX_VERSION(4, 18, 0) */ >+ .poll_mask = datagram_poll_mask, >+#else I guess that you sent this patch by mistake... > .poll = datagram_poll, >+#endif > .ioctl = dgram_ioctl, > .listen = sock_no_listen, > .shutdown = sock_no_shutdown, >-- >2.16.4 >