From patchwork Thu Oct 29 12:10:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zou Wei X-Patchwork-Id: 68389 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1kY6a6-005k7k-L0; Thu, 29 Oct 2020 11:59:03 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725957AbgJ2L64 (ORCPT + 1 other); Thu, 29 Oct 2020 07:58:56 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7008 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgJ2L6z (ORCPT ); Thu, 29 Oct 2020 07:58:55 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CMP9W0qlLzhcjb; Thu, 29 Oct 2020 19:58:55 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 19:58:45 +0800 From: Zou Wei To: , , , , , , CC: , , , , Zou Wei Subject: [PATCH -next] dma-buf: heaps: Make sys_heap static Date: Thu, 29 Oct 2020 20:10:43 +0800 Message-ID: <1603973443-64798-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no Fix the following sparse warning: drivers/dma-buf/heaps/system_heap.c:23:17: warning: symbol 'sys_heap' was not declared. Should it be static? sys_heap has only call within system_heap.c It should be static Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/dma-buf/heaps/system_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/heaps/system_heap.c b/drivers/dma-buf/heaps/system_heap.c index 0bf688e..41502bf 100644 --- a/drivers/dma-buf/heaps/system_heap.c +++ b/drivers/dma-buf/heaps/system_heap.c @@ -20,7 +20,7 @@ #include "heap-helpers.h" -struct dma_heap *sys_heap; +static struct dma_heap *sys_heap; static void system_heap_free(struct heap_helper_buffer *buffer) {