Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1431530ybb; Thu, 9 Apr 2020 01:54:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJztPhwMS98F2HSeEjfkYLIc+HEJd9gdJUE5Jz+aPcGcoSwgwS30isvL8qDh7F0/6Pd7sUp X-Received: by 2002:a4a:a20b:: with SMTP id m11mr3923396ool.100.1586422492999; Thu, 09 Apr 2020 01:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586422492; cv=none; d=google.com; s=arc-20160816; b=GdHAp+B6LRUm7YxZaO0vzlF6KR4thNBI6IjxLA8PNv5OCuLWX1ubpRcpA47Vq+rhOp PFDmaYBmG9eq9hYrR1zDWe5Al6/B801D7kAKPyMJN7yuytSqLla3Jz10RUATXvSXMaJC rRUpj+GsHGTdqhiBMsWAXKl6GzIg+E9aNTpmdfcmDCjQjjbvZrEoVs+cmuKuA9SAMKbT A5isffus4VqhmnsmOIX7aeHqii2+MoerFPLbcmvGLMh+GYaG35S7D+bVw0dbiEEhAeuq tsfTRj05GWojqMoPiYBHmsf6WLzMOOvP6D4T3ymKLUbYKuyAp0E9wGXDlLK2F4vo0o58 Jgrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=k4PW6psGmSmHvS0YGqRCT3fjZV8xJo96bIqXMa1vosc=; b=uoboBySATRWOsnmpl5b6dmeNFsadFx0p5eaEeNaU+yJqmZFpiBBSVO9JLyQEmTR51t R+SThyUCyRFtpvhRn2y/ktXQeX0En0a9is+A/ZAC+Ru5GmF/NHFLZKnLny2vuRc7MhpP tUZ0q0zhkjxYTKrvqILsY5MI1F8B94GknJTvu7AISkaNa+JtbkQ/kv64XWzs+utO53zm pl0RcjWe2wxlZnR5Vw8O2gmclHY93HcnWMf4m/rT+h9tHueeNQfmc/m8bFvuZ9Pv3pcW tYsVvejA3KSTaA+WLos/Y84o050LevSGJBXYmOtz49V3SWV02YN2++yyhJwGyp0LXQ7L rD+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si3655817otr.174.2020.04.09.01.54.38; Thu, 09 Apr 2020 01:54:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbgDIIwg (ORCPT + 99 others); Thu, 9 Apr 2020 04:52:36 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56882 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725783AbgDIIwf (ORCPT ); Thu, 9 Apr 2020 04:52:35 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6385CDAECBD1790F8FE7; Thu, 9 Apr 2020 16:52:20 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 16:52:14 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH] virtio-balloon: make virtballoon_free_page_report() static Date: Thu, 9 Apr 2020 16:50:47 +0800 Message-ID: <20200409085047.45483-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain 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: drivers/virtio/virtio_balloon.c:168:5: warning: symbol 'virtballoon_free_page_report' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 0ef16566c3f3..8c964b3eebdf 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -165,7 +165,7 @@ static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) } -int virtballoon_free_page_report(struct page_reporting_dev_info *pr_dev_info, +static int virtballoon_free_page_report(struct page_reporting_dev_info *pr_dev_info, struct scatterlist *sg, unsigned int nents) { struct virtio_balloon *vb = -- 2.17.2