Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1733850pxu; Thu, 17 Dec 2020 18:05:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8mHupWg0yHesfhEdR3oXU+Oi1oZRqnP90PMFUsJg7AbMqSjy9KMtXexBmwEoKYpEB937a X-Received: by 2002:a17:907:20a4:: with SMTP id pw4mr1752615ejb.499.1608257141089; Thu, 17 Dec 2020 18:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608257141; cv=none; d=google.com; s=arc-20160816; b=odfo0VXZKAbhprIrgNE4rAoNkfxzSNiTiuSPMlAS3s+Lgfk9AWaehqDNk2fAGRJSKq yRELpmr5r8Ea8kyX5OGZN0qpB/u+OwVmrIh3fs58i4Mu5k4AbCuFt+NB2HE7wFIfyaII zczVzwwX6Fi/QXsYj1b97G0r7z8inyL39n74T83V4CSuJeJwvm6ABbqNw9v4SrhXjenQ ovfWfaOyUsooJCXcfKY2yX6nlKPEEwJp78VSQIEAIZQU5uqqX36++0oIX5Ue+XpIuSN0 72O9kwkPmwylX4Li9upe21Sn7HGxs8dL0sdfX3R1tF25lRjQfcr3a/S9QppquvTj2boT sO6A== 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=0XW2cObcsZlGbpLUxUhH2gFqEmh1GyvXWUJAL8/6A2Y=; b=P77BQ7kqdoRemZhfAFF3cYkW0UThF1YtMwo2bkoqe0DmXNjnb6p0lx+NQgoP0FOUS9 zdcIES++YXVYQoerulYaXGTWNU27X8AiX5N8pZU0n2Y1C5xOGXuDBd1ZwGuu290bLOHg 5q1kmNWOw7heOKRYnQYJDG9+BKBiINzTpPqUr+KvS039F9OtyHj/DK5e3Ub8HbDH0lCr VCV/X297UZ7XvHKCK0gE78C8nv7WqXz+6VoUvjXAMOIdmApaD+E1a9xo55l6qpxnMbIu fmVF6fXafXEkzAKvVKFBxoA3BYRnWqv11ySeyQOkf2CGPFLtx0KT/dxw4pSOYFuSa+Y8 /8+A== 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 g8si3762825eje.472.2020.12.17.18.05.12; Thu, 17 Dec 2020 18:05:41 -0800 (PST) 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 S1727177AbgLRBk6 (ORCPT + 99 others); Thu, 17 Dec 2020 20:40:58 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:9225 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726851AbgLRBk5 (ORCPT ); Thu, 17 Dec 2020 20:40:57 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Cxs3c4W9dzkrfv; Fri, 18 Dec 2020 09:39:24 +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.498.0; Fri, 18 Dec 2020 09:40:08 +0800 From: Zou Wei To: , CC: , , , , Zou Wei Subject: [PATCH -next] vdpa: Mark macaddr_buf with static keyword Date: Fri, 18 Dec 2020 09:51:35 +0800 Message-ID: <1608256295-69649-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/vdpa/vdpa_sim/vdpa_sim_net.c:36:4: warning: symbol 'macaddr_buf' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c index c10b698..f048242 100644 --- a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c @@ -33,7 +33,7 @@ static char *macaddr; module_param(macaddr, charp, 0); MODULE_PARM_DESC(macaddr, "Ethernet MAC address"); -u8 macaddr_buf[ETH_ALEN]; +static u8 macaddr_buf[ETH_ALEN]; static struct vdpasim *vdpasim_net_dev; -- 2.6.2