Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp853426pxf; Wed, 24 Mar 2021 18:35:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyinqZnle7UO7MMyVFvp/GO72B7OufFj24TSjCmOJQwMPKU7AbQV/AQ6C+EuY0rFiQmRIpA X-Received: by 2002:a05:6402:382:: with SMTP id o2mr6633195edv.238.1616636134465; Wed, 24 Mar 2021 18:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616636134; cv=none; d=google.com; s=arc-20160816; b=weMpLndiKxwj3uVcpE9g+1BYDM7ZD6kGEdCt7gu6CUe1e1bfwpWJVs4MRTVa7CMt69 2YardYNQZBfRWHpJpunSWZ/k+XMKyiBs3QOCEQiEPRMpZ+MFRgcUZZP1rnSdpJWdx9FF r8Z2EO+2gdIdxrb9Pf2VtXx1pghL59iTriZhsjA92pqAowlmnlfqh4v8545j750OHm5H 0CDM1XYMwXr8QXUEVWHkDLR3xIvU4W8Qa/IVJ7+I/XQVcwlHtGdrR7kw1N/E+cmtKhwQ rFkMag8Io/ealX2iF7fxB/uazK+2SfyFKFhewEy+dHuWffOrSkHpqSOx1NystWpbb88i hGBQ== 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=iX+Lwk+st8NciMuttzE/DzystmdKZCq6F9Kl3FTrv9k=; b=A8aHNPPbAvIv5I6fwkf1X9QtG8V2LmGLOyHl4MG/MtFLiQK2N7+Lg41M61p2UWHm5i alO72kX4c1kwjRVBMByBRZT99oD2w5AIE4/Q7EjGoAntvlhOEhiyCk8iVuBNDRU9LfRh 3wW18JND5iuUrbNOoi65ymU1f+XlwgNnUOcrmm4L5AgYVXQdDTu7ImPStpFaDvQpNKbV kDDqQhkVmslBtBoPxCkOEhPA7562X0q8E/6QHdKsIhq/HFIbRShxoKc14kLu0KNshj/t 394CRM5XgIWYVJHZzGH+uPdCFIqQr54v56Fh6b3a5ol1Rul8RVlO2cqXmFT9c28Apyxl OZ4A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga18si3056385ejb.632.2021.03.24.18.35.11; Wed, 24 Mar 2021 18:35:34 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232308AbhCXICw (ORCPT + 99 others); Wed, 24 Mar 2021 04:02:52 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13677 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbhCXICc (ORCPT ); Wed, 24 Mar 2021 04:02:32 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F50yP2JmSznVBR; Wed, 24 Mar 2021 15:59:57 +0800 (CST) Received: from hulk-robot-4.huawei.com (10.175.124.27) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Wed, 24 Mar 2021 16:02:19 +0800 From: Zou Wei To: , , , , CC: , Zou Wei Subject: [PATCH -next] misc: sgi-xp: xp_main: make some symbols static Date: Wed, 24 Mar 2021 08:48:23 +0000 Message-ID: <20210324084823.7393-1-zou_wei@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: drivers/misc/sgi-xp/xp_main.c:24:22: warning: symbol 'xp_dbg_name' was not declared. Should it be static? drivers/misc/sgi-xp/xp_main.c:28:15: warning: symbol 'xp_dbg_subname' was not declared. Should it be static? These symbols are not used outside of xp_main.c, so this commit marks them static. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/misc/sgi-xp/xp_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/sgi-xp/xp_main.c b/drivers/misc/sgi-xp/xp_main.c index cf2965aa5c05..87d156c15f35 100644 --- a/drivers/misc/sgi-xp/xp_main.c +++ b/drivers/misc/sgi-xp/xp_main.c @@ -21,11 +21,11 @@ /* define the XP debug device structures to be used with dev_dbg() et al */ -struct device_driver xp_dbg_name = { +static struct device_driver xp_dbg_name = { .name = "xp" }; -struct device xp_dbg_subname = { +static struct device xp_dbg_subname = { .init_name = "", /* set to "" */ .driver = &xp_dbg_name }; -- 2.17.1