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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 109BDC4321E for ; Wed, 30 Nov 2022 07:43:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234125AbiK3Hnk (ORCPT ); Wed, 30 Nov 2022 02:43:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230049AbiK3Hni (ORCPT ); Wed, 30 Nov 2022 02:43:38 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09AD13FB90; Tue, 29 Nov 2022 23:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669794217; x=1701330217; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CqntLupJyqVrXhc+FeWD3IIBjSAAy4erEqvvAk+xl78=; b=imz+2SO03IQ8YBHoSXaKJcdnjUiSZeSwRsetbR+/YpDduZWD9ra4w+Yx NaLDRez1KXSbW3/17T1Y79kYX99yHJmBIKYfUVhStYEPZAq/Nar8corWO kWkHqFF32tbN1VIZiS2kssd0Mj67b+INuD7BCWj47gKh5FLIhD8EEexEa K+4gWUwKE+aN9cNHsWzj+lRirLVgUeDFqPCpXq3nKDeaBj1ZRaDuzZ/74 QdBj3gY0ri1LLCRZbzWy4o4CmlYGG465OGsRfFqy6UjX6PbMn74lVHyVc B1M2PCJnGA5upeBJAnhr6VuQOb0e2y41Q8h2V0691xseL0wZjFuIT6agQ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="401610157" X-IronPort-AV: E=Sophos;i="5.96,205,1665471600"; d="scan'208";a="401610157" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2022 23:43:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="676730844" X-IronPort-AV: E=Sophos;i="5.96,205,1665471600"; d="scan'208";a="676730844" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 29 Nov 2022 23:43:33 -0800 Received: by black.fi.intel.com (Postfix, from userid 1001) id 1A6B710E; Wed, 30 Nov 2022 09:43:59 +0200 (EET) Date: Wed, 30 Nov 2022 09:43:59 +0200 From: Mika Westerberg To: Andy Shevchenko Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Jamet , Yehezkel Bernat , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [resend, PATCH net-next v1 1/2] net: thunderbolt: Switch from __maybe_unused to pm_sleep_ptr() etc Message-ID: References: <20221129161359.75792-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221129161359.75792-1-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 29, 2022 at 06:13:58PM +0200, Andy Shevchenko wrote: > Letting the compiler remove these functions when the kernel is built > without CONFIG_PM_SLEEP support is simpler and less heavier for builds > than the use of __maybe_unused attributes. > > Signed-off-by: Andy Shevchenko Acked-by: Mika Westerberg