Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp784842rwi; Wed, 26 Oct 2022 07:14:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4cZYOSgKQbM3VZWSAJWAqvS5dwdEqUU3T0kvX5YKd3LYmLldmOKwvqP0rH71OzDm8fF915 X-Received: by 2002:a05:6402:294a:b0:461:b661:d903 with SMTP id ed10-20020a056402294a00b00461b661d903mr16514896edb.407.1666793676879; Wed, 26 Oct 2022 07:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666793676; cv=none; d=google.com; s=arc-20160816; b=x8dNksybR8ZQsHFBxtBuHopW8+BExPO1vIIxfwUp/3qSacr13/GvONOVjp6wp71FkD lHjCyhT579+CwtdMV0NOHwUVBRf8v4hmo6Jojy1WAJkec8PaI7jmrlhnzQXmJjjG3ClY l/5L/D9hSqx9ITZbHqM8YKmvNmw/ZQZImll/YKbe3vuA3hphp9lePkUTcd7DXbgDUA4y 8BZmcsQ76c8Epf7GX31E9C1iEaxHk4tEUonnM/s8H3DYQJUPq6eZjTB+yZ9BLaQD+WVK CPqo3GlS9CmaPxHJVn118+OsXGGtDPVtECgM71YBp4Rshc1a/kOxXklGe2fm1iDxP4aL 27EA== 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=Ul+r0DPtegYpvYBFUQweh5R/IZ81+8kWQ9HrJswe0bE=; b=fNYByu56W1Cd/gyQ5MqSRJ+yA9JHb0UI/nmWVtDxfb6UHd2ug/Ja8p4SALHyPw7VrG LDgWVDDqje16uQmH604ztAhv3tVA/+Ru+YqOo+S0OTG9PJxS6qM0xA3kAzSaQCpOOCgR R7ZUCIhsEEaw2YRBFs3HsgxXdkF3YdYQ07q5eDX29K/XmnJnYQtXfeiDBOZm5RATBBsk JYJCbk4sqOqeHDYUDaGFcUwu7zIYRW0azxH81aOh7pH/DaOP2L5jTYAwvdJXd9cWZR7O cGFzAMsChb5RX58U0Xm5bAuWQF9YbvMtqcaNZ7teUOKD5YnbKIRPBOnKDLESep16SWvY PSjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EnfwyRUS; 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 sb1-20020a1709076d8100b0078dcd448f99si5416072ejc.855.2022.10.26.07.14.11; Wed, 26 Oct 2022 07:14:36 -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=EnfwyRUS; 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 S234078AbiJZNz6 (ORCPT + 99 others); Wed, 26 Oct 2022 09:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234056AbiJZNyo (ORCPT ); Wed, 26 Oct 2022 09:54:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 823BD103243 for ; Wed, 26 Oct 2022 06:54:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4571CB82257 for ; Wed, 26 Oct 2022 13:54:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C3D9C433C1; Wed, 26 Oct 2022 13:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666792449; bh=qtJhkpBNI09xyN+fRFiz2dyg8X03xHEV6Ai99KiJV2Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EnfwyRUSZErm+pvgMwTNddfTWovLzhr1Oh8B35+Dabsp1Yg4o6DX7PCJYh1l5DQ7p 0GwS/I8io1kir1Cnlkrf01C/fG/tl6Kz1X/6Gv/uVUj47oHrB95v7JUqX89LKHfcTx lDUpBN+JKgKfi4Vy5O+ssXCkdX76BkNKoiqzUtwQ= Date: Wed, 26 Oct 2022 15:55:01 +0200 From: Greg Kroah-Hartman To: Deepak R Varma 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=-7.6 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,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 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? thanks, greg k-h