From patchwork Tue Aug 4 23:01:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 6944951 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7BD2D9F38B for ; Tue, 4 Aug 2015 23:02:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 653B320546 for ; Tue, 4 Aug 2015 23:02:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BDEC20585 for ; Tue, 4 Aug 2015 23:02:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753535AbbHDXCH (ORCPT ); Tue, 4 Aug 2015 19:02:07 -0400 Received: from mail-ig0-f178.google.com ([209.85.213.178]:38147 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463AbbHDXCG (ORCPT ); Tue, 4 Aug 2015 19:02:06 -0400 Received: by iggf3 with SMTP id f3so21669859igg.1; Tue, 04 Aug 2015 16:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=wO9utNYJrcdT1OQ86MLMnpTjgv6z1sXsANMLgHyJ3DQ=; b=i9g1r8hHo3ZH8Prz79vOGXRYX0qGhG09TDLWlEFkGjRpkx+w6xgS9fwup0hUPeoYDj e4+EDFnpQzsu+ivTz/kM9EiFWbc7ruZD9+g8gVmHZXsqSFOGNjOzft1FgEYAGhZUsen0 qhhWbenm0ReihuQeRQI8A6vZjlKhN769XzBccsoF34HXKLGsh3TGCt4rjePIurjX2/Vz qHiBNIp09MBd20GDUQCCXP9jJDvZuDuVysVrz/28rsrEB+pDG2ZCs4eIKCINgbxJrhjB q4MZ4ymOAjHNbHyhwfk+Q+EIUtEmO7X/Bgw0o+91/cnXf6UjdtXp5OkkYECZ5GKbTD0J UfFg== X-Received: by 10.50.61.179 with SMTP id q19mr2518088igr.24.1438729325553; Tue, 04 Aug 2015 16:02:05 -0700 (PDT) Received: from dl.caveonetworks.com (64.2.3.194.ptr.us.xo.net. [64.2.3.194]) by smtp.gmail.com with ESMTPSA id p79sm653356iop.15.2015.08.04.16.02.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Aug 2015 16:02:04 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id t74N2266009179; Tue, 4 Aug 2015 16:02:02 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id t74N21JR009178; Tue, 4 Aug 2015 16:02:01 -0700 From: David Daney To: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Len Brown , "Rafael J. Wysocki" Cc: Tomasz Nowicki , Robert Richter , David Daney Subject: [PATCH] acpi, property: Export acpi_dev_prop_read_single call. Date: Tue, 4 Aug 2015 16:01:59 -0700 Message-Id: <1438729319-9146-1-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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! 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)