Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp679509iog; Fri, 24 Jun 2022 11:34:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uuFYIy4Nyk95S7yFwDJz/HRT+MpEOSZs5YLgE3bTeVi8XELHqZC8f99GTaIEzsbvdZozvd X-Received: by 2002:a17:907:7e9a:b0:726:34df:6d28 with SMTP id qb26-20020a1709077e9a00b0072634df6d28mr329599ejc.387.1656095655220; Fri, 24 Jun 2022 11:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656095654; cv=none; d=google.com; s=arc-20160816; b=NYH5/r3RyETgfjDFIsQ0fmROyqnuoW2egZsqf917vZHXY5V2tT5zRymA3V9OWlhRv9 WvzQT5s/DXh5E3UkVl7v4/ayCy4p4mO4Az2/+Rb6uXDBaNuSAeisKFjUz8WaJmda9YJf ioVXs2i9LYyh/sgDkZmMlDjX+XfrLZSc8HSOMGDdjSlJdtSGMn6jx2Ej1XUamnZxGVyZ L+g8WORVoqrjGoDyRC6PxIeoCxbpjchTcrYnqgNYRKV7G1a9Qg78WbDbCb5Dhrt3fV5h Tgt8q8WCLvQODdzLWYhKDtEVRaaSgN7ecwCcrRxochjLPs+2smVyESQPk2Jz1TxyiSsP FCww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=9ymJhhAk5CJyVp4Q5xijWVQG2xULEuBtYjgBkRWlJFA=; b=WO8FG+RSrXGJRr8HEcvieBSyp7moREJj+4smUM7rUZmaegMK66tUxzNAVDzsJSu4iv UNyJey+Clo3iLA8ouA58pviODuuGIhFmDKltRZVV3I0HduyzqRYXDhvUQ+SVHLPzBHn1 Vt3KfI9E96sMIBKTOgaw2fABBIvQ2XwHJsyD9Lwt+esDeSKPr2xp6qXQw2xUyt6f3rch 5zs1HH0sivQX9DM9Q2EVnnd4UvZ+nOEhUi4BLC5ANrCjqFXzy5C9tjkL5PQViAzefw19 zfi1l5ywXMZ2xAS6g1khK2Tp+vYJW2c2wAvyLqBuyKP8HVCb6RUWfQh1nIE4hkn1m9Fq CWjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=D1E8UHUp; 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=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a056402441100b00435cfa7c6e6si4685251eda.232.2022.06.24.11.33.53; Fri, 24 Jun 2022 11:34:14 -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=@crapouillou.net header.s=mail header.b=D1E8UHUp; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231332AbiFXScl (ORCPT + 65 others); Fri, 24 Jun 2022 14:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbiFXSck (ORCPT ); Fri, 24 Jun 2022 14:32:40 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FA7D7FD14; Fri, 24 Jun 2022 11:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1656095550; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9ymJhhAk5CJyVp4Q5xijWVQG2xULEuBtYjgBkRWlJFA=; b=D1E8UHUpvscjO4QUep6E7FgQRsid5sBy9GeA6feJcL9MhUhnokIfZP4pd/DwwXgKs648c7 Iy2kC+nFFHfbW1whnwZlFDh/ZZqX1UKvxgmdFBUGiXE31eV6v0QfwP54mpxW6+fmP6NVxy H7bfe4uFk4kxnN2m9LEWLFTbY9CR1n8= Date: Fri, 24 Jun 2022 19:32:20 +0100 From: Paul Cercueil Subject: Re: [PATCH v2] brcmfmac: Remove #ifdef guards for PM related functions To: Jeff Johnson Cc: Arend Van Spriel , Franky Lin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <3013994a-487c-56eb-42d6-b8cdf7615405@quicinc.com> References: <20220623124221.18238-1-paul@crapouillou.net> <9f623bb6-8957-0a9a-3eb7-9a209965ea6e@gmail.com> <3013994a-487c-56eb-42d6-b8cdf7615405@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Hi, Le ven., juin 24 2022 at 09:31:22 -0700, Jeff Johnson=20 a =E9crit : > On 6/24/2022 2:24 AM, Arend Van Spriel wrote: >> On 6/23/2022 2:42 PM, Paul Cercueil wrote: >=20 > [snip] >=20 >>> - if (sdiodev->freezer) { >>> + if (IS_ENABLED(CONFIG_PM_SLEEP) && sdiodev->freezer) { >>=20 >> This change is not necessary. sdiodev->freezer will be NULL when=20 >> =7FCONFIG_PM_SLEEP is not enabled. >=20 > but won't the compiler be able to completely optimize the code away=20 > if the change is present? That's correct. But do we want to complexify a bit the code for the=20 sake of saving a few bytes? I leave that as an open question to the=20 maintainer, I'm really fine with both options. Cheers, -Paul