From patchwork Mon Apr 22 18:49:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Gomez Fuente X-Patchwork-Id: 10911719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 70ED214DB for ; Mon, 22 Apr 2019 23:55:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 672B0287C1 for ; Mon, 22 Apr 2019 23:55:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BDA4287C5; Mon, 22 Apr 2019 23:55:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F16D2287C1 for ; Mon, 22 Apr 2019 23:55:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 767CC891F9; Mon, 22 Apr 2019 23:55:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id BC87D890DF for ; Mon, 22 Apr 2019 18:49:40 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id c6so11144031wrm.1 for ; Mon, 22 Apr 2019 11:49:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=O02w/qPvou1PNbrBp7wY+BGgwS7HeOGpfaENp5+6Q6U=; b=WSQ6E08DghyFUoowrIZczJSGnK2fyr1mQckuB4FW1tywtgnxifES4KPO5DKB/Vm2hM pqV3AZs+ngUyURRQC3XpJTBVpuXwNtfym/ULnUGXee7mp1Iz2tDoZI09As7+tcGnVssH jt7ufY/fgvWBikHTjNd8BM6Q0Z5s6ycHfu+PjxOd5KcXLR/VdgkE/vnc/Wl7oko6sfOf 8qeS2BXLrmNs0FJXJ4W8Pj8UaykeKlQm8bvbEkV35r4LiGCQGidUQruPIZr6GbqpSpCm DPDfFIrCtbZM3dyiFfpoTInPLCpe9vIpT0WDNqMx0gAGNUhbreP7tuYP0XHy9s6JAbHs xpow== X-Gm-Message-State: APjAAAXlY6Fo3y9RukOlN08JdByNSlSOgTOawFGgtCkx+maXCNR6UHNB /Z0p+fbHP9/aIO6XSxGeTow= X-Google-Smtp-Source: APXvYqybhYFQSuGjgzO43mwbzoWQoAGQZY7en7XXAlkqEP3Zmxc/HRVjOAtwlb1r4QSVdGvVJPYMpA== X-Received: by 2002:a05:6000:124a:: with SMTP id j10mr14642007wrx.24.1555958979434; Mon, 22 Apr 2019 11:49:39 -0700 (PDT) Received: from luna.home (2.154.17.217.dyn.user.ono.com. [2.154.17.217]) by smtp.gmail.com with ESMTPSA id o2sm10926570wrs.89.2019.04.22.11.49.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Apr 2019 11:49:38 -0700 (PDT) From: Oscar Gomez Fuente To: oscargomezf@gmail.com Subject: [PATCH] staging: ion: solve warning symbol was not declared Date: Mon, 22 Apr 2019 20:49:27 +0200 Message-Id: <1555958967-29149-1-git-send-email-oscargomezf@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Mon, 22 Apr 2019 23:55:04 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=O02w/qPvou1PNbrBp7wY+BGgwS7HeOGpfaENp5+6Q6U=; b=ehY9PW61YcSuoLrSg9qzwstMVo1CzH0IQ6UxLAjEaXn3shl892d4YzBMBY5mBnwM8V DwGS3uZ/d8ddKorOPpn5ZCSzrYIOpr8of+zPa7trXN9I3ebG0Wpax3+qxY+SG+q+tEN7 QxW6YBuSzoh95E5acXyLKAarlwY9yNkQ/+RyK0nyqWlqCUIU+SLKNSXdUvhbG2HzetfK QfeCvCjCnHyGMYNCRbEznYwMyzNE68Vjw3gh9ItO7XXfD3Jb+SX8x2tdeTwHgGVaQ/fv JjJ8vOZKE2CA28pv5mdSXgorbEimtZavIrCqT+FLkl+vACGCby/9mD0GihKkx2sGqdUy RBWg== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, tkjos@android.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, arve@android.com, joel@joelfernandes.org, maco@android.com, christian@brauner.io MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP These changes solve warning symbol was not declared in the functions: ion_carveout_heap_create and ion_chunk_heap_create Signed-off-by: Oscar Gomez Fuente --- drivers/staging/android/ion/ion_carveout_heap.c | 2 +- drivers/staging/android/ion/ion_chunk_heap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/ion/ion_carveout_heap.c b/drivers/staging/android/ion/ion_carveout_heap.c index bb9d614..3f359ae 100644 --- a/drivers/staging/android/ion/ion_carveout_heap.c +++ b/drivers/staging/android/ion/ion_carveout_heap.c @@ -103,7 +103,7 @@ static struct ion_heap_ops carveout_heap_ops = { .unmap_kernel = ion_heap_unmap_kernel, }; -struct ion_heap *ion_carveout_heap_create(phys_addr_t base, size_t size) +static inline struct ion_heap *ion_carveout_heap_create(phys_addr_t base, size_t size) { struct ion_carveout_heap *carveout_heap; int ret; diff --git a/drivers/staging/android/ion/ion_chunk_heap.c b/drivers/staging/android/ion/ion_chunk_heap.c index 3cdde9c..7e44344 100644 --- a/drivers/staging/android/ion/ion_chunk_heap.c +++ b/drivers/staging/android/ion/ion_chunk_heap.c @@ -107,7 +107,7 @@ static struct ion_heap_ops chunk_heap_ops = { .unmap_kernel = ion_heap_unmap_kernel, }; -struct ion_heap *ion_chunk_heap_create(phys_addr_t base, size_t size, size_t chunk_size) +static inline struct ion_heap *ion_chunk_heap_create(phys_addr_t base, size_t size, size_t chunk_size) { struct ion_chunk_heap *chunk_heap; int ret;