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 B08C1C43334 for ; Tue, 19 Jul 2022 21:48:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240349AbiGSVsD (ORCPT ); Tue, 19 Jul 2022 17:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240580AbiGSVrr (ORCPT ); Tue, 19 Jul 2022 17:47:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 332DB101DB; Tue, 19 Jul 2022 14:47:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B73FA61ACE; Tue, 19 Jul 2022 21:47:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D677AC341C6; Tue, 19 Jul 2022 21:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658267253; bh=O42Z258w1PIvhpxARBaZzfdZtfjXU2aRWZ6tg2rNQOQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=B9oF9d15v/hGpyZDpEV+SpZWCp9lZrWaF9C+BJRV383twPU0WAoq/O/BYEWsHIT99 kWGXGLdw7ijk6H0bJzVjEZNMZzLwTp/29GERcg7smrYFW/GdYxvrYCRaydyFUOUaR7 GZxwxZTHOfpN9+W31pS4mvfyHiAhlLPirFtsLVsh1M8GmUrTQzlIn3BAnyo1Im4sTy XkXB4bfP7TfdbbRssRn1TYKwmIxMaFGfKX9EVeNfKRMreenc0Ibe62lbI2AN2G/NCU kMdQoWnYUSP/P/81B8PUMvwmOhXUQ5/YpGahMbzRWN+K64zi28k5GhZTlmtZMEcLTZ UnVw0QFbptxGg== Date: Tue, 19 Jul 2022 16:47:31 -0500 From: Bjorn Helgaas To: Arnd Bergmann Cc: "Sudip Mukherjee (Codethink)" , Richard Zhu , Lucas Stach , Lorenzo Pieralisi , Rob Herring , =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Liam Girdwood , Mark Brown , linux-pci , Linux ARM , Linux Kernel Mailing List , Linux-Next Mailing List Subject: Re: build failure of next-20220718 due to 'imx6_pcie_host_exit' defined but not used Message-ID: <20220719214731.GA1582549@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Tue, Jul 19, 2022 at 11:16:40PM +0200, Arnd Bergmann wrote: > On Tue, Jul 19, 2022 at 11:04 PM Bjorn Helgaas wrote: > > > > commit 0e4daeaa52ca ("PCI: imx6: Convert to NOIRQ_SYSTEM_SLEEP_PM_OPS()") > > Author: Bjorn Helgaas > > Date: Tue Jul 19 15:50:18 2022 -0500 > > > > PCI: imx6: Convert to NOIRQ_SYSTEM_SLEEP_PM_OPS() > > > > Replace SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() with NOIRQ_SYSTEM_SLEEP_PM_OPS(), > > which has the advantage that the compiler always sees the PM callbacks as > > referenced, so they don't need to be wrapped with "#ifdef CONFIG_PM_SLEEP" > > or tagged with "__maybe_unused" to avoid "defined but not used" warnings. > > > > See 1a3c7bb08826 ("PM: core: Add new *_PM_OPS macros, deprecate old ones"). > > > > Signed-off-by: Bjorn Helgaas > > Reviewed-by: Arnd Bergmann Thanks! And sorry about being crabby earlier. If this allows us to get rid of those #ifdefs and __maybe_unused, it's a great improvement! Bjorn