All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Some grammatical and whitespace cleanups in init.h.
@ 2007-11-30 19:24 Robert P. J. Day
  2007-11-30 19:42 ` Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Robert P. J. Day @ 2007-11-30 19:24 UTC (permalink / raw)
  To: kernel-janitors


Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

diff --git a/include/linux/init.h b/include/linux/init.h
index 5141381..ca59bf8 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -3,11 +3,10 @@

 #include <linux/compiler.h>

-/* These macros are used to mark some functions or
- * initialized data (doesn't apply to uninitialized data)
- * as `initialization' functions. The kernel can take this
- * as hint that the function is used only during the initialization
- * phase and free up used memory resources after
+/* These macros are used to mark functions and initialized
+ * data as 'initialization' objects, which tells the kernel that
+ * they are used only during the initialization phase and can be
+ * freed afterwards to recover memory.
  *
  * Usage:
  * For functions:
@@ -20,9 +19,10 @@
  * }
  *
  * If the function has a prototype somewhere, you can also add
- * __init between closing brace of the prototype and semicolon:
+ * __init to the prototype in one of two ways:
  *
  * extern int initialize_foobar_device(int, int, int) __init;
+ * extern int __init initialize_foobar_device(int, int, int);
  *
  * For initialized data:
  * You should insert __initdata between the variable name and equal
@@ -42,7 +42,7 @@
    discard it in modules) */
 #define __init		__attribute__ ((__section__ (".init.text"))) __cold
 #define __initdata	__attribute__ ((__section__ (".init.data")))
-#define __exitdata	__attribute__ ((__section__(".exit.data")))
+#define __exitdata	__attribute__ ((__section__ (".exit.data")))
 #define __exit_call	__attribute_used__ __attribute__ ((__section__ (".exitcall.exit")))

 /* modpost check for section mismatches during the kernel build.
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
====================================

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-30 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-30 19:24 [PATCH] Some grammatical and whitespace cleanups in init.h Robert P. J. Day
2007-11-30 19:42 ` Matthew Wilcox
2007-11-30 21:01 ` Robert P. J. Day
2007-11-30 21:19 ` Matthew Wilcox
2007-11-30 21:28 ` Robert P. J. Day

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.