diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 4 | ||||
-rw-r--r-- | lib/vsprintf.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index a370fe828a79..0796c1a090c0 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -82,6 +82,9 @@ config HEADERS_CHECK | |||
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 | depends on UNDEFINED | 84 | depends on UNDEFINED |
85 | # This option is on purpose disabled for now. | ||
86 | # It will be enabled when we are down to a resonable number | ||
87 | # of section mismatch warnings (< 10 for an allyesconfig build) | ||
85 | help | 88 | help |
86 | The section mismatch analysis checks if there are illegal | 89 | The section mismatch analysis checks if there are illegal |
87 | references from one section to another section. | 90 | references from one section to another section. |
@@ -524,6 +527,7 @@ config LKDTM | |||
524 | tristate "Linux Kernel Dump Test Tool Module" | 527 | tristate "Linux Kernel Dump Test Tool Module" |
525 | depends on DEBUG_KERNEL | 528 | depends on DEBUG_KERNEL |
526 | depends on KPROBES | 529 | depends on KPROBES |
530 | depends on BLOCK | ||
527 | default n | 531 | default n |
528 | help | 532 | help |
529 | This module enables testing of the different dumping mechanisms by | 533 | This module enables testing of the different dumping mechanisms by |
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index fd987b17bda7..6021757a4496 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c | |||
@@ -234,7 +234,7 @@ int strict_strto##type(const char *cp, unsigned int base, valtype *res) \ | |||
234 | int ret; \ | 234 | int ret; \ |
235 | if (*cp == '-') { \ | 235 | if (*cp == '-') { \ |
236 | ret = strict_strtou##type(cp+1, base, res); \ | 236 | ret = strict_strtou##type(cp+1, base, res); \ |
237 | if (ret != 0) \ | 237 | if (!ret) \ |
238 | *res = -(*res); \ | 238 | *res = -(*res); \ |
239 | } else \ | 239 | } else \ |
240 | ret = strict_strtou##type(cp, base, res); \ | 240 | ret = strict_strtou##type(cp, base, res); \ |