Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2099743rwi; Thu, 20 Oct 2022 23:01:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM52rwoLf10wgJvoFmv51/y7TjkOd0JZ1vwQhk8r3ILUB8xgMj+rD9gm27oHSulnNGFYi3yn X-Received: by 2002:a05:6402:5253:b0:45d:5914:245b with SMTP id t19-20020a056402525300b0045d5914245bmr16072774edd.227.1666332060395; Thu, 20 Oct 2022 23:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666332060; cv=none; d=google.com; s=arc-20160816; b=PK9nT1p6UsK0bFdeZOsiLJyvxkwrUfRjLpWc4zmCCW7wO4oYu2Lqxa17G7Fx0VTxTy yaPQuFrAM+OS+AS8muCs2yEAmnmOU2R+Bk9N+AxFgFSPip5ILRrfE/f1w2iExD8HVQGH 1FRj/wMqCmfIqHQcXzOlS/9SC1JbFhngZ1tS3vCzN3GRsbGoO/ZpfIxMYOE0es2rOFSl yEtNVb6U4WxaLR/7tkreLBofmg/F2oP7D6e2vRTpaVVszCHSYV/IvGbbtRDA7hNgFzLk lFEa/cTuSjldYBb/h7jayQHN4XbyHGsW2ojkduu2whrbPOzXsZZ/Gcv6BE4t8aZYx4GY 6/PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-filter; bh=CFcGVabke10N4sdozPe+dsC/1jTkLgGjbxZzRiP6LrY=; b=BNv3vhS3AK3LNgw/SVEYqLdrQzn/F821rQiV7xk2wmsGqHPIxfmOdY+rUKUvrI6BCE OkaW/sBNsVTZcCXSLd/osbsbsJHiAofnTM2VuAurb4X2yHt+enXZ42EopbanQQhQNOUs gciKGVodqWjVErK5UJQUqZfSX+kVbubAWbHD8Lpohak0hVsk8crUWrWtF8FSCznuZYKF yanrMIEVGIkcmLMbouoQ5yyLk7rPViDiHzff7cncNXnw9LPVgLwvf/vJ73ETRtH449k1 zn+2m87Zczjx6ypxH8gOmyVdStV6YPaAziWm0PoqDXoGEgmEY3Ieli1X6vZHw6Ddaw0R BJ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=LjFewnAZ; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m23-20020a1709060d9700b0078bcc872a6esi16307161eji.360.2022.10.20.23.00.35; Thu, 20 Oct 2022 23:01:00 -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=@linux.microsoft.com header.s=default header.b=LjFewnAZ; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbiJUFvV (ORCPT + 99 others); Fri, 21 Oct 2022 01:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiJUFvU (ORCPT ); Fri, 21 Oct 2022 01:51:20 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 036981F042D for ; Thu, 20 Oct 2022 22:51:17 -0700 (PDT) Received: from [192.168.1.139] (unknown [122.171.21.142]) by linux.microsoft.com (Postfix) with ESMTPSA id 92BC520FEB37; Thu, 20 Oct 2022 22:51:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 92BC520FEB37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1666331477; bh=CFcGVabke10N4sdozPe+dsC/1jTkLgGjbxZzRiP6LrY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=LjFewnAZkJBKXQIVE6zN5NUUNryfM5sJj2TLS8RDl4CE/CEml+WwqPP6GKpLp5MFm 1qLvLOyNeQDThuTY8vjswilA5A1Cs0f+ytV9vlEmDORlz+NWWIM8xowom6PAHTxmdQ slGZqaMV6MCOTxhHXsdO4+UlCarUF54sfbghXvf4= Message-ID: Date: Fri, 21 Oct 2022 11:21:06 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v4 11/11] staging: r8188eu: Remove unused macros Content-Language: en-US To: Deepak R Varma , outreachy@lists.linux.dev, Larry.Finger@lwfinger.net, phil@philpotter.co.uk, paskripkin@gmail.com, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, saurabh.truth@gmail.com References: From: Praveen Kumar In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 21-10-2022 03:02, Deepak R Varma wrote: > Simple variants of macros PlatformEFIOWrite and PlatformEFIORead are > defined but never used. As they do not appear to be designed for anything > significant, we can remove them to avoid unexpected usage. > > Suggested-by: Julia Lawall > Signed-off-by: Deepak R Varma > --- > > Changes in v4: > 1. Patch newly added to the patch set. > > > drivers/staging/r8188eu/include/rtw_io.h | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h > index 87fcf6c94ff3..e9744694204b 100644 > --- a/drivers/staging/r8188eu/include/rtw_io.h > +++ b/drivers/staging/r8188eu/include/rtw_io.h > @@ -285,18 +285,4 @@ void bus_sync_io(struct io_queue *pio_q); > u32 _ioreq2rwmem(struct io_queue *pio_q); > void dev_power_down(struct adapter *Adapter, u8 bpwrup); > > -#define PlatformEFIOWrite1Byte(_a, _b, _c) \ > - rtw_write8(_a, _b, _c) > -#define PlatformEFIOWrite2Byte(_a, _b, _c) \ > - rtw_write16(_a, _b, _c) > -#define PlatformEFIOWrite4Byte(_a, _b, _c) \ > - rtw_write32(_a, _b, _c) > - > -#define PlatformEFIORead1Byte(_a, _b) \ Can the naming be reworked to make more Linux friendly ? something like PLATFORM_EFIO_READ1BYTE or better if there are other suggestions? Rest others as applicable ? > - rtw_read8(_a, _b) > -#define PlatformEFIORead2Byte(_a, _b) \ > - rtw_read16(_a, _b) > -#define PlatformEFIORead4Byte(_a, _b) \ > - rtw_read32(_a, _b) > - > #endif /* _RTL8711_IO_H_ */ > -- > 2.30.2 > > > Regards, ~Praveen.