Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp310553pxf; Thu, 25 Mar 2021 04:50:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypD+COgWQZRPyV4iGVJBHhrSOEpKqnWF4T8IXx3EUwjSQIWExW9xdolLIk5xjPiQ3ckyDY X-Received: by 2002:a17:906:ef2:: with SMTP id x18mr9172583eji.323.1616673000539; Thu, 25 Mar 2021 04:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616673000; cv=none; d=google.com; s=arc-20160816; b=dp96Tk9THn+KjKZkHJUegLk9gGXdQRTE94I8ftZOkwr86IJ1DQd4yQZqvxABr8iV+R AP3TyKFsk39MuaFf376EJ4e+IoMTxQBh4nHWrGN3pwy0+GfYHUEkPrH7E3Ksi7XyChmS 3sJCLaleJN/BSLo58Zz8Mp3cEGFbdbHevJGAh+udEZQzicct90x5xL+K9hmXdtC7Z3O1 lj1VP6LNCyiSMj7pdl3qSkGMePnkzg3gR3S+ZnSWEJRCZWehzsxWOPVuCyPlWNn6YkbQ AeyRcojBdaeLE04VOl8bP5WFYdlkbzGcFlG9lwA21VZjo0juJehDxL+XrRNqsvaHy89P pU2A== 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=b5S2yi0Tw2T1lpU7Bg/1zpGk7nvp0hOI9Ffcl6KaIro=; b=KtLraKogfZF+Zv/iyCNs+H9cFlVT/n5v4Kf++h9GtYVNQ6pratL7qPVugerwiC9e6N rLkYnaFiRiB3Y/MGovePRVXyoC2ggFJBKk5QIOPKn+mqw6dvT8dllZbFUCM2MShV8eyd FLRWC5nT2aTVnGf1UND7vrZ+KVdRGqvS/qq9vcsOLNSTE0+aDb9DLDCTeyTkGWQQl8zA BhbUmQ2ofFhHD/gZuED3j0kRfI/tzhNuotTPusbcsxBUBeXwkdnntfve74WoS7AEc1zA 8GzZo/doVmvE+q/KPjX8F8VwN4scLNMkAOeQN8NxCTfza6wfy9UzsY5dUBDHnA+9ncd3 yaAw== 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 a8si4041574edq.601.2021.03.25.04.49.37; Thu, 25 Mar 2021 04:50:00 -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 S230239AbhCYLsP (ORCPT + 99 others); Thu, 25 Mar 2021 07:48:15 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14475 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbhCYLro (ORCPT ); Thu, 25 Mar 2021 07:47:44 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F5jwP513wzrZfJ; Thu, 25 Mar 2021 19:45:41 +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; Thu, 25 Mar 2021 19:47:34 +0800 From: Zou Wei To: CC: , Zou Wei Subject: [PATCH -next] agp: uninorth: Make some symbols static Date: Thu, 25 Mar 2021 20:04:33 +0800 Message-ID: <1616673873-111859-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 The sparse tool complains as follows: drivers/char/agp/uninorth-agp.c:510:32: warning: symbol 'uninorth_agp_driver' was not declared. Should it be static? drivers/char/agp/uninorth-agp.c:538:32: warning: symbol 'u3_agp_driver' was not declared. Should it be static? This symbol is not used outside of uninorth-agp.c, so this commit marks it static. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/char/agp/uninorth-agp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index 62de7f4..06db04c 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c @@ -507,7 +507,7 @@ static const struct aper_size_info_32 u3_sizes[] = {4, 1024, 0, 1} }; -const struct agp_bridge_driver uninorth_agp_driver = { +static const struct agp_bridge_driver uninorth_agp_driver = { .owner = THIS_MODULE, .aperture_sizes = (void *)uninorth_sizes, .size_type = U32_APER_SIZE, @@ -535,7 +535,7 @@ const struct agp_bridge_driver uninorth_agp_driver = { .needs_scratch_page = true, }; -const struct agp_bridge_driver u3_agp_driver = { +static const struct agp_bridge_driver u3_agp_driver = { .owner = THIS_MODULE, .aperture_sizes = (void *)u3_sizes, .size_type = U32_APER_SIZE, -- 2.6.2