diff options
| author | Mark Brown <broonie@linaro.org> | 2013-11-24 09:35:18 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-11-24 09:35:18 -0500 |
| commit | 30c27abd28fa168d7ebd2e5286f1fe473c74bfa9 (patch) | |
| tree | 9936b38c0c81cd430d5e75906c1207d127fe588c /include/linux/init.h | |
| parent | 16ec790938d4f356c82fab27b9a9adf4d6fe19a6 (diff) | |
| parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
Merge tag 'v3.13-rc1' into asoc-arizona
Linux 3.13-rc1
Diffstat (limited to 'include/linux/init.h')
| -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 @@ | |||
| 26 | * extern int initialize_foobar_device(int, int, int) __init; | 26 | * extern int initialize_foobar_device(int, int, int) __init; |
| 27 | * | 27 | * |
| 28 | * For initialized data: | 28 | * For initialized data: |
| 29 | * You should insert __initdata between the variable name and equal | 29 | * You should insert __initdata or __initconst between the variable name |
| 30 | * sign followed by value, e.g.: | 30 | * and equal sign followed by value, e.g.: |
| 31 | * | 31 | * |
| 32 | * static int init_variable __initdata = 0; | 32 | * static int init_variable __initdata = 0; |
| 33 | * static const char linux_logo[] __initconst = { 0x32, 0x36, ... }; | 33 | * static const char linux_logo[] __initconst = { 0x32, 0x36, ... }; |
| @@ -35,8 +35,6 @@ | |||
| 35 | * Don't forget to initialize data not at file scope, i.e. within a function, | 35 | * Don't forget to initialize data not at file scope, i.e. within a function, |
| 36 | * as gcc otherwise puts the data into the bss section and not into the init | 36 | * as gcc otherwise puts the data into the bss section and not into the init |
| 37 | * section. | 37 | * section. |
| 38 | * | ||
| 39 | * Also note, that this data cannot be "const". | ||
| 40 | */ | 38 | */ |
| 41 | 39 | ||
| 42 | /* These are for everybody (although not all archs will actually | 40 | /* These are for everybody (although not all archs will actually |
