Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp522050ybb; Fri, 10 Apr 2020 04:59:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKpGhS/oeUGfgt6xcq7PElnjO+3qoLx8VUyr2vFOXg1bZQAGr/oUfeeaXaaJdX3BDPrr4k9 X-Received: by 2002:a05:6214:17c8:: with SMTP id cu8mr4925214qvb.178.1586519950377; Fri, 10 Apr 2020 04:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586519950; cv=none; d=google.com; s=arc-20160816; b=BZ21vCjNk6o3XITwotjf4kGKf809kI9HNBAiWGqdDb77vOoSUet3M0Kq9RPnMXmExr BdJ1oAod0qvG3Y9gJLyWecRgO3Nh4cSpqeEFAKiM1ub+qC46WpyQNVfjNiK1/z3bFeJQ 69WcLjh46Fgqm5zNefH6TEGrJpE+TILcP3OK+bOAfCF/5KROxNYgscYvht25U4epeEvF i+PHynoT+kHmzDq4EADXKzd45UfVnKXcPi4aJ+4uyma+/HgxueQdDaEFyzr0CzEf4ZMZ WC48D0nMBPwoeC5K9S07LMjbHAvbpmLlf6CayUOwoCpT1rvy+Mb20W12X3qjNLIhln9I n0hw== 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=647cVPWc+YIIKzgawgzwMIzu99YwOeHpwjcG9Mj5Oz0=; b=T5vpZlJtLHgIBLiU6ESwwpEuj20o1dOhgz/aklIEo0XrpMHOubER8gFVzpCvTulF6T ajqbt+mmPDrRwxZz51Pnih4HiwBS2kvxTexU8F45U/YDooDquKQTOpkh059dxiPHE1bM Uu/8B/Qw920jDRgY/oNSYjTqmrJzjuUVXfMySW/kt6nDCC7C9US72qRGTB3e/bcuQSmx d3l36F8xRHFZ7Qcyd8k+eYqqXXfmqP0WlX/qYZmjidOu5E/xZxla8G1inJucQIX9+DGy H33i8OSd+BHY0IXbdQJ/epRKJLrJBStHiGwgIHjsddgCcPcukgEudr1BfCCxVRtfdxz/ itvw== 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 z13si935590qvy.67.2020.04.10.04.58.55; Fri, 10 Apr 2020 04:59:10 -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 S1726841AbgDJL4g (ORCPT + 99 others); Fri, 10 Apr 2020 07:56:36 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:46008 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726826AbgDJL4f (ORCPT ); Fri, 10 Apr 2020 07:56:35 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 036C678809575001BBEA; Fri, 10 Apr 2020 19:56:34 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 19:56:23 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] xen/pvcalls: Make pvcalls_back_global static Date: Fri, 10 Apr 2020 19:56:20 +0800 Message-ID: <20200410115620.33024-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/xen/pvcalls-back.c:30:3: warning: symbol 'pvcalls_back_global' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/xen/pvcalls-back.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/pvcalls-back.c b/drivers/xen/pvcalls-back.c index cf4ce3e9358d..4807704f8d69 100644 --- a/drivers/xen/pvcalls-back.c +++ b/drivers/xen/pvcalls-back.c @@ -24,7 +24,7 @@ #define PVCALLS_VERSIONS "1" #define MAX_RING_ORDER XENBUS_MAX_RING_GRANT_ORDER -struct pvcalls_back_global { +static struct pvcalls_back_global { struct list_head frontends; struct semaphore frontends_lock; } pvcalls_back_global; -- 2.17.1