From patchwork Thu Mar 17 00:23:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 8606231 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C24DAC0553 for ; Thu, 17 Mar 2016 00:24:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FC9F20351 for ; Thu, 17 Mar 2016 00:24:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 82F702034B for ; Thu, 17 Mar 2016 00:23:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754275AbcCQAX3 (ORCPT ); Wed, 16 Mar 2016 20:23:29 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:35048 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752498AbcCQAX1 (ORCPT ); Wed, 16 Mar 2016 20:23:27 -0400 Received: by mail-pf0-f180.google.com with SMTP id n5so95165486pfn.2; Wed, 16 Mar 2016 17:23:26 -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=alqrIo312KR5PsZUkdDVT6W7npXOlsg1bVrZl2Y9bj0=; b=f9+wWBxjFniWc4MKy7l5jLnj8l3dEziyeoWlZlLbTt81UqzOUMh/ta9003yO1FzZs4 y4a8SFgOHqBCYyft/pdZyc712/xe2lWLb31RqHfcitI/YkUOf/h+bVaUiuH56lHER+f+ A2fma8Le320nr6eavytKKydK9odByB9ynWAU96R5fF+XbzUf+lbPu0HPHlSSV9fmoCgB t/PSoQZmKr95URmj+rOLF8jmM4rABTCa1I/up7LLaZGfqBA9mqcUTNJY6ach2ffDAp3v HPnLV0PPDEpFOMlHTK6tlO48SKKWlA8MKdUUn9C7iZNwHRojaphE2mzFfnU7E+qf6K1M efpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=alqrIo312KR5PsZUkdDVT6W7npXOlsg1bVrZl2Y9bj0=; b=BQBwTbONKmRP0QrEoA4PZLEc2iexWAnogHL73frWHsg8J1skaf+aVHdkOh/S0L6USE mJ/El0R153csVeq7/u2Tu68BMjrEh8L0FOsgXVgKHDIiV+otw9xd6HCs74lF/8AA2Xep R+z+S4uqH9PnooCOGGsowxIYPd2pFdepTRtGCm0w/94P/9HXGTPjMuIY+DQ8eoK1W4H4 FM0L2vMt1SAE+IcVVzPggIs90VDOxDi63ogz/uBedrEZLS4g6m6wBJAaliF71blc+v8u susBxZuXgG2O/DQa2rrcyjPoMZWkXclbDNOaQ4UuhV+B96lWA6mgYGU2Hr9dtuLB2aWP P0/Q== X-Gm-Message-State: AD7BkJI0Gxh5FQNdORXdFGjGd8KZZFi5nf9XLVKPpGzhV1gl7s3GeESRb23Nmr7qp3WQmw== X-Received: by 10.98.73.2 with SMTP id w2mr10344912pfa.106.1458174206194; Wed, 16 Mar 2016 17:23:26 -0700 (PDT) Received: from dl.caveonetworks.com ([64.2.3.194]) by smtp.gmail.com with ESMTPSA id z68sm8333561pfi.19.2016.03.16.17.23.24 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 Mar 2016 17:23:24 -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 u2H0NM2x023648; Wed, 16 Mar 2016 17:23:22 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u2H0NLOP023647; Wed, 16 Mar 2016 17:23:21 -0700 From: David Daney To: "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Robert Richter , Tomasz Nowicki , David Daney Subject: [PATCH] ACPI / property: Export a couple of symbols. Date: Wed, 16 Mar 2016 17:23:19 -0700 Message-Id: <1458174199-23615-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.8 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: David Daney The acpi_dev_prop_read() and acpi_dev_prop_read_single() can be called by drivers. Add EXPORT_SYMBOL_GPL to them to allow use by modular drivers. This makes them consistent with acpi_dev_get_property() and acpi_node_get_property_reference() which are already exported. Signed-off-by: David Daney --- FWIW: We hope to submit soon Cavium Thunder networking patches that fail under modular builds without these exports. drivers/acpi/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 2aee416..de225dc 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -638,6 +638,7 @@ int acpi_dev_prop_read_single(struct acpi_device *adev, const char *propname, { return adev ? acpi_data_prop_read_single(&adev->data, propname, proptype, val) : -EINVAL; } +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) @@ -772,6 +773,7 @@ int acpi_dev_prop_read(struct acpi_device *adev, const char *propname, { return adev ? acpi_data_prop_read(&adev->data, propname, proptype, val, nval) : -EINVAL; } +EXPORT_SYMBOL_GPL(acpi_dev_prop_read); /** * acpi_node_prop_read - retrieve the value of an ACPI property with given name.