Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp256449ybz; Fri, 17 Apr 2020 00:12:08 -0700 (PDT) X-Google-Smtp-Source: APiQypKme33YQXJEIgex93z2f1hyj61O81MqrG13/cJgzm+2Vl5UCRkaijRyMVclE/QZtYSPvV8y X-Received: by 2002:a17:907:2645:: with SMTP id ar5mr1692922ejc.75.1587107528232; Fri, 17 Apr 2020 00:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107528; cv=none; d=google.com; s=arc-20160816; b=eBpyLU1m+VwmAslcwnnv2ONGZ1xHozq4JVLfNclawMdpwup9WS0HLx+MXFeUohB2NQ XczDdNZ/pIfBvXLSb5tmMzA6JMRAIWxTTfrPuqS9uq+SBC26Nod1qZf+75Ii8xwBJDyy uXQTNWDcYGdA5OuAfW5cr076rGl4SXrbMp0S6kMtd8Tjiq2uvUjAzsp5WBFcNFJtasYP S0/Y78W1eFosIM5LfkgMSBEt87z3guHXXH5ho1tyvIXUX7GRT6gV9/sVbmg6nkWnhQ7b 4PebL4vqKZXwc0zQ66fOwbw5El2uPIzLamV/vXnhcVpC4TH3DtOV79wY3nPdz/cWEUDf bo9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rcQG0+svx/gLV47ioioGk1KSAFWixnrRaQnYfebFY+c=; b=GBnrrhYnyEor7izXLYKfxAm8qNtJfYQaWN8g6d9HuTTBbZmQX0z6X/4ioRQsoYGCNr PqMVP13ukPRw2+9qnm2oYTwFS5VZYbs27kCgJLpSRHmz/5xz84IhqWF6QI9RU03MGPym KZF//zt27UFqQ8yETrhg82Gksuj11+4Hfww3adoq0StTok5rB9mhwThxVZR4IISnVoze Jotcn3G7NCuX/fC1rp9vlC327Q7l6roktmJzlb23jBJ55levNIw/nDK5aCFDUz0vuCYA qbhnc1wBn02Lby4FI9GSOF/2jUsIfkPWTv+TLplqzuWGgrxFywh4hy6YzPmXgGIEJLhK wLeg== 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 dm27si3215725edb.49.2020.04.17.00.11.44; Fri, 17 Apr 2020 00:12:08 -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 S1728856AbgDQHJu (ORCPT + 99 others); Fri, 17 Apr 2020 03:09:50 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2392 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728155AbgDQHJs (ORCPT ); Fri, 17 Apr 2020 03:09:48 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6BE99B2A999737E74F7D; Fri, 17 Apr 2020 15:09:46 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:09:39 +0800 From: Jason Yan To: , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] dma-debug: make __dma_entry_alloc_check_leak() static Date: Fri, 17 Apr 2020 15:36:05 +0800 Message-ID: <20200417073605.43039-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: kernel/dma/debug.c:659:6: warning: symbol '__dma_entry_alloc_check_leak' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- kernel/dma/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 9e1777c81f55..36c962a86bf2 100644 --- a/kernel/dma/debug.c +++ b/kernel/dma/debug.c @@ -656,7 +656,7 @@ static struct dma_debug_entry *__dma_entry_alloc(void) return entry; } -void __dma_entry_alloc_check_leak(void) +static void __dma_entry_alloc_check_leak(void) { u32 tmp = nr_total_entries % nr_prealloc_entries; -- 2.21.1