Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp379410pxx; Thu, 29 Oct 2020 05:02:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvDPpMUXz7dDj4kKW6W+tixB7pmmpbAHtkMLjluh9WLXHGhp8L9vLPn7zjyx8KSbUi9Adi X-Received: by 2002:a1c:e4c1:: with SMTP id b184mr3991483wmh.73.1603972979219; Thu, 29 Oct 2020 05:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603972979; cv=none; d=google.com; s=arc-20160816; b=YMIi77NfE7KRaOkI/XOuaHIUobOiofquRSXV/u8p0POFN80jDpO0JYbtNLKGHhjd+L 7ru/ahQzGvu5JSLzRmj0WY+SAg+zb7FxeaNK0HZ7jVjbOcssoVriNktGXiADJaSTVVyL 0ZF9VVsZIJw3PH920CsYoJcW3+g4xqFUmX/bbbrh2+JZmKTtLwXcq6lP6L2xO+4b8MRs emXcxc7alShOp63BShd7z65K152Ex4lyjyr3s0cqxj9+2pqk6UTED1+nNjOTxHvq1JUU Rx79tXdJqcst3mKI7HkxYzQbtpCCm+ZBdsXMH/Xr+udVOmKRkyJ3Z7YstRUbVOnG8wph HVNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=woiZmWdNq8CgOzDG9a/Gk1B8c1kdTmdGncJmswiTFHw=; b=AzMt1vS5nRutQ8/B9T2FWD/73af1jaoDmbBlOHQlkug8gHjixNMdWf61PyxFx0Z4tv YD0pxB0oo/c/M2W3XMy2680MUNA9+Z/jf19vJ4uj3Bd/DYgbIMQLjBrqJz0zUGU6hb9q 9ALZTHQwaOPLOhPH7hg/VYrsF9BqrMc9eRkYNlrAthq7EDlDhGauJiQCZhGQhQgzXjAH O+ILBbM/qFBqw9MgSZ3cu7Vi1IlNymFemsFxZek6bDB/TaJao2mIwe8yLJ4n+Q7uzIKt q+A0d+i+xIsWyxUJik5pvEekx2LjjSgF9x47VjOW+PbMgmfNK9+OkDID+GCCkp+3T0Dn 30Ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si1880737edf.351.2020.10.29.05.02.34; Thu, 29 Oct 2020 05:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726081AbgJ2L64 (ORCPT + 99 others); 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 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 2.6.2