Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp294468ybb; Thu, 9 Apr 2020 23:38:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLI4t3xMTmEqkc3f+u79G6x1JSt//filEfaICR9cIcGLS/2FBcBl57SRumC+QBK90cBs/ap X-Received: by 2002:a37:67c8:: with SMTP id b191mr2763391qkc.166.1586500738118; Thu, 09 Apr 2020 23:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586500738; cv=none; d=google.com; s=arc-20160816; b=zAu31VyM0jLs5+DnMkx86v5BtOg6kp3gfq96wB1T+5KrLAp3wX1Xt3usHhsGvGZ3/p 1iOP5cjYWZ3I+cJ48W9PmVBQTnxUm2HH12talo8J9nLkTGJ8QMDIDCQOlG4PtAY5ilsv tNYhaG109dD0YOpr/9oB72S1gJcfMZU9K8rGR34o+U/wDUgJ6Mn7VKppYKV0jd0ycY8R 6Hn0tOj/ok67o/VXpPzI3q44IdGprl0oZHUBm8HL/L0pcjJeuneRlRpbO6h8av05zsIZ uHQKf/QhPlQI+WpmJEBTqcjLzftEINTIjCozrdIHWFcy9NKh8clGEn7i0f7Fe+cftGcX vgoQ== 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=Aq1Cfl70QeiKDZA9XvxsPaRNAqghgqOUKylR8uZ3ul0=; b=q5l5JpskZkq11Hm6zEWmGriXuON9kgV4eUoYq/Csm6wxWJF+ZmMV+U4R91oxunDAOo K/nHBwNERf21f7BYFBExdoz0XB376ovy4rft4sc4h6yAKwHLu2oO4zx0i5zFgunHlQQH lVAp3TUus0RBiQhZJWvkITr+md75At2ViDwxhMB3sW39XGe7uxhRKU40UnrDwfxe3ch9 tlFmE9Jr5EWQQ6KlFGRjT1xOuJA7MS8N681mEQq5Kc5i04Mq8JzeFBdO9bLtuPrdhdHS cW0qnt90iFjokrapbT4x//u2lJ3JbW2W1Z79o04MTwrhZcOr54Wqr9RuHImzJEHR7mRj WJHw== 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 z188si892805qkd.216.2020.04.09.23.38.43; Thu, 09 Apr 2020 23:38:58 -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 S1725993AbgDJGhz (ORCPT + 99 others); Fri, 10 Apr 2020 02:37:55 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12636 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725861AbgDJGhz (ORCPT ); Fri, 10 Apr 2020 02:37:55 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4B03FD5C246B5C79CE4B; Fri, 10 Apr 2020 14:37:54 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 14:37:45 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH 1/2] sgi-xp: make some symbols static in xpnet.c Date: Fri, 10 Apr 2020 14:36:17 +0800 Message-ID: <20200410063618.27143-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/misc/sgi-xp/xpnet.c:99:19: warning: symbol 'xpnet_device' was not declared. Should it be static? drivers/misc/sgi-xp/xpnet.c:134:22: warning: symbol 'xpnet_dbg_name' was not declared. Should it be static? drivers/misc/sgi-xp/xpnet.c:138:15: warning: symbol 'xpnet_dbg_subname' was not declared. Should it be static? drivers/misc/sgi-xp/xpnet.c:143:15: warning: symbol 'xpnet' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/misc/sgi-xp/xpnet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c index ada94e6a3c91..837d6c3fe69c 100644 --- a/drivers/misc/sgi-xp/xpnet.c +++ b/drivers/misc/sgi-xp/xpnet.c @@ -96,7 +96,7 @@ struct xpnet_pending_msg { atomic_t use_count; }; -struct net_device *xpnet_device; +static struct net_device *xpnet_device; /* * When we are notified of other partitions activating, we add them to @@ -131,16 +131,16 @@ static DEFINE_SPINLOCK(xpnet_broadcast_lock); /* Define the XPNET debug device structures to be used with dev_dbg() et al */ -struct device_driver xpnet_dbg_name = { +static struct device_driver xpnet_dbg_name = { .name = "xpnet" }; -struct device xpnet_dbg_subname = { +static struct device xpnet_dbg_subname = { .init_name = "", /* set to "" */ .driver = &xpnet_dbg_name }; -struct device *xpnet = &xpnet_dbg_subname; +static struct device *xpnet = &xpnet_dbg_subname; /* * Packet was recevied by XPC and forwarded to us. -- 2.17.2