Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp295094ybb; Thu, 9 Apr 2020 23:40:02 -0700 (PDT) X-Google-Smtp-Source: APiQypI3TTNcQ71tqMTc5rkad39kC3j2P9P8Is4DUh5dT4e1dJ9rpCYvaOKHkN4wEEZcWf6cfAnp X-Received: by 2002:aed:253c:: with SMTP id v57mr3072745qtc.63.1586500802143; Thu, 09 Apr 2020 23:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586500802; cv=none; d=google.com; s=arc-20160816; b=alLEL1U9ZnJtmGDn9dANn1HGsorEGzb8tUL9PAxC9fFvBm+WUUeFVAn2ilOW6S93EW 7+WB3nO6McsU4j8Tf2Qh1Up8PL62MjRRCxf83R2R3jYj/8/UDFQrZtgZomMA8F+sOVWs CvKNUqm0g3+Y3BjDZuKaTxk1AyBmzij9FFvTsHce6xyhZFpvE+umivF8UA+vTYyhgkU3 LnFSZ1KkecPJ/tX8RdRQb5mNsRAFpVLAN7Mi1eiuZtH6CTformZxBm/7D7c6NUucSWNO eqRAgieSz/OtSflrPOks40+WFLvlq14zIz+kCCa2YiOo9fI1w7/D4PlsE8bdczJcFMkT 7m/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=4mN+3SWkgmpLntgQD4N99boKtj0pdQN5t1bwZbIFyiM=; b=TcipXT1n0Bx6gkQbA6RwGUQCooD0liOr79qIAOCsefxB7iuPJ/GaetEBFBV6leO+DV H8WW4iMV9fA39/V5IUN/gfNptSoTOMkKmrhWv/s36kfmf9WC7PDsFIao0qSm8gjnGrOo MZsl9xX+mm1DcUBgzonGW8/+NkJglr+7do+T7TjGDp/P9BLRsI55AiJCfRVOeF2AK5Wd prYstS04gGjjPDLigKkxiSHXN7heq1nP05DITYSOr0jH9RtZKHXLLPUbBFzz18Wqs4Ri hfZkyscR7GB+Z4adhh7mULBgGex65dTDIhW7LA9IdJUu7xGpRQvnErPCduCz6WwF1m1m GM5g== 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 i11si870340qkh.266.2020.04.09.23.39.47; Thu, 09 Apr 2020 23:40:02 -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 S1725926AbgDJGh5 (ORCPT + 99 others); Fri, 10 Apr 2020 02:37:57 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12635 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725880AbgDJGh4 (ORCPT ); Fri, 10 Apr 2020 02:37:56 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 461E89EE022D5BD0CDE2; 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:46 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH 2/2] sgi-xp: make some symbols static in xpc_main.c Date: Fri, 10 Apr 2020 14:36:18 +0800 Message-ID: <20200410063618.27143-2-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200410063618.27143-1-yanaijie@huawei.com> References: <20200410063618.27143-1-yanaijie@huawei.com> 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/xpc_main.c:62:22: warning: symbol 'xpc_dbg_name' was not declared. Should it be static? drivers/misc/sgi-xp/xpc_main.c:66:15: warning: symbol 'xpc_part_dbg_subname' was not declared. Should it be static? drivers/misc/sgi-xp/xpc_main.c:71:15: warning: symbol 'xpc_chan_dbg_subname' was not declared. Should it be static? drivers/misc/sgi-xp/xpc_main.c:1221:1: warning: symbol 'xpc_init' was not declared. Should it be static? drivers/misc/sgi-xp/xpc_main.c:1323:1: warning: symbol 'xpc_exit' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/misc/sgi-xp/xpc_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c index 79a963105983..d5e097cd556d 100644 --- a/drivers/misc/sgi-xp/xpc_main.c +++ b/drivers/misc/sgi-xp/xpc_main.c @@ -59,16 +59,16 @@ /* define two XPC debug device structures to be used with dev_dbg() et al */ -struct device_driver xpc_dbg_name = { +static struct device_driver xpc_dbg_name = { .name = "xpc" }; -struct device xpc_part_dbg_subname = { +static struct device xpc_part_dbg_subname = { .init_name = "", /* set to "part" at xpc_init() time */ .driver = &xpc_dbg_name }; -struct device xpc_chan_dbg_subname = { +static struct device xpc_chan_dbg_subname = { .init_name = "", /* set to "chan" at xpc_init() time */ .driver = &xpc_dbg_name }; @@ -1217,7 +1217,7 @@ xpc_system_die(struct notifier_block *nb, unsigned long event, void *_die_args) return NOTIFY_DONE; } -int __init +static int __init xpc_init(void) { int ret; @@ -1319,7 +1319,7 @@ xpc_init(void) module_init(xpc_init); -void __exit +static void __exit xpc_exit(void) { xpc_do_exit(xpUnloading); -- 2.17.2