From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49C96C433F5 for ; Tue, 16 Nov 2021 14:00:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3316F61A64 for ; Tue, 16 Nov 2021 14:00:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237040AbhKPODp (ORCPT ); Tue, 16 Nov 2021 09:03:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237030AbhKPODn (ORCPT ); Tue, 16 Nov 2021 09:03:43 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A576C061570 for ; Tue, 16 Nov 2021 06:00:46 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id k2so35970934lji.4 for ; Tue, 16 Nov 2021 06:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=C3rx7aIxOopa1weR65EZGsL10NKUPtC5cPt3IjQotWc=; b=QewvMpAq1jOafYWSHcTCfOV4Zlk5rWO0KXJHzU1dL2VU9WC+7LcuIeFAHGnBqTXbzh OyXuzm/3yqyyGf8RFxceiTQjNNG8vkJb/lT1pixej27m7V3sQkqHu6W6OyheVg72Uxsd XY1nQNL8yjHdU99Y+UKwUkGDmmqKjZTyL0hFcBOhzBsxpf4j3gDhz05016AkXGpNzWKu yH7gCfnlbENX+BjY6FqjxroE1qu3qrr/ewwad+7RVoRKQbZdPjJlTmfc1Ls7pDtpHpyD +jQQHMp9r4niWK9+olNQe+8L+I46d+7CuLcpayOt2rW9m+jQZgl5JK/9z4BGKtWEhMj4 rsjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=C3rx7aIxOopa1weR65EZGsL10NKUPtC5cPt3IjQotWc=; b=wJeKUzW3B2paCNbc3dtPRP68wLMgu9oL1ibE2IRagKWSRLWn/Q0IaPp65iNIc5tzM2 IljUpbDv8gm+FDfqTxO06CEIHn8d1VgnXQlgHmG1uo/Sjwh6OMQcIlenn6CHiaLAALh7 c9jE2RwcUQe0PzGcMgYz91p8iP3qOa0u0jcqfFYEIZglOjcb9TJraLIJ0j4hGb882uMY PgqaTNngFYHXE1g0tYFpa/6DSPgf7FQKkXnnSnk1REO3khoBZ152hflZTKIeFKF5uFKP vaAQyOXhHSXqHpO5mAA1g0bLgChDXuBIy/84ymkClkLNgC/qivb5zZ9qhWVTPvjBzp9I UpKg== X-Gm-Message-State: AOAM532/xBftnUJw2gEwgyPtshwobUc0Qa0Yh93MtjTfQttRvxvEgq2v kgNRQoREGI5HwLVe3uJ04Yogf3urFrA= X-Google-Smtp-Source: ABdhPJy19LDtswlhvycT4l9LKzrzfDVxOBXMjQF+zA2EGjxQhiWsFYCBhnOPeoGWdBJNeUqLsPpK/Q== X-Received: by 2002:a05:651c:a0f:: with SMTP id k15mr7690105ljq.298.1637071244685; Tue, 16 Nov 2021 06:00:44 -0800 (PST) Received: from [192.168.1.11] ([94.103.224.112]) by smtp.gmail.com with ESMTPSA id p3sm1768230lfg.273.2021.11.16.06.00.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Nov 2021 06:00:44 -0800 (PST) Message-ID: <22a48290-814e-bcae-81e5-c23e6310f8f6@gmail.com> Date: Tue, 16 Nov 2021 17:00:41 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH] staging: r8188eu: remove unused defines in wifi.h Content-Language: en-US To: Zameer Manji Cc: gregkh@linuxfoundation.org, Larry Finger , Phillip Potter , Michael Straube , "Fabio M. De Francesco" , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20211116011451.896714-1-zmanji@gmail.com> <6d2d9c4a-3f05-1d51-42dc-b1ebbb4aefe1@gmail.com> From: Pavel Skripkin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/21 16:48, Zameer Manji wrote: > On Mon, Nov 15, 2021 at 11:56 PM Pavel Skripkin wrote: >> >> On 11/16/21 04:14, Zameer Manji wrote: >> > None of these defines in wifi.h are used so they >> > can be safely removed. >> > >> > Signed-off-by: Zameer Manji >> > --- >> > drivers/staging/r8188eu/include/wifi.h | 57 -------------------------- >> > 1 file changed, 57 deletions(-) >> > >> > diff --git a/drivers/staging/r8188eu/include/wifi.h b/drivers/staging/r8188eu/include/wifi.h >> > index 193a557f0f47..7cbc7015e90f 100644 >> > --- a/drivers/staging/r8188eu/include/wifi.h >> > +++ b/drivers/staging/r8188eu/include/wifi.h >> > @@ -13,32 +13,9 @@ >> > #define BIT(x) (1 << (x)) >> >> What about BIT() macro? It's already defined in include/vdso/bits.h and >> can be included via include/bits.h. >> >> Most likely linux/ieee80211.h contains bits.h. Haven't checked yet, but >> anyway redefining kernel macros is not good approach and BIT() can be >> also removed. > > This is a good observation, but the objective of my patch is to remove > unused defines so it will be easier to do the work that you mention. wifi.h > and ieee80211.h redefine a few kernel provided values, and I intend to > follow up by addressing all of them in one go. > > Would you be willing to ack this patch as is? > I cannot ack, since I am not the maintainer (or even reviewer) of this driver :) I just saw this BIT() definition and decided to say, that it can be also removed Just to be clear: I am not against this patch as is, since _any_ clean up for this driver is important Thanks With regards, Pavel Skripkin