diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 14 | ||||
-rw-r--r-- | lib/crc32.c | 2 | ||||
-rw-r--r-- | lib/kobject.c | 2 | ||||
-rw-r--r-- | lib/zlib_deflate/defutil.h | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0d8a5a4a789d..0d385be682db 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -81,7 +81,7 @@ config HEADERS_CHECK | |||
81 | 81 | ||
82 | config DEBUG_SECTION_MISMATCH | 82 | config DEBUG_SECTION_MISMATCH |
83 | bool "Enable full Section mismatch analysis" | 83 | bool "Enable full Section mismatch analysis" |
84 | default n | 84 | depends on UNDEFINED |
85 | help | 85 | help |
86 | The section mismatch analysis checks if there are illegal | 86 | The section mismatch analysis checks if there are illegal |
87 | references from one section to another section. | 87 | references from one section to another section. |
@@ -90,19 +90,19 @@ config DEBUG_SECTION_MISMATCH | |||
90 | most likely result in an oops. | 90 | most likely result in an oops. |
91 | In the code functions and variables are annotated with | 91 | In the code functions and variables are annotated with |
92 | __init, __devinit etc. (see full list in include/linux/init.h) | 92 | __init, __devinit etc. (see full list in include/linux/init.h) |
93 | which result in the code/data being placed in specific sections. | 93 | which results in the code/data being placed in specific sections. |
94 | The section mismatch anaylsis are always done after a full | 94 | The section mismatch analysis is always done after a full |
95 | kernel build but enabling this options will in addition | 95 | kernel build but enabling this option will in addition |
96 | do the following: | 96 | do the following: |
97 | - Add the option -fno-inline-functions-called-once to gcc | 97 | - Add the option -fno-inline-functions-called-once to gcc |
98 | When inlining a function annotated __init in a non-init | 98 | When inlining a function annotated __init in a non-init |
99 | function we would loose the section information and thus | 99 | function we would lose the section information and thus |
100 | the analysis would not catch the illegal reference. | 100 | the analysis would not catch the illegal reference. |
101 | This options tell gcc to inline less but will also | 101 | This option tells gcc to inline less but will also |
102 | result in a larger kernel. | 102 | result in a larger kernel. |
103 | - Run the section mismatch analysis for each module/built-in.o | 103 | - Run the section mismatch analysis for each module/built-in.o |
104 | When we run the section mismatch analysis on vmlinux.o we | 104 | When we run the section mismatch analysis on vmlinux.o we |
105 | looses valueable information about where the mismatch was | 105 | lose valueble information about where the mismatch was |
106 | introduced. | 106 | introduced. |
107 | Running the analysis for each module/built-in.o file | 107 | Running the analysis for each module/built-in.o file |
108 | will tell where the mismatch happens much closer to the | 108 | will tell where the mismatch happens much closer to the |
diff --git a/lib/crc32.c b/lib/crc32.c index d2c2f257bedd..49d1c9e3ce38 100644 --- a/lib/crc32.c +++ b/lib/crc32.c | |||
@@ -348,7 +348,7 @@ EXPORT_SYMBOL(crc32_be); | |||
348 | * but again the multiple of the polynomial to subtract depends only on | 348 | * but again the multiple of the polynomial to subtract depends only on |
349 | * the high bits, the high 8 bits in this case. | 349 | * the high bits, the high 8 bits in this case. |
350 | * | 350 | * |
351 | * The multile we need in that case is the low 32 bits of a 40-bit | 351 | * The multiple we need in that case is the low 32 bits of a 40-bit |
352 | * value whose high 8 bits are given, and which is a multiple of the | 352 | * value whose high 8 bits are given, and which is a multiple of the |
353 | * generator polynomial. This is simply the CRC-32 of the given | 353 | * generator polynomial. This is simply the CRC-32 of the given |
354 | * one-byte message. | 354 | * one-byte message. |
diff --git a/lib/kobject.c b/lib/kobject.c index 1d63ead1815e..d784daeb8571 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -637,7 +637,7 @@ struct kobject *kobject_create(void) | |||
637 | * @name: the name for the kset | 637 | * @name: the name for the kset |
638 | * @parent: the parent kobject of this kobject, if any. | 638 | * @parent: the parent kobject of this kobject, if any. |
639 | * | 639 | * |
640 | * This function creates a kset structure dynamically and registers it | 640 | * This function creates a kobject structure dynamically and registers it |
641 | * with sysfs. When you are finished with this structure, call | 641 | * with sysfs. When you are finished with this structure, call |
642 | * kobject_put() and the structure will be dynamically freed when | 642 | * kobject_put() and the structure will be dynamically freed when |
643 | * it is no longer being used. | 643 | * it is no longer being used. |
diff --git a/lib/zlib_deflate/defutil.h b/lib/zlib_deflate/defutil.h index d9feaf638608..6b15a909ca3f 100644 --- a/lib/zlib_deflate/defutil.h +++ b/lib/zlib_deflate/defutil.h | |||
@@ -164,7 +164,7 @@ typedef struct deflate_state { | |||
164 | int nice_match; /* Stop searching when current match exceeds this */ | 164 | int nice_match; /* Stop searching when current match exceeds this */ |
165 | 165 | ||
166 | /* used by trees.c: */ | 166 | /* used by trees.c: */ |
167 | /* Didn't use ct_data typedef below to supress compiler warning */ | 167 | /* Didn't use ct_data typedef below to suppress compiler warning */ |
168 | struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ | 168 | struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ |
169 | struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ | 169 | struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ |
170 | struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ | 170 | struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ |