[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200914142930.10496-1-yuehaibing@huawei.com>
Date: Mon, 14 Sep 2020 22:29:30 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <airlied@...ux.ie>, <arnd@...db.de>, <gregkh@...uxfoundation.org>,
<yuehaibing@...wei.com>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] agp/uninorth: Make two variable static
Fix sparse warnings:
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?
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
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 62de7f4ba864..06db04cdc377 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.17.1
Powered by blists - more mailing lists