[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20180601133117.6511-1-colin.king@canonical.com>
Date: Fri, 1 Jun 2018 14:31:17 +0100
From: Colin King <colin.king@...onical.com>
To: Alessandro Rubini <rubini@...dd.com>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drivers/fmc: make struct fmc_dbgfs_sdb_dump static
From: Colin Ian King <colin.king@...onical.com>
The structure fmc_dbgfs_sdb_dump is local to the source and does not
need to be in global scope, so make it static.
Cleans up sparse warning:
drivers/fmc/fmc-debug.c:143:30: warning: symbol 'fmc_dbgfs_sdb_dump'
was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
drivers/fmc/fmc-debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fmc/fmc-debug.c b/drivers/fmc/fmc-debug.c
index 32930722770c..c96b928f0112 100644
--- a/drivers/fmc/fmc-debug.c
+++ b/drivers/fmc/fmc-debug.c
@@ -140,7 +140,7 @@ static int fmc_sdb_dump_open(struct inode *inode, struct file *file)
}
-const struct file_operations fmc_dbgfs_sdb_dump = {
+static const struct file_operations fmc_dbgfs_sdb_dump = {
.owner = THIS_MODULE,
.open = fmc_sdb_dump_open,
.read = seq_read,
--
2.17.0
Powered by blists - more mailing lists