mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] DocBook/mtdnand.tmpl: module_init() functions are static
@ 2010-01-19 21:01 H Hartley Sweeten
  0 siblings, 0 replies; only message in thread
From: H Hartley Sweeten @ 2010-01-19 21:01 UTC (permalink / raw)
  To: Linux Kernel, linux-doc; +Cc: rdunlap

In the example the module_init function should be static.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>

---


diff --git a/Documentation/DocBook/mtdnand.tmpl b/Documentation/DocBook/mtdnand.tmpl
index 5e7d84b..60170a9 100644
--- a/Documentation/DocBook/mtdnand.tmpl
+++ b/Documentation/DocBook/mtdnand.tmpl
@@ -269,7 +269,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd)
 			information about the device.
 		</para>
 		<programlisting>
-int __init board_init (void)
+static int __init board_init (void)
 {
 	struct nand_chip *this;
 	int err = 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-19 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-19 21:01 [PATCH] DocBook/mtdnand.tmpl: module_init() functions are static H Hartley Sweeten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®