projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
196a15b
)
kernel.h: remove initialization of bool in printk_once
author
Joe Perches
<
[email protected]
>
Tue, 15 Dec 2009 02:00:19 +0000
(18:00 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 15 Dec 2009 16:53:26 +0000
(08:53 -0800)
Don't initialize __print_once. Invert the test to reduce initialized
data.
defconfig before: $size vmlinux
text data bss dec hex filename
6976022
679572
1359668
9015262
898fde vmlinux
defconfig after: $size vmlinux
text data bss dec hex filename
6976006
679508
1359700
9015214
898fae vmlinux
Signed-off-by: Joe Perches <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/kernel.h
patch
|
blob
|
history
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index a93cdd031aee92fffe3bbaf4e3dc9dfd15f92c46..910db75b1a724ce0cdcf9e64d0a1ccd799269d63 100644
(file)
--- a/
include/linux/kernel.h
+++ b/
include/linux/kernel.h
@@
-251,10
+251,10
@@
extern int printk_delay_msec;
* Print a one-time message (analogous to WARN_ONCE() et al):
*/
#define printk_once(x...) ({ \
- static bool __print_once
= true;
\
+ static bool __print_once
;
\
\
- if (
__print_once) {
\
- __print_once =
false;
\
+ if (
!__print_once) {
\
+ __print_once =
true;
\
printk(x); \
} \
})