Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp672548rwi; Wed, 26 Oct 2022 06:00:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mjT2Xgf4Sm2Tt9FZvBo1jm8YB8yn2dlhfMKHUdk3mfIvF+qxsPql8Rkqqh8JkKm4YUV3t X-Received: by 2002:a17:907:96a0:b0:78d:dd45:a6d4 with SMTP id hd32-20020a17090796a000b0078ddd45a6d4mr37805052ejc.643.1666789252665; Wed, 26 Oct 2022 06:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666789252; cv=none; d=google.com; s=arc-20160816; b=ZDe0FPwvPRIUbaYB73jPZBiE+ScTt5uyzHrh0WzPtPZdbBxekJYHdyvBmecupqWaLZ TSX8G9e/DQ5NOFVERM3od7qRtq3rbprtObsHgAdzl1M3TvQNNUhUdE3EcglBEa7gnYJH 50HlA1qxtsyZ/32tfgQ4VuT1YEDFQ73gxtOAB/AXf71tOesmN34+p+xXJP3z0phbosS/ GRKal2g45fXZxdjXhuTLNQ2joNSLcEr4eMGBI6RbuRNmDuoic4iS7SroN1jY3j3jyGtp jLO//BLQhsbiqeSizrpLwS+roFWx1DJm4Sl2c3Dh79R7I5ie8uDkUV1Wdedv5MyIIEB+ lwFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OYKKapqA6AgfcQJG9FiuSs1DJsYN8zehqh7iZDB4zao=; b=OpUy035q2NBKhSlyG7phPrIW1uBqOsPvLS5+LyXhX6z8U9xUL5MGXTKd0301zjcGnb Bd1VXBVTG4iKGaxD0qQo06KNDasWD8OVq9MWv1m3dVIoZP9okLlE0E9UgduTdLVf4ZhH KcUiFgtXhFArAOM0DKm3CobzchC9+O8JTD//xy4mmLPxjCnDm2O7JcrvgSl+g1fBw7q9 yi8XzzmJqSNf+Hq2+Gd7wTMUJgmrOQlo8SN6IY6nNl5K+jGQV3RQyOJpcOmjdUBNvh9e nE1hmnunx4aAid2Qb4N3h8I0XaKzIlOLDmIPrz5TlSeuUHNdR0o9ueyhPVYldJk1/HYq N10A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=VfFSJOBo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a0564021e8a00b004612505ece4si7324209edf.483.2022.10.26.06.00.25; Wed, 26 Oct 2022 06:00:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=VfFSJOBo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233752AbiJZMNA (ORCPT + 99 others); Wed, 26 Oct 2022 08:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233748AbiJZMMf (ORCPT ); Wed, 26 Oct 2022 08:12:35 -0400 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C2A4D252 for ; Wed, 26 Oct 2022 05:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666786345; bh=+Q65ej4JbwX8/itgBgDtPbMGphOFzFFUFnr24Fd4cLk=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=VfFSJOBoE07AoDGnkVZnFqc6YJ2iOvd/++LbyxLfn//mgLqgzAkzCQOgNjADGUMH7 1s6TU1S0Wmj5dy+kIJBX8wm1L8W8EEgsHqY9xmX01BjCRh2HjsOygo9/ChZShaonSt WbsnK+iz9gOcqeKFKvoKcYRDp0laiz2xNemVycl8= Received: by b-5.in.mailobj.net [192.168.90.15] with ESMTP via [213.182.55.206] Wed, 26 Oct 2022 14:12:25 +0200 (CEST) X-EA-Auth: Gb9BbW2DushtZY9y0WTWPXm2IyyjglMHKF1ws0Yj96dIpgjoe9MDRDAQW9WmguCQT0dJxWQeOcNI7IVVUZ+jGc5awbtui1df Date: Wed, 26 Oct 2022 17:42:23 +0530 From: Deepak R Varma To: Greg Kroah-Hartman Cc: outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] staging: rtl8192u: remove unnecessary function implementation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 26, 2022 at 12:44:36PM +0200, Greg Kroah-Hartman wrote: > On Wed, Oct 26, 2022 at 08:57:48AM +0530, Deepak R Varma wrote: > > Current implementation of function ieee80211_tkip_null simply returns > > back to the caller without any useful instruction executions. This makes > > the function call and its implementation unnecessary and should be > > removed. > > > > Signed-off-by: Deepak R Varma > > --- > > drivers/staging/rtl8192u/ieee80211/ieee80211.h | 3 --- > > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 6 ------ > > drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 3 --- > > 3 files changed, 12 deletions(-) > > > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h > > index 9cd4b1896745..00c07455cbb3 100644 > > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h > > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h > > @@ -232,8 +232,6 @@ struct cb_desc { > > > > #define ieee80211_ccmp_null ieee80211_ccmp_null_rsl > > > > -#define ieee80211_tkip_null ieee80211_tkip_null_rsl > > - > > #define free_ieee80211 free_ieee80211_rsl > > #define alloc_ieee80211 alloc_ieee80211_rsl > > > > @@ -2256,7 +2254,6 @@ void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success); > > void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee); > > > > /* ieee80211_crypt_ccmp&tkip&wep.c */ > > -void ieee80211_tkip_null(void); > > > > int ieee80211_crypto_init(void); > > void ieee80211_crypto_deinit(void); > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > > index 7b120b8cb982..9bfd24ad46b6 100644 > > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > > @@ -716,9 +716,3 @@ void ieee80211_crypto_tkip_exit(void) > > { > > ieee80211_unregister_crypto_ops(&ieee80211_crypt_tkip); > > } > > - > > -void ieee80211_tkip_null(void) > > -{ > > -// printk("============>%s()\n", __func__); > > - return; > > -} > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > > index b94fe9b449b6..3f93939bc4ee 100644 > > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > > @@ -159,9 +159,6 @@ struct net_device *alloc_ieee80211(int sizeof_priv) > > ieee->last_packet_time[i] = 0; > > } > > > > -/* These function were added to load crypte module autoly */ > > - ieee80211_tkip_null(); > > - > > Ah, but this was created on purpose, did you now break the module > autoloading here? Is this built as a separate module or is it all one > big module? Looks like a one big module on the kernel I built post this change. I looked into the modules.dep file for dependencies. I was able to load the driver r8192u_usb using modprobe without any issues. Let me know if I should be looking at something else to validate your concern. > > You need to explain why this does not change functionality in your > changelog text. Okay. I will work on it and send in a revision. > > thanks, > > greg k-h >