From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbbJYOdB (ORCPT ); Sun, 25 Oct 2015 10:33:01 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:51773 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751206AbbJYOc7 (ORCPT ); Sun, 25 Oct 2015 10:32:59 -0400 From: "Rafael J. Wysocki" To: "Rafael J. Wysocki" Cc: Dustin Byford , Wolfram Sang , Mika Westerberg , Jarkko Nikula , Jean Delvare , Andy Shevchenko , linux-i2c@vger.kernel.org, ACPI Devel Maling List , Linux Kernel Mailing List , "Puustinen, Ismo" Subject: Re: [PATCH v4 1/2] acpi: add acpi_preset_companion() stub Date: Sun, 25 Oct 2015 16:01:53 +0100 Message-ID: <5592418.OvKTBkBvLd@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.1.0-rc5+; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1439510358-16664-1-git-send-email-dustin@cumulusnetworks.com> <1445505462-27915-2-git-send-email-dustin@cumulusnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday, October 25, 2015 02:40:10 PM Rafael J. Wysocki wrote: > On Thu, Oct 22, 2015 at 11:17 AM, Dustin Byford > wrote: > > Add a stub for acpi_preset_companion(). Fixes build failures when > > acpi_preset_companion() is used and CONFIG_ACPI is not set. > > > > Signed-off-by: Dustin Byford > > Acked-by: Rafael J. Wysocki > > > --- > > include/linux/acpi.h | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > > index 51a96a8..66564f8 100644 > > --- a/include/linux/acpi.h > > +++ b/include/linux/acpi.h > > @@ -505,6 +505,12 @@ static inline bool has_acpi_companion(struct device *dev) > > return false; > > } > > > > +static inline void acpi_preset_companion(struct device *dev, > > + struct acpi_device *parent, u64 addr) > > +{ > > + return; But of course, the version without the return statement here is better. > > +} > > + > > static inline const char *acpi_dev_name(struct acpi_device *adev) > > { > > return NULL; Thanks, Rafael