Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1213170rwi; Thu, 27 Oct 2022 12:45:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5L/i/uai4c1/K5UmnzEzNB8gwEqw98W7SYAxYqksK+hrBEGtEX/PxsTTjWDUg4SlsURlZE X-Received: by 2002:a17:907:6d8f:b0:78d:9b5e:1a0f with SMTP id sb15-20020a1709076d8f00b0078d9b5e1a0fmr45687517ejc.23.1666899906435; Thu, 27 Oct 2022 12:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666899906; cv=none; d=google.com; s=arc-20160816; b=yZm/tGnp1ZOn58zwwWzJRfK+jIVivEkSibOFbdxxyH95m2r7ThBTTwxvfYIPp/ZvJv 7Cid1vqastDzxHN9sQqTNWaelryhLqjrQK937jlqlLLBIKFyInY/nm+tCYrgLG8zlz8H kBgIIkIKRaC6xCV5iUL+fM4x7tWCXim2BcEzhtLafQOvEePgjOTuGnJ/RAWrjQ6KfzdW SedUotlLumw9qdPU7sqv99COD8K7wVOufGoARjwI/gMZzwpz4luhEfDbu4zAIagMK0rA OvecCR1SJ6W7LUTFdo7VBxsgpSrOrsyOz64X+I+7Iytu8z3OMYMLhzbaroWqaaNaOI35 4qZA== 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=6/y0NiemqX+/qeGxvL3A1F/9T4ePqIA68ml9nu3lH3s=; b=J//yen06aWLOSIZTi/C5SPi2ohhcn5PoL91mCWuoiwBAGGp2lbKzcowqpBTcysuFLd 8KoKKKysf+08nvAymZ3tUzDJ8tSm60oh8wUQckxuGhLIJ9QzzwCIkzntLtHgZyNcLHW0 cyazDjhWibdCe+D2uSqaKOk1ElNt8hpYJubjvbC67SRvGKM2MtacauhX5y5yTcFT2AK9 VNuTOLESckv2qXyppEQKsJF3FSVTpZFaA6QvUuSf1/ehysBLv7xopdANwpcAO8flgoL/ 9LYkSOlbiLxSabLTYGeqC8JWIwsgcQgQzT//9QzFlfdHC8sh56Q4xkSXpOpWq314xyxn NyHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=KS9YmOf6; 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 v22-20020aa7d816000000b00459afcf8354si2169947edq.243.2022.10.27.12.44.37; Thu, 27 Oct 2022 12:45:06 -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=KS9YmOf6; 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 S235481AbiJ0TeI (ORCPT + 99 others); Thu, 27 Oct 2022 15:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236513AbiJ0TeC (ORCPT ); Thu, 27 Oct 2022 15:34:02 -0400 Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 416BD5B9DA for ; Thu, 27 Oct 2022 12:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666899222; bh=xys/aAejh7JTopsuNYt2PnyiMn9PjHrWmN/+pjwgiEE=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=KS9YmOf6EBDaxcPo/tg3HGTAuf92EmuJLBWel96a+p+8VCYMwpuPluj7RvyYISadM IoAjmxcvGPR5sbEM6w3U8Ys37h44Scfj0dIbcnLwbdkKq4MMreqmuF/lHKOQ/Wu2dH zIU3agUiYkRtpPq9h6CuvK1tsOEi2pG7GCZ3VWCk= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via [213.182.55.206] Thu, 27 Oct 2022 21:33:42 +0200 (CEST) X-EA-Auth: B0BsiMOjJQVyJF9UqMNnrzd1/hQN7g5BhYv/Vhez2hUJ+yc4MQSg/PqvKBP4gCRwzt/uBl5if8fWpFUovfKJtnJ6Bt3Q5gaY Date: Fri, 28 Oct 2022 01:03:36 +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 2/2] staging: rtl8192u: remove unused macro definition 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 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 03:55:01PM +0200, Greg Kroah-Hartman wrote: > On Wed, Oct 26, 2022 at 07:14:43PM +0530, Deepak R Varma wrote: > > On Wed, Oct 26, 2022 at 03:14:23PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Oct 26, 2022 at 08:58:44AM +0530, Deepak R Varma wrote: > > > > Pre-processor macros that are defined but are never used should be > > > > cleaned up to avoid unexpected usage. > > > > > > > > Signed-off-by: Deepak R Varma > > > > --- > > > > drivers/staging/rtl8192u/ieee80211/ieee80211.h | 2 -- > > > > 1 file changed, 2 deletions(-) > > > > > > > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h > > > > index 00c07455cbb3..0b3dda59d7c0 100644 > > > > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h > > > > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h > > > > @@ -230,8 +230,6 @@ struct cb_desc { > > > > #define ieee80211_unregister_crypto_ops ieee80211_unregister_crypto_ops_rsl > > > > #define ieee80211_get_crypto_ops ieee80211_get_crypto_ops_rsl > > > > > > > > -#define ieee80211_ccmp_null ieee80211_ccmp_null_rsl > > > > - > > > > #define free_ieee80211 free_ieee80211_rsl > > > > #define alloc_ieee80211 alloc_ieee80211_rsl > > > > > > These #defines are a mess, please look into unwinding them as they > > > should not be needed at all. > > > > Hello Greg, > > I would like to know what you mean by "unwind them". Is there a documentation or past > > commit that I can review to understand the expectations better? > > Look at them and try to figure out why they are there, and then work to > remove them entirely. A define like this is very odd in the kernel, it > should not be needed at all, right? Hello Greg, I will look into these additional macros soon and send any further edits as a separate patch (set). Is the current patch set with 2 patches acceptable? Also, I am trying to get Coccinelle to work on my machine. Trying to work through strange issues. I will work on the macro unwinding task you suggested once a get the Coccinelle task completed. Thank you, ./drv > > thanks, > > greg k-h >