Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685AbbHENVO (ORCPT ); Wed, 5 Aug 2015 09:21:14 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:58117 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751239AbbHENVM (ORCPT ); Wed, 5 Aug 2015 09:21:12 -0400 From: "Rafael J. Wysocki" To: David Daney Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Len Brown , Tomasz Nowicki , Robert Richter , David Daney Subject: Re: [PATCH] acpi, property: Export acpi_dev_prop_read_single call. Date: Wed, 05 Aug 2015 15:48:17 +0200 Message-ID: <5621301.c1YGTkGNQk@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.1.0-rc5+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1438729319-9146-1-git-send-email-ddaney.cavm@gmail.com> References: <1438729319-9146-1-git-send-email-ddaney.cavm@gmail.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 Content-Length: 1771 Lines: 47 On Tuesday, August 04, 2015 04:01:59 PM David Daney wrote: > From: Tomasz Nowicki > > Fixes the following build error when building drivers as modules: > > ERROR: "acpi_dev_prop_read_single" [drivers/net/phy/mdio-octeon.ko] undefined! > ERROR: "acpi_dev_prop_read_single" [drivers/net/ethernet/cavium/thunder/thunder_bgx.ko] undefined! Can you please tell me why the drivers in question use that function directly, although they aren't supposed to? Clearly, their authors had not tried to build them as modules or they would have noticed the problem at the development stage already. What would be wrong with using the generic device properties API instead? > Reported-by: Andreas Schwab > Signed-off-by: Tomasz Nowicki > Signed-off-by: Robert Richter > Signed-off-by: David Daney > --- > drivers/acpi/property.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c > index 7836e2e..237e3c5 100644 > --- a/drivers/acpi/property.c > +++ b/drivers/acpi/property.c > @@ -432,6 +432,7 @@ int acpi_dev_prop_read_single(struct acpi_device *adev, const char *propname, > } > return ret; > } > +EXPORT_SYMBOL_GPL(acpi_dev_prop_read_single); > > static int acpi_copy_property_array_u8(const union acpi_object *items, u8 *val, > size_t nval) > -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center. -- 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/