Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1795589ybh; Fri, 17 Jul 2020 01:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+w1gN25XhLeOwGvAfYXPiQfULwWTSWwkpOzBgZUsjHm8ru777v60n59juYAm5YkwLTyCS X-Received: by 2002:a50:cf43:: with SMTP id d3mr8466775edk.40.1594972991918; Fri, 17 Jul 2020 01:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594972991; cv=none; d=google.com; s=arc-20160816; b=MCZUwKAWmCfNYRYqIcQpfAD0PTbjhLAIBunnw+DyoNqOKRLvwCduLnevtm4If7MWzL 6VCweDv1Y+Zb0G9ZZh5ESielHyEgoijY3ids1cHDJ91tRz1x9ClhRkdhLbKsM5I37M0f BNkf/KXLafqXTEwnrp5ngZ4Y2V1YhbnwF3UUHg15LR1mZo7pCO9NMuO15Tx31Vy0nLqS SvXYx5AZCCuIKGdIoOWOAVGngR6Y+eMYGnrc39K7IkleHaMt1/v6BR+cxz3bMJbED0md i7iwkERyptsTa9MOZqIivBVU3W+3yrebuH2o7twSowjnktP3uOJ526BDhz0bCQUuUiVS Z0oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=i3Tu6L0RFuYHKmXD8FtaG4dES5IyB1kVCuCS2lk4VaU=; b=ivBQkVMOI2HZSdbtWYWhtPsAqfWS+ox1QjX3jtaVyCIJpxZKLGkSwJ1SB4EdnzTmLu qW7KUmsA1C5n2gbHdwpbzVtc0ni1Wv3CQTqW3z9jUJx2EPOQBE6PnJRScl6YO/I3Y3/G hKciEN0Hka7VqdPP0CHoo21qi8m+NHxZOzrZVO7dTjeY+ALpeIhAB8C+8135gHKWHwsZ jg4H8EO1cCyIqmQgCiiNJ93hX20+jcrxw05mpSUQ5OFSSZEERjkHRG+BUJS3F8wMuAsy DdW/KTt0wnW6LNtHre0zd0KgCtRbsda99BAFqYklamHzXE1QteRSEc1dlB2fmXr1f8Hg gULA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si4710606ejx.378.2020.07.17.01.02.30; Fri, 17 Jul 2020 01:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727853AbgGQICP (ORCPT + 99 others); Fri, 17 Jul 2020 04:02:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728234AbgGQICO (ORCPT ); Fri, 17 Jul 2020 04:02:14 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FA2DC061755 for ; Fri, 17 Jul 2020 01:02:13 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwLJO-0000MA-Fl; Fri, 17 Jul 2020 10:01:42 +0200 Received: from [IPv6:2a03:f580:87bc:d400:6150:3c6e:283b:b7f7] (unknown [IPv6:2a03:f580:87bc:d400:6150:3c6e:283b:b7f7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mkl@blackshift.org", Issuer "StartCom Class 1 Client CA" (not verified)) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id AE488532E22; Fri, 17 Jul 2020 08:01:30 +0000 (UTC) Subject: Re: [PATCH 22/22] net: make ->{get,set}sockopt in proto_ops optional To: Christoph Hellwig , "David S. Miller" Cc: Alexei Starovoitov , Daniel Borkmann , Chas Williams <3chas3@gmail.com>, Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Alexey Kuznetsov , Hideaki YOSHIFUJI , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-sctp@vger.kernel.org, linux-arch@vger.kernel.org, linux-bluetooth@vger.kernel.org, bridge@lists.linux-foundation.org, linux-can@vger.kernel.org, dccp@vger.kernel.org, linux-wpan@vger.kernel.org, mptcp@lists.01.org References: <20200717062331.691152-1-hch@lst.de> <20200717062331.691152-23-hch@lst.de> From: Marc Kleine-Budde Autocrypt: addr=mkl@pengutronix.de; prefer-encrypt=mutual; keydata= mQINBFFVq30BEACtnSvtXHoeHJxG6nRULcvlkW6RuNwHKmrqoksispp43X8+nwqIFYgb8UaX zu8T6kZP2wEIpM9RjEL3jdBjZNCsjSS6x1qzpc2+2ivjdiJsqeaagIgvy2JWy7vUa4/PyGfx QyUeXOxdj59DvLwAx8I6hOgeHx2X/ntKAMUxwawYfPZpP3gwTNKc27dJWSomOLgp+gbmOmgc 6U5KwhAxPTEb3CsT5RicsC+uQQFumdl5I6XS+pbeXZndXwnj5t84M+HEj7RN6bUfV2WZO/AB Xt5+qFkC/AVUcj/dcHvZwQJlGeZxoi4veCoOT2MYqfR0ax1MmN+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9kFW3XMgtU6JkIrQzhJb6Tc6mZg2wuYW0d Wo2qvdziMgPkMFiWJpsxM9xPk9BBVwR+uojNq5LzdCsXQ2seG0dhaOTaaIDWVS8U/V8Nqjrl 6bGG2quo5YzJuXKjtKjZ4R6k762pHJ3tnzI/jnlc1sXz Message-ID: <5f88e695-d787-2191-feef-883a067788ed@pengutronix.de> Date: Fri, 17 Jul 2020 10:01:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200717062331.691152-23-hch@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-bluetooth@vger.kernel.org Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 7/17/20 8:23 AM, Christoph Hellwig wrote: > Just check for a NULL method instead of wiring up > sock_no_{get,set}sockopt. > > Signed-off-by: Christoph Hellwig > --- > net/can/bcm.c | 2 -- > net/core/sock.c | 14 -------------- For the CAN part: Acked-by: Marc Kleine-Budde Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |