Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp699735iog; Fri, 24 Jun 2022 12:02:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vDuOOkwbkOGNeACKmrIoUbQtJBaNRU0MHxJfp83jk9bvSxFPp3uckfeVGCAG87P6enAHZe X-Received: by 2002:a63:5412:0:b0:408:84a9:9562 with SMTP id i18-20020a635412000000b0040884a99562mr279184pgb.600.1656097371253; Fri, 24 Jun 2022 12:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656097371; cv=none; d=google.com; s=arc-20160816; b=w7IrMSmzdK2aK/ECKQTCKdZ1eAHr7zf4a6w+wlvwEGR/eucqTr64Y+sElUtaKfnFG0 jie7EMnRR1sEu+dpYCSAuMFfKSKbZeyuUq3JXp89Xrgb6kLhieTU9xwCGTu2RLL50Cch xJADgKokDm9lkvYos8csBs+kwpL4xYr4c12iQs3fsBxlHKiXKQZEbL566b4QNj0oB6fj GXHqa+lFUcCAJSbu/ur9yoCb++/6kfZxpcS48Cy/cgGHyKfRmKNUgiI0mxHt6YUGw1XK xi2uxK7EfM+MADx1PYlu1+7gcuwol7VHbONHCqKTIlK6bgTzJUe3fGwqLjMw3HChVaY/ fniA== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZkJlVC384UNpflENkvCHqRU0Ni7nxmoR7Jcb/6VX51s=; b=jvgsUrCqiizG3SKSWdsDiMkGo/icCUTJKrXvngvacA4/mQls6gd8hzCNJansWryjf7 RGoDIxMH2eHOpIhDDZ4PrN2khe/Fzc0qDyARzpnRwOq8juKwYJJiy5KorOyJoCkrv8Ss BVkf1z4I9URIygIEonRC9Jf5JBuq8VvcQfU19xtUHqhOV/Fjadp0HRi33/Mm6KMru/9r ciJ/z79hEfJltleck3v93zbwcthERV2vAFs1mSLFGSyq7y3dI/QMKkNMTmwGkAXa1FTm 1qCfa59Kdp9hi+k+X41W+q/Z5MpbqLFEQttPKV1+YTw3biNiTg+djRc3HmZ3O0EuRPJ4 Oqdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=kxkKZjc1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku17-20020a17090b219100b001eac49d5b1bsi6931363pjb.111.2022.06.24.12.02.38; Fri, 24 Jun 2022 12:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@quicinc.com header.s=qcdkim header.b=kxkKZjc1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231253AbiFXS7b (ORCPT + 65 others); Fri, 24 Jun 2022 14:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiFXS72 (ORCPT ); Fri, 24 Jun 2022 14:59:28 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD847C53B; Fri, 24 Jun 2022 11:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656097168; x=1687633168; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=ZkJlVC384UNpflENkvCHqRU0Ni7nxmoR7Jcb/6VX51s=; b=kxkKZjc1nzvBtRfk30aZIwd+z/+q/wSLgmlRL/gGD4JMmpmzrODj86KZ 9iJ1hO2/+lLdQKXPvy30OstE7e+8GaGBI8QclR9jfgXautYgSMiQ0+0sQ wf47/P08vvlvmWIZcmRXkDNtgnie9i/TAGi9qy2lvNqewxnPJQqDXvywO M=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 24 Jun 2022 11:59:27 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 11:59:27 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 24 Jun 2022 11:59:27 -0700 Received: from [10.110.111.5] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 24 Jun 2022 11:59:26 -0700 Message-ID: <0251f2c9-0f66-7dc9-7fb6-cc41a8dfd918@quicinc.com> Date: Fri, 24 Jun 2022 11:59:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2] brcmfmac: Remove #ifdef guards for PM related functions Content-Language: en-US To: Paul Cercueil CC: Arend Van Spriel , Franky Lin , , , , , References: <20220623124221.18238-1-paul@crapouillou.net> <9f623bb6-8957-0a9a-3eb7-9a209965ea6e@gmail.com> <3013994a-487c-56eb-42d6-b8cdf7615405@quicinc.com> From: Jeff Johnson In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org On 6/24/2022 11:32 AM, Paul Cercueil wrote: > Hi, > > Le ven., juin 24 2022 at 09:31:22 -0700, Jeff Johnson > a écrit : >> On 6/24/2022 2:24 AM, Arend Van Spriel wrote: >>> On 6/23/2022 2:42 PM, Paul Cercueil wrote: >> >> [snip] >> >>>> -    if (sdiodev->freezer) { >>>> +    if (IS_ENABLED(CONFIG_PM_SLEEP) && sdiodev->freezer) { >>> >>> This change is not necessary. sdiodev->freezer will be NULL when >>> CONFIG_PM_SLEEP is not enabled. >> >> but won't the compiler be able to completely optimize the code away if >> the change is present? > > That's correct. But do we want to complexify a bit the code for the sake > of saving a few bytes? I leave that as an open question to the > maintainer, I'm really fine with both options. I'm fine either way as well. I'd have stronger opinions if ath drivers were involved ;)