diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-12 15:10:19 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 12:09:26 +0900 |
commit | 65321547c8be5b00427ac8de23fd15801b68de1f (patch) | |
tree | ef6c7e1491d6ab5fde602496915128fb3b2fa057 /include | |
parent | 67347fe4e6326338ee217d7eb826bedf30b2e155 (diff) | |
download | linux-65321547c8be5b00427ac8de23fd15801b68de1f.tar.gz linux-65321547c8be5b00427ac8de23fd15801b68de1f.tar.bz2 linux-65321547c8be5b00427ac8de23fd15801b68de1f.zip |
init.h: document the existence of __initconst
Initdata can be const since more than 5 years, using the __initconst
keyword.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/init.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index f1c27a71d03c..8e68a64bfe00 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -26,8 +26,8 @@ * extern int initialize_foobar_device(int, int, int) __init; * * For initialized data: - * You should insert __initdata between the variable name and equal - * sign followed by value, e.g.: + * You should insert __initdata or __initconst between the variable name + * and equal sign followed by value, e.g.: * * static int init_variable __initdata = 0; * static const char linux_logo[] __initconst = { 0x32, 0x36, ... }; @@ -35,8 +35,6 @@ * Don't forget to initialize data not at file scope, i.e. within a function, * as gcc otherwise puts the data into the bss section and not into the init * section. - * - * Also note, that this data cannot be "const". */ /* These are for everybody (although not all archs will actually |