Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4435602pxf; Tue, 16 Mar 2021 13:27:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZj5vMJVZBhIqIwPO9ZmH8PUMUMZQUvn+Wzi2Fo5CUw/ZjhITXEr81UZS5wtoww43XVO/j X-Received: by 2002:a17:906:3b48:: with SMTP id h8mr31545315ejf.261.1615926433019; Tue, 16 Mar 2021 13:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615926433; cv=none; d=google.com; s=arc-20160816; b=rCYSErXEcoxXtMMEFlFJjROSt4KUmKnOko2iKlLJgxJxVDlx9IfnBjPqfwO8uwGNRZ wzswbCuWS401k92ur90noO7/hgOERt3eWGeU7KWLISDkOjHpKYB2Nn5TW3e1WN+KZqkQ BeD1PzeKsAUypd5QpoTVtFbhmlxL2z3wO1hbisQoMu4DCjfuK9mPv+yxEQiUBzr9cjIg 360OkFv4uMAXMPhT6wsw58WFSp+98JfAp5U1zDvlwITxWEkwxm1yMH+SMg6GdhHweINd tg3MMuyVRJl6qrYk7llRkSOj8HYUggFTNMg000sKzv8OZol8P/x6gWA3zend1MVSZg19 C3fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7bLhDPuLSWfk3cqi2O7Xv2xxQBRYGHZeZiusa5rwe4c=; b=ZJj/umD6z7A+bQKxk7KP1u3rIwgRBOb3ZOakruBDNOEDnGbfsMS0g0Bw52I+xcxLnN +LR0G9SMK2R/zGeMiHIkBReptlQ1LC3BXlYSGP8NMX3L+CIIXz702tfHLGCegLsJVWvY 2NAHpiuLwL7tB4COPZyvfhlfV6plQ6boPdfs1yUP34dXS8aJNmJ6J2EtYJsdW6CPVMJf EA3K+qE3AapwKsa6eH3VjCFsb4z+KFUE8Jc4RXg0KR/sTvFFBVlNrwIE6jaPaZZvNxsc mWxddkGL3p9s2ANKrf1BDE8Q6V9JH5z487en7sWKNxid/7K++KgCCmR17FoTLf1I5UCx lu1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=emDDfnDk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kk22si14539279ejc.98.2021.03.16.13.26.50; Tue, 16 Mar 2021 13:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=emDDfnDk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235174AbhCPNhJ (ORCPT + 99 others); Tue, 16 Mar 2021 09:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234656AbhCPNgp (ORCPT ); Tue, 16 Mar 2021 09:36:45 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1762AC06174A for ; Tue, 16 Mar 2021 06:36:45 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id z2so7459805wrl.5 for ; Tue, 16 Mar 2021 06:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7bLhDPuLSWfk3cqi2O7Xv2xxQBRYGHZeZiusa5rwe4c=; b=emDDfnDkZjL5XROGG8NZ0S6eXGoBK42uXSn4PwxAtCFdKRWSeXpnxiqXZbcHLgTDwn WbXrCMOmzzFxRA+gTc4tuG2qVsiEHRR4QtFMHWsDei2xQtxOQWCY5mXCuNigLEqoeyrR olqfMy2S2C/TklVqX3tP6ArISoKpsAJaZsou1S+kEq8vrcwHcdGPzOKRJU0E8djsqo0K 1AvSr+52ZCMU0us5YCmrKKt3ola+fyp6zgAxe7ovlAKHLTsNAn9VaOlLhl1PASPTd7iN VF75QxzZxqAX6S8wq+hdzEQgpEldVonE/P3k6BT2lLLI4etEoqwVbfan8OCctqR0R2Ct e/nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7bLhDPuLSWfk3cqi2O7Xv2xxQBRYGHZeZiusa5rwe4c=; b=pu6noTk4HK6TdhlWwyzifD7tElQK4BQ+wKg6ZR1K1TyyMhzECaLI+1D/TMqfRNFpsH BTDw36PYeedNp/IVBlclHuk51Nab46hPF6EBO/eq6c/2p2Wk0wQr/P8T6/uV0BijADpJ UjM0stWrXEGiqlyV7U7LCdRRXHhl2MXJDj4nFreZfcLowJy+HA3kB1o7QWEhUZxK1X3B kkxnzpIxZ34yhyh+nxJuaeO/rEtWfYN890cEp384wzTrQNxmfAW9OjH4J4QuHS5Cy8Cy EJ8fZaAJ8I6y7mVtJj4MrEjnjgzQcK2pATXuB58BWlKr+04zcVcheFjGOqXozPHoa89w ZTiA== X-Gm-Message-State: AOAM531AGTuJXFyqAKi0MD7y51DLeoSbEueicqSvJkntUML4x/aHKJQf 9E9PJNKOchRY19NIctU4DvCpCnoKlxE= X-Received: by 2002:adf:c186:: with SMTP id x6mr4981647wre.253.1615901803815; Tue, 16 Mar 2021 06:36:43 -0700 (PDT) Received: from agape.jhs ([5.171.72.71]) by smtp.gmail.com with ESMTPSA id 21sm3279133wme.6.2021.03.16.06.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 06:36:43 -0700 (PDT) Date: Tue, 16 Mar 2021 14:36:39 +0100 From: Fabio Aiuto To: Greg KH Cc: devel@driverdev.osuosl.org, kernelnewbies@kernelnewbies.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/15] staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_PM Message-ID: <20210316133638.GA1465@agape.jhs> References: <77ea39e63246fa4756afcf2bdea573f43fefc74c.1615801721.git.fabioaiuto83@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 12:39:19PM +0100, Greg KH wrote: > On Mon, Mar 15, 2021 at 11:15:02AM +0100, Fabio Aiuto wrote: > > remove conditional code blocks checked by unused CONFIG_PM > > > > cleaning required in TODO file: > > > > find and remove code blocks guarded by never set CONFIG_FOO defines > > > > Signed-off-by: Fabio Aiuto > > --- > > drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 8 -------- > > 1 file changed, 8 deletions(-) > > > > diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > > index 2ff71d001c07..5748e1c1a25c 100644 > > --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > > +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > > @@ -3198,14 +3198,6 @@ static void rtw_cfg80211_preinit_wiphy(struct adapter *padapter, struct wiphy *w > > wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; > > wiphy->flags |= WIPHY_FLAG_OFFCHAN_TX | WIPHY_FLAG_HAVE_AP_SME; > > > > -#if defined(CONFIG_PM) > > - wiphy->max_sched_scan_reqs = 1; > > -#endif > > - > > -#if defined(CONFIG_PM) > > - wiphy->wowlan = &wowlan_stub; > > -#endif > > How this is "unused"? This is a real config option, did you just change > the logic here? > > thanks, > > greg k-h Hi Greg, ignore this patch. I missed that definition of PM config option. I dropped it off my own local repo. Thank you, fabio