From patchwork Fri Dec 13 22:23:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 22386 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5102823FBA for ; Fri, 13 Dec 2013 22:26:39 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z6sf4753016yhz.3 for ; Fri, 13 Dec 2013 14:26:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=RNbYhqjJw3q3mYn6OiPO0CXD1q9fXAdn45RETipvrtw=; b=Pipmx0wLG6eW75eiFJttDloKCfoXltuCz+FsAf+R8WhzHycesPLnXcY7700TkVYI0r SfN8TGWj5Q6k3eMf3TqKL5TDjRL07dtWQrH16jhvfSoBqowRBt5Vwnc0EiPlSMtmtNty r78hfHYzGSrNi3Gb3Nrcp2Qypq+SKaB+pdQzHkL7hauTpFclQ8R04q6F8+Mg92MCPxLV V2S7Jc7DIXhdONzcwRXGLxvNWqY/LJlLfEMbptgVWS99aeGlrgwOyZrwo+M3f1elKXAc qwd/wifhpnlN9PbJF81RCQKO0Op6Fpky5R5kG+kHiL9bzjLnNoSVYEJhUvKVd46CNDX+ Fgzg== X-Gm-Message-State: ALoCoQng28JZsiyMtwQ68cgVssK40NkJE1cBNulKizima5+WCH51OT/FbqmJHGX2X5aC1si7TE5i X-Received: by 10.58.50.161 with SMTP id d1mr1738277veo.24.1386973599116; Fri, 13 Dec 2013 14:26:39 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.36.136 with SMTP id q8ls1150472qej.36.gmail; Fri, 13 Dec 2013 14:26:38 -0800 (PST) X-Received: by 10.58.144.168 with SMTP id sn8mr2209793veb.33.1386973598925; Fri, 13 Dec 2013 14:26:38 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id cy15si1167847veb.106.2013.12.13.14.26.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id if17so1761373vcb.11 for ; Fri, 13 Dec 2013 14:26:38 -0800 (PST) X-Received: by 10.221.23.72 with SMTP id qz8mr1107354vcb.66.1386973598814; Fri, 13 Dec 2013 14:26:38 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp73478vcz; Fri, 13 Dec 2013 14:26:38 -0800 (PST) X-Received: by 10.66.170.138 with SMTP id am10mr6019498pac.51.1386973598040; Fri, 13 Dec 2013 14:26:38 -0800 (PST) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id vv1si2435823pbb.209.2013.12.13.14.26.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id g10so3053983pdj.3 for ; Fri, 13 Dec 2013 14:26:37 -0800 (PST) X-Received: by 10.67.22.67 with SMTP id hq3mr6012915pad.132.1386973597676; Fri, 13 Dec 2013 14:26:37 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id qz9sm7457908pbc.3.2013.12.13.14.26.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:37 -0800 (PST) From: John Stultz To: LKML Cc: Greg KH , Android Kernel Team , Sumit Semwal , Jesse Barker , Colin Cross , Olav Haugan , John Stultz Subject: [PATCH 021/115] gpu: ion: Add EXPORT_SYMBOL to functions Date: Fri, 13 Dec 2013 14:23:55 -0800 Message-Id: <1386973529-4884-22-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> References: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Olav Haugan Several functions in the ion interface is missing EXPORT_SYMBOL. This is needed to allow clients to use these functions from kernel modules. Add EXPORT_SYMBOL to functions that are supposed to be exposed. Signed-off-by: Olav Haugan [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 5872dd3..f536ce5 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -396,6 +396,7 @@ struct ion_handle *ion_alloc(struct ion_client *client, size_t len, return handle; } +EXPORT_SYMBOL(ion_alloc); void ion_free(struct ion_client *client, struct ion_handle *handle) { @@ -413,6 +414,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle) } ion_handle_put(handle); } +EXPORT_SYMBOL(ion_free); int ion_phys(struct ion_client *client, struct ion_handle *handle, ion_phys_addr_t *addr, size_t *len) @@ -438,6 +440,7 @@ int ion_phys(struct ion_client *client, struct ion_handle *handle, ret = buffer->heap->ops->phys(buffer->heap, buffer, addr, len); return ret; } +EXPORT_SYMBOL(ion_phys); static void *ion_buffer_kmap_get(struct ion_buffer *buffer) { @@ -517,6 +520,7 @@ void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle) mutex_unlock(&client->lock); return vaddr; } +EXPORT_SYMBOL(ion_map_kernel); void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle) { @@ -529,6 +533,7 @@ void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle) mutex_unlock(&buffer->lock); mutex_unlock(&client->lock); } +EXPORT_SYMBOL(ion_unmap_kernel); static int ion_debug_client_show(struct seq_file *s, void *unused) { @@ -654,6 +659,7 @@ void ion_client_destroy(struct ion_client *client) kfree(client); } +EXPORT_SYMBOL(ion_client_destroy); struct sg_table *ion_sg_table(struct ion_client *client, struct ion_handle *handle) @@ -673,6 +679,7 @@ struct sg_table *ion_sg_table(struct ion_client *client, mutex_unlock(&client->lock); return table; } +EXPORT_SYMBOL(ion_sg_table); static void ion_buffer_sync_for_device(struct ion_buffer *buffer, struct device *dev, @@ -924,6 +931,7 @@ int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle) } return fd; } +EXPORT_SYMBOL(ion_share_dma_buf); struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd) { @@ -960,6 +968,7 @@ end: dma_buf_put(dmabuf); return handle; } +EXPORT_SYMBOL(ion_import_dma_buf); static int ion_sync_for_device(struct ion_client *client, int fd) {