* [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
* Re: [PATCH] Some grammatical and whitespace cleanups in init.h.
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
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 2007-11-30 19:42 UTC (permalink / raw)
To: kernel-janitors
On Fri, Nov 30, 2007 at 02:24:57PM -0500, Robert P. J. Day wrote:
> -/* 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.
If you're going to get rid of 'some', then you need to change 'are' to
'may be' or 'can be'.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Some grammatical and whitespace cleanups in init.h.
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
3 siblings, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2007-11-30 21:01 UTC (permalink / raw)
To: kernel-janitors
On Fri, 30 Nov 2007, Matthew Wilcox wrote:
> On Fri, Nov 30, 2007 at 02:24:57PM -0500, Robert P. J. Day wrote:
> > -/* 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.
>
> If you're going to get rid of 'some', then you need to change 'are' to
> 'may be' or 'can be'.
i'm sorry, i don't see a problem here. that replacement text looks
perfectly unambiguous. how do you think it might be misinterpreted?
rday
--
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
====================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Some grammatical and whitespace cleanups in init.h.
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
3 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 2007-11-30 21:19 UTC (permalink / raw)
To: kernel-janitors
On Fri, Nov 30, 2007 at 04:01:56PM -0500, Robert P. J. Day wrote:
> On Fri, 30 Nov 2007, Matthew Wilcox wrote:
>
> > On Fri, Nov 30, 2007 at 02:24:57PM -0500, Robert P. J. Day wrote:
> > > -/* 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.
> >
> > If you're going to get rid of 'some', then you need to change 'are' to
> > 'may be' or 'can be'.
>
> i'm sorry, i don't see a problem here. that replacement text looks
> perfectly unambiguous. how do you think it might be misinterpreted?
It implies that all functions have to be marked as __init, which is
plainly not true.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Some grammatical and whitespace cleanups in init.h.
2007-11-30 19:24 [PATCH] Some grammatical and whitespace cleanups in init.h Robert P. J. Day
` (2 preceding siblings ...)
2007-11-30 21:19 ` Matthew Wilcox
@ 2007-11-30 21:28 ` Robert P. J. Day
3 siblings, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2007-11-30 21:28 UTC (permalink / raw)
To: kernel-janitors
On Fri, 30 Nov 2007, Matthew Wilcox wrote:
> On Fri, Nov 30, 2007 at 04:01:56PM -0500, Robert P. J. Day wrote:
> > On Fri, 30 Nov 2007, Matthew Wilcox wrote:
> >
> > > On Fri, Nov 30, 2007 at 02:24:57PM -0500, Robert P. J. Day wrote:
> > > > -/* 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.
> > >
> > > If you're going to get rid of 'some', then you need to change 'are' to
> > > 'may be' or 'can be'.
> >
> > i'm sorry, i don't see a problem here. that replacement text looks
> > perfectly unambiguous. how do you think it might be misinterpreted?
>
> It implies that all functions have to be marked as __init, which is
> plainly not true.
what nonsense. the word "some" is entirely superfluous there. are
you saying you would be confused if i said something like, "these red
tags are used to identify merchandise in the store that is on sale at
50% off." are you seriously saying that, without the word "some", you
would think i was talking about every single piece of merchandise?
rday
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
====================================
^ permalink raw reply [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.