Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp854189rdg; Wed, 11 Oct 2023 07:24:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+J0a7VxTIhnKx23LQFLh/Yxmqy2wf3xd2qxuKAAzgzb36wGjlCOn8xM4fAgn+15kquZaq X-Received: by 2002:a17:90b:3b45:b0:271:9c5f:fc42 with SMTP id ot5-20020a17090b3b4500b002719c5ffc42mr18409819pjb.31.1697034247293; Wed, 11 Oct 2023 07:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697034247; cv=none; d=google.com; s=arc-20160816; b=ZnUGpSBJLBr4NkHTQJkE02aDnUVI2aV8GAuKo08nalW2IjbsyVLG4I8MD4xH3qm2Q5 IE4iAVY1T1MgP52NWmaW/MouJUHCyMHNhfiEmIXpwD9plwOqwEAe2VRuVHdxrShf7abi PDZqR8c1e8klRDcg0Wvl+g5Wrs0DCq2pffVms9Pej4Ns3vLNN+TeJnJSsVkFKyWBVev2 qZZI41mqVdWDvuI1Yz2rUVbEUzjisRElj5eB+u90Fi3JPw4VJbCVcD0JT0bB/WSZ9DtD YH5RLq8sHukh99c24qEPNWGKZEHfZmqQ1JxK345cggqb7QnAXGCGOw2fNx2JpXTtion2 U+FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eUvX2gorFafWS2DG+GtuzUv5nC5l9tKrwLn5MsE4yRY=; fh=3hZmsfyLFayC+OxVDRVcXAhF0jfEeN6hMeU54agNFD4=; b=PiY/mURMH4b3ulPgDQ/3QVgurlSpswA4PosgVkkGXI6p0mwV4eArIUObNnk9VlWavI qoYOVwL7mJaSwCoZXhFy0DHtYuPLaqKSuhrCzfLrFGOtKJEMAq/J+kkpTeVBB+W8CXqn 0HUpn/AYLtxwqDwW9e+r+NPGHdomfM99y/hhlgRu9DobmD9qC9ILB79vLHBJN2sRkW2G HdkvC/9TQ4DXPZAh3CW8snXDDDyC3Xoo1yy9DBnyJBVObkJJNxSCXOD3lJ6Kvvrjzxsk cnx1DFfCHMlfK3yikckmKDFMEyNaumMPOp2y7q6BRio7d1TJPj7xFXILeKbNZggLNcXk BHCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fv1HVdZC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id m18-20020a17090a859200b002774d978e19si14075201pjn.175.2023.10.11.07.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 07:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fv1HVdZC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B7B39801B8BA; Wed, 11 Oct 2023 07:24:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234985AbjJKOYA (ORCPT + 52 others); Wed, 11 Oct 2023 10:24:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235072AbjJKODi (ORCPT ); Wed, 11 Oct 2023 10:03:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754F792; Wed, 11 Oct 2023 07:03:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17310C433CC; Wed, 11 Oct 2023 14:03:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697033004; bh=zrhlLGL/7VohDIuN/EnFdfDCdV/hjo/fxSU8flcn0tg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fv1HVdZCtl1nJlrYvL4pbAyBWkP5ONV8qajJUP3MxqjnmH7ue9v7qW5IY/d5p+JX0 XzuLDOSvYdqyJqrMue4njz27bUrf3is+UQkG+0Q30EQsfZtTHlO3p+vWGTF9182BkG UUZPGRKBvYwBTr5nY88nGPXcup+2wbUzlxEAQvEMiapopqvV58MnfdZ/sW10zJPlYl E70dw4/UxSSM1nf7fdjyNjc8LI/n6v2crN/Rbnix/VMb6o8TlrAZtLo1t6rNB+Yq83 wlti2jF0kEbgmTnPqjaS6F5CjSxANi7pncq0av/3EA5s/UOfO5+eMuDlCeAIB06ZzP aRvesvlAVww2Q== From: Arnd Bergmann To: Jakub Kicinski Cc: netdev@vger.kernel.org, Greg Kroah-Hartman , linux-wireless@vger.kernel.org, Johannes Berg , linux-wpan@vger.kernel.org, Michael Hennerich , Paolo Abeni , Eric Dumazet , "David S . Miller" , Rodolfo Zitellini , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH v2 10/10] net: remove ndo_do_ioctl handler Date: Wed, 11 Oct 2023 16:02:25 +0200 Message-Id: <20231011140225.253106-10-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011140225.253106-1-arnd@kernel.org> References: <20231011140225.253106-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 11 Oct 2023 07:24:01 -0700 (PDT) X-Spam-Level: ** From: Arnd Bergmann All of the references to the callback pointer are gone, so remove the pointer itself before we grow new references to it. Signed-off-by: Arnd Bergmann --- Documentation/networking/netdevices.rst | 8 -------- include/linux/netdevice.h | 7 ------- 2 files changed, 15 deletions(-) diff --git a/Documentation/networking/netdevices.rst b/Documentation/networking/netdevices.rst index 9e4cccb90b870..6f9b71c5d37b8 100644 --- a/Documentation/networking/netdevices.rst +++ b/Documentation/networking/netdevices.rst @@ -218,14 +218,6 @@ ndo_stop: Context: process Note: netif_running() is guaranteed false -ndo_do_ioctl: - Synchronization: rtnl_lock() semaphore. - Context: process - - This is only called by network subsystems internally, - not by user space calling ioctl as it was in before - linux-5.14. - ndo_siocbond: Synchronization: rtnl_lock() semaphore. Context: process diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e070a4540fbaf..8d1cc8f195cb6 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1121,11 +1121,6 @@ struct netdev_net_notifier { * int (*ndo_validate_addr)(struct net_device *dev); * Test if Media Access Control address is valid for the device. * - * int (*ndo_do_ioctl)(struct net_device *dev, struct ifreq *ifr, int cmd); - * Old-style ioctl entry point. This is used internally by the - * appletalk and ieee802154 subsystems but is no longer called by - * the device ioctl handler. - * * int (*ndo_siocbond)(struct net_device *dev, struct ifreq *ifr, int cmd); * Used by the bonding driver for its device specific ioctls: * SIOCBONDENSLAVE, SIOCBONDRELEASE, SIOCBONDSETHWADDR, SIOCBONDCHANGEACTIVE, @@ -1429,8 +1424,6 @@ struct net_device_ops { int (*ndo_set_mac_address)(struct net_device *dev, void *addr); int (*ndo_validate_addr)(struct net_device *dev); - int (*ndo_do_ioctl)(struct net_device *dev, - struct ifreq *ifr, int cmd); int (*ndo_eth_ioctl)(struct net_device *dev, struct ifreq *ifr, int cmd); int (*ndo_siocbond)(struct net_device *dev, -- 2.39.2