Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753095Ab3EIRij (ORCPT ); Thu, 9 May 2013 13:38:39 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:39709 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750877Ab3EIRih (ORCPT ); Thu, 9 May 2013 13:38:37 -0400 Date: Thu, 9 May 2013 13:38:36 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Guenter Roeck cc: linux-pm@vger.kernel.org, , , Jean Delvare , Len Brown , Pavel Machek , Jingoo Han Subject: Re: [PATCH 0/3] pm: Introduce __pm to mark power management code In-Reply-To: <1368119366-8716-1-git-send-email-linux@roeck-us.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 848 Lines: 21 On Thu, 9 May 2013, Guenter Roeck wrote: > The following patch series introduces a marker for power management functions > and data. This this marker, #ifdef CONFIG_PM and #ifdef CONFIG_PM_SLEEP > can be removed from most of the code. This ensures that the conditional code > still compiles but is not included in the object file. > > As a side effect, drivers declaring struct dev_pm_ops unconditionally > get a bit smaller if CONFIG_PM_SLEEP is not configured. What about code that depends on CONFIG_PM_RUNTIME? Or code that depends on CONFIG_PM_SLEEP but not on CONFIG_PM_RUNTIME? Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/