From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97D4AC4338F for ; Tue, 10 Aug 2021 10:23:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 718556101E for ; Tue, 10 Aug 2021 10:23:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239792AbhHJKXX (ORCPT ); Tue, 10 Aug 2021 06:23:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:52962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232955AbhHJKXV (ORCPT ); Tue, 10 Aug 2021 06:23:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B969560F94; Tue, 10 Aug 2021 10:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628590980; bh=0128r8WY+OE77bTycxugMCEdSZ1435Mwfm+tkWVE0xc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pLPn3O0wQDNoZa5740UD9H9e+aNm2189FbQH1FnlQAc6jVOct0TqovzyHfhfgg5zI dEKWdLutrlVskfw+sQkoc6AJ3MucnjsRxiQ/4nkRy7EPsMg54ih9knVYmPswbRUo3V tLjXjXhXA7zCiXo1LOYD9r4jp68pSZCFr7sTDq1o= Date: Tue, 10 Aug 2021 12:22:56 +0200 From: gregkh To: Arnd Bergmann Cc: Phillip Potter , Larry Finger , linux-staging@lists.linux.dev, Linux Kernel Mailing List Subject: Re: [PATCH] staging: r8188eu: remove rtw_ioctl function Message-ID: References: <20210810074504.957-1-phil@philpotter.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 10:08:31AM +0200, Arnd Bergmann wrote: > On Tue, Aug 10, 2021 at 9:45 AM Phillip Potter wrote: > > -int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) > > -{ > > - struct iwreq *wrq = (struct iwreq *)rq; > > - int ret = 0; > > - > > - switch (cmd) { > > - case RTL_IOCTL_WPA_SUPPLICANT: > > - ret = wpa_supplicant_ioctl(dev, &wrq->u.data); > > - break; > > -#ifdef CONFIG_88EU_AP_MODE > > - case RTL_IOCTL_HOSTAPD: > > - ret = rtw_hostapd_ioctl(dev, &wrq->u.data); > > - break; > > -#endif /* CONFIG_88EU_AP_MODE */ > > - case SIOCDEVPRIVATE: > > - ret = rtw_ioctl_wext_private(dev, &wrq->u); > > - break; > > > I think these functions are all defined 'static' in the same file, so > removing the > caller will cause a warning about an unused function. Better remove the > called functions along with the caller. I get no build warnings/errors with this patch applied, which is odd. So I'll take this for now, but a follow-on patch to remove these unused functions would be great to have. thanks, greg k-h