From: Adrian Bunk <bunk@stusta.de>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/mtd/: small cleanups
Date: Tue, 13 Dec 2005 01:05:42 +0100 [thread overview]
Message-ID: <20051213000542.GR23349@stusta.de> (raw)
This patch contains the following cleanups:
- chips/sharp.c: make the needlessly global sharp_probe_init() static
- move some declarations to a header file where they belong to
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/mtd/chips/sharp.c | 2 +-
drivers/mtd/inftlcore.c | 5 -----
include/linux/mtd/inftl.h | 5 +++++
3 files changed, 6 insertions(+), 6 deletions(-)
--- linux-2.6.15-rc5-mm2-full/drivers/mtd/chips/sharp.c.old 2005-12-13 00:30:03.000000000 +0100
+++ linux-2.6.15-rc5-mm2-full/drivers/mtd/chips/sharp.c 2005-12-13 00:30:14.000000000 +0100
@@ -581,7 +581,7 @@
}
-int __init sharp_probe_init(void)
+static int __init sharp_probe_init(void)
{
printk("MTD Sharp chip driver <ds@lineo.com>\n");
--- linux-2.6.15-rc5-mm2-full/include/linux/mtd/inftl.h.old 2005-12-13 00:38:32.000000000 +0100
+++ linux-2.6.15-rc5-mm2-full/include/linux/mtd/inftl.h 2005-12-13 00:40:26.000000000 +0100
@@ -52,6 +52,11 @@
int INFTL_mount(struct INFTLrecord *s);
int INFTL_formatblock(struct INFTLrecord *s, int block);
+extern char inftlmountrev[];
+
+void INFTL_dumptables(struct INFTLrecord *s);
+void INFTL_dumpVUchains(struct INFTLrecord *s);
+
#endif /* __KERNEL__ */
#endif /* __MTD_INFTL_H__ */
--- linux-2.6.15-rc5-mm2-full/drivers/mtd/inftlcore.c.old 2005-12-13 00:39:14.000000000 +0100
+++ linux-2.6.15-rc5-mm2-full/drivers/mtd/inftlcore.c 2005-12-13 00:40:43.000000000 +0100
@@ -47,9 +47,6 @@
*/
#define MAX_LOOPS 10000
-extern void INFTL_dumptables(struct INFTLrecord *inftl);
-extern void INFTL_dumpVUchains(struct INFTLrecord *inftl);
-
static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
{
struct INFTLrecord *inftl;
@@ -885,8 +882,6 @@
.owner = THIS_MODULE,
};
-extern char inftlmountrev[];
-
static int __init init_inftl(void)
{
printk(KERN_INFO "INFTL: inftlcore.c $Revision: 1.19 $, "
WARNING: multiple messages have this Message-ID (diff)
From: Adrian Bunk <bunk@stusta.de>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org
Subject: [2.6 patch] drivers/mtd/: small cleanups
Date: Tue, 13 Dec 2005 01:05:42 +0100 [thread overview]
Message-ID: <20051213000542.GR23349@stusta.de> (raw)
This patch contains the following cleanups:
- chips/sharp.c: make the needlessly global sharp_probe_init() static
- move some declarations to a header file where they belong to
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/mtd/chips/sharp.c | 2 +-
drivers/mtd/inftlcore.c | 5 -----
include/linux/mtd/inftl.h | 5 +++++
3 files changed, 6 insertions(+), 6 deletions(-)
--- linux-2.6.15-rc5-mm2-full/drivers/mtd/chips/sharp.c.old 2005-12-13 00:30:03.000000000 +0100
+++ linux-2.6.15-rc5-mm2-full/drivers/mtd/chips/sharp.c 2005-12-13 00:30:14.000000000 +0100
@@ -581,7 +581,7 @@
}
-int __init sharp_probe_init(void)
+static int __init sharp_probe_init(void)
{
printk("MTD Sharp chip driver <ds@lineo.com>\n");
--- linux-2.6.15-rc5-mm2-full/include/linux/mtd/inftl.h.old 2005-12-13 00:38:32.000000000 +0100
+++ linux-2.6.15-rc5-mm2-full/include/linux/mtd/inftl.h 2005-12-13 00:40:26.000000000 +0100
@@ -52,6 +52,11 @@
int INFTL_mount(struct INFTLrecord *s);
int INFTL_formatblock(struct INFTLrecord *s, int block);
+extern char inftlmountrev[];
+
+void INFTL_dumptables(struct INFTLrecord *s);
+void INFTL_dumpVUchains(struct INFTLrecord *s);
+
#endif /* __KERNEL__ */
#endif /* __MTD_INFTL_H__ */
--- linux-2.6.15-rc5-mm2-full/drivers/mtd/inftlcore.c.old 2005-12-13 00:39:14.000000000 +0100
+++ linux-2.6.15-rc5-mm2-full/drivers/mtd/inftlcore.c 2005-12-13 00:40:43.000000000 +0100
@@ -47,9 +47,6 @@
*/
#define MAX_LOOPS 10000
-extern void INFTL_dumptables(struct INFTLrecord *inftl);
-extern void INFTL_dumpVUchains(struct INFTLrecord *inftl);
-
static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
{
struct INFTLrecord *inftl;
@@ -885,8 +882,6 @@
.owner = THIS_MODULE,
};
-extern char inftlmountrev[];
-
static int __init init_inftl(void)
{
printk(KERN_INFO "INFTL: inftlcore.c $Revision: 1.19 $, "
next reply other threads:[~2005-12-13 0:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-13 0:05 Adrian Bunk [this message]
2005-12-13 0:05 ` [2.6 patch] drivers/mtd/: small cleanups Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2006-01-06 19:20 Adrian Bunk
2006-01-06 19:20 ` Adrian Bunk
2006-01-19 2:11 Adrian Bunk
2006-01-19 2:11 ` Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051213000542.GR23349@stusta.de \
--to=bunk@stusta.de \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.