Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1214573rwd; Thu, 15 Jun 2023 07:45:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ62kUCFsNkxxJClQbZeTIGK2E7ojNAKnsUleNy6Loc0FGEMAi0ztfx6S8iZKFwuQuXnTGBn X-Received: by 2002:a17:90a:19c4:b0:255:d86c:baec with SMTP id 4-20020a17090a19c400b00255d86cbaecmr4302713pjj.46.1686840351293; Thu, 15 Jun 2023 07:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686840351; cv=none; d=google.com; s=arc-20160816; b=z9v+3WztLbV5+WO6Gjz8++5vEHTpiRs70Sak7guuprvTG2N50p9ErnqvXY11ajtpi2 wR1PjcJIbIpoO88oyQSP4i0u8ZDHS6QUc/Ca81t2gGCWcnl0/ZO2LaRjyGk3lcgfP3sj X/5zLtht2g8bu/mE/gqDSULzx6zrq+ASMvZ/KmQ/+cepVV9Bx+uhhUiB9lOwY8x/lZT/ XDt39705vxdThjwMCu+f/MG8RbazhxXqIX6HsZEhcB9RQ/GvVpUF4MJEBfHJFWulVb0s AwfZX4yk7oj8grJEytuBQRLLe5R8x1xQvPo5N86HxHQ0ENucEzdMGF7hkaT2UAR8EWsx QFLA== 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=tHIPOEXa05HdGk7aT065OiyHqcQV8IRDxzUMrLsFd4E=; b=MeHallQpUrQV13cLg6WHcjU2qfrmPzOINcVhSMgAOFV6hnNx5Yzf0OxlzeoQJcQKxJ bCw4LBSPLdrucAmN2Lo+OKs+up6XVEfqQJlnxb/5JHIQndOVdzFufBNRuF3XaCgK7RvJ CWjhiG6c1YlAQNwBxzGJ66ZQkCBbQsWcI221Sl0BdlklfQ3yXW+I3g83wgaL2/SM7aDp trHsiIU6Huf4XoTlwBNF0NC4tZdvSMVh4jJpw1ngvdZjao7rqssmVemkFsh+SjMi72Qt 6B1lq9LRiiYMNs/WtG3gPTa22bHQJziBYQE+lZXXGVKMqDB/gl3wH0YNiadI7FUpEK1Q fI1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u6VE0KJY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oj3-20020a17090b4d8300b0025b8a96a363si9704594pjb.90.2023.06.15.07.45.38; Thu, 15 Jun 2023 07:45:51 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=u6VE0KJY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344374AbjFOOen (ORCPT + 99 others); Thu, 15 Jun 2023 10:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344228AbjFOOel (ORCPT ); Thu, 15 Jun 2023 10:34:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B6C10F7 for ; Thu, 15 Jun 2023 07:34:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 32B1561949 for ; Thu, 15 Jun 2023 14:34:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2545DC433C8; Thu, 15 Jun 2023 14:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686839679; bh=EQOh51VjdnSVB1jEja9kzvDT2KtzLLOcPpFUeCtou3M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u6VE0KJYUyWs/AJpd/icaEkfLE2BmkcvUgrLcXtL99oZxvOw9Hv1TvdmQPtJVtlKQ 6wP1u1UA53NOP+nAbKoWwD0BzvsfDtbM8p35aGV7b006LDaQHiRzMh9j0/KbjXCep0 KBKxHCu7oCFBXWhsYY1wKyJfIvaPWy7xJ9N4ZpIQ= Date: Thu, 15 Jun 2023 16:34:36 +0200 From: Greg Kroah-Hartman To: Yogesh Hegde Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Dan Carpenter , Philipp Hortmann Subject: Re: [PATCH v2 0/5] Trivial code cleanup patches Message-ID: <2023061520-gear-unwind-fbcc@gregkh> References: <2023061532-fall-earthy-c429@gregkh> <20230615140908.GB37552@yogi-Zephyrus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230615140908.GB37552@yogi-Zephyrus> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Jun 15, 2023 at 07:39:08PM +0530, Yogesh Hegde wrote: > On Thu, Jun 15, 2023 at 12:36:45PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jun 07, 2023 at 08:31:19PM +0530, Yogesh Hegde wrote: > > > These patches remove variables in the struct rtllib_device that were > > > set only once throughout the driver. Instead of using these variables, > > > the patches modify the relevant code to directly call the corresponding > > > functions, eliminating unnecessary indirection and removing CamelCase. > > > The patches are required to be applied in sequence. > > > > > > Yogesh Hegde (5): > > > staging: rtl8192e: Remove variable SetWirelessMode > > > staging: rtl8192e: Remove variable SetBWModeHandler > > > staging: rtl8192e: Remove variable LeisurePSLeave > > > staging: rtl8192e: Remove variable InitialGainHandler > > > staging: rtl8192e: Remove DRV_NAME definition in rtllib_debug.h > > > > > > drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 4 ++-- > > > drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 4 ---- > > > drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 ++++---- > > > drivers/staging/rtl8192e/rtllib.h | 6 ------ > > > drivers/staging/rtl8192e/rtllib_debug.h | 5 ----- > > > drivers/staging/rtl8192e/rtllib_rx.c | 3 ++- > > > drivers/staging/rtl8192e/rtllib_softmac.c | 16 +++++++--------- > > > drivers/staging/rtl8192e/rtllib_softmac_wx.c | 9 +++++---- > > > 8 files changed, 20 insertions(+), 35 deletions(-) > > > > > > -- > > > 2.25.1 > > > > > > > > > > These break the build, as reported by the test robot, please fix up. > > Hi Greg, > > These patches do not work because this driver is divided into two > modules. > > The driver is loaded in 2 different modules: > sudo insmod drivers/staging/rtl8192e/rtllib.ko > sudo insmod drivers/staging/rtl8192e/rtl8192e/r8192e_pci.ko > > So this line is required: > priv->rtllib->SetWirelessMode = rtl92e_set_wireless_mode; > as one name is used in one module and one in the other module. > > So when I suggested these fixes > 1. Patchset to combine both the modules into one module. > 2. Or resending v1 of the patchset. > > to Dan Carpenter and > Philipp Hortmann , in their opinion both the > suggested fixes are incorrect, which I agree with. > > Link to conversation - > https://lore.kernel.org/linux-staging/90813181-02a1-b54f-132b-c68e7b797bb6@gmail.com/ > > I have yet to find a correct way to solve this problem. Please let me > know if you have any suggestions. I don't know, sorry, that's up to you. If a symbol is used in one module, then of course you can't remove it :) don't mess with the modules split for now, just get the existing code cleaner, that's probably much easier, right? thanks, greg k-h