diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig.debug | 3 | ||||
| -rw-r--r-- | lib/parser.c | 6 | ||||
| -rw-r--r-- | lib/vsprintf.c | 7 | ||||
| -rw-r--r-- | lib/xz/Kconfig | 34 |
4 files changed, 27 insertions, 23 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index bb8d9b136cf9..e4a7f808fa06 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -243,8 +243,7 @@ config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE | |||
| 243 | default 1 if BOOTPARAM_SOFTLOCKUP_PANIC | 243 | default 1 if BOOTPARAM_SOFTLOCKUP_PANIC |
| 244 | 244 | ||
| 245 | config PANIC_ON_OOPS | 245 | config PANIC_ON_OOPS |
| 246 | bool "Panic on Oops" if EXPERT | 246 | bool "Panic on Oops" |
| 247 | default n | ||
| 248 | help | 247 | help |
| 249 | Say Y here to enable the kernel to panic when it oopses. This | 248 | Say Y here to enable the kernel to panic when it oopses. This |
| 250 | has the same effect as setting oops=panic on the kernel command | 249 | has the same effect as setting oops=panic on the kernel command |
diff --git a/lib/parser.c b/lib/parser.c index 52cfa69f73df..807b2aaa33fa 100644 --- a/lib/parser.c +++ b/lib/parser.c | |||
| @@ -157,7 +157,7 @@ static int match_number(substring_t *s, int *result, int base) | |||
| 157 | * | 157 | * |
| 158 | * Description: Attempts to parse the &substring_t @s as a decimal integer. On | 158 | * Description: Attempts to parse the &substring_t @s as a decimal integer. On |
| 159 | * success, sets @result to the integer represented by the string and returns 0. | 159 | * success, sets @result to the integer represented by the string and returns 0. |
| 160 | * Returns either -ENOMEM or -EINVAL on failure. | 160 | * Returns -ENOMEM, -EINVAL, or -ERANGE on failure. |
| 161 | */ | 161 | */ |
| 162 | int match_int(substring_t *s, int *result) | 162 | int match_int(substring_t *s, int *result) |
| 163 | { | 163 | { |
| @@ -171,7 +171,7 @@ int match_int(substring_t *s, int *result) | |||
| 171 | * | 171 | * |
| 172 | * Description: Attempts to parse the &substring_t @s as an octal integer. On | 172 | * Description: Attempts to parse the &substring_t @s as an octal integer. On |
| 173 | * success, sets @result to the integer represented by the string and returns | 173 | * success, sets @result to the integer represented by the string and returns |
| 174 | * 0. Returns either -ENOMEM or -EINVAL on failure. | 174 | * 0. Returns -ENOMEM, -EINVAL, or -ERANGE on failure. |
| 175 | */ | 175 | */ |
| 176 | int match_octal(substring_t *s, int *result) | 176 | int match_octal(substring_t *s, int *result) |
| 177 | { | 177 | { |
| @@ -185,7 +185,7 @@ int match_octal(substring_t *s, int *result) | |||
| 185 | * | 185 | * |
| 186 | * Description: Attempts to parse the &substring_t @s as a hexadecimal integer. | 186 | * Description: Attempts to parse the &substring_t @s as a hexadecimal integer. |
| 187 | * On success, sets @result to the integer represented by the string and | 187 | * On success, sets @result to the integer represented by the string and |
| 188 | * returns 0. Returns either -ENOMEM or -EINVAL on failure. | 188 | * returns 0. Returns -ENOMEM, -EINVAL, or -ERANGE on failure. |
| 189 | */ | 189 | */ |
| 190 | int match_hex(substring_t *s, int *result) | 190 | int match_hex(substring_t *s, int *result) |
| 191 | { | 191 | { |
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index fab33a9c5318..0d62fd700f68 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c | |||
| @@ -1030,6 +1030,7 @@ int kptr_restrict __read_mostly; | |||
| 1030 | * N no separator | 1030 | * N no separator |
| 1031 | * The maximum supported length is 64 bytes of the input. Consider | 1031 | * The maximum supported length is 64 bytes of the input. Consider |
| 1032 | * to use print_hex_dump() for the larger input. | 1032 | * to use print_hex_dump() for the larger input. |
| 1033 | * - 'a' For a phys_addr_t type and its derivative types (passed by reference) | ||
| 1033 | * | 1034 | * |
| 1034 | * Note: The difference between 'S' and 'F' is that on ia64 and ppc64 | 1035 | * Note: The difference between 'S' and 'F' is that on ia64 and ppc64 |
| 1035 | * function pointers are really function descriptors, which contain a | 1036 | * function pointers are really function descriptors, which contain a |
| @@ -1120,6 +1121,12 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr, | |||
| 1120 | return netdev_feature_string(buf, end, ptr, spec); | 1121 | return netdev_feature_string(buf, end, ptr, spec); |
| 1121 | } | 1122 | } |
| 1122 | break; | 1123 | break; |
| 1124 | case 'a': | ||
| 1125 | spec.flags |= SPECIAL | SMALL | ZEROPAD; | ||
| 1126 | spec.field_width = sizeof(phys_addr_t) * 2 + 2; | ||
| 1127 | spec.base = 16; | ||
| 1128 | return number(buf, end, | ||
| 1129 | (unsigned long long) *((phys_addr_t *)ptr), spec); | ||
| 1123 | } | 1130 | } |
| 1124 | spec.flags |= SMALL; | 1131 | spec.flags |= SMALL; |
| 1125 | if (spec.field_width == -1) { | 1132 | if (spec.field_width == -1) { |
diff --git a/lib/xz/Kconfig b/lib/xz/Kconfig index 60a6088d0e5e..82a04d7ba99e 100644 --- a/lib/xz/Kconfig +++ b/lib/xz/Kconfig | |||
| @@ -6,42 +6,40 @@ config XZ_DEC | |||
| 6 | the .xz file format as the container. For integrity checking, | 6 | the .xz file format as the container. For integrity checking, |
| 7 | CRC32 is supported. See Documentation/xz.txt for more information. | 7 | CRC32 is supported. See Documentation/xz.txt for more information. |
| 8 | 8 | ||
| 9 | if XZ_DEC | ||
| 10 | |||
| 9 | config XZ_DEC_X86 | 11 | config XZ_DEC_X86 |
| 10 | bool "x86 BCJ filter decoder" if EXPERT | 12 | bool "x86 BCJ filter decoder" |
| 11 | default y | 13 | default y if X86 |
| 12 | depends on XZ_DEC | ||
| 13 | select XZ_DEC_BCJ | 14 | select XZ_DEC_BCJ |
| 14 | 15 | ||
| 15 | config XZ_DEC_POWERPC | 16 | config XZ_DEC_POWERPC |
| 16 | bool "PowerPC BCJ filter decoder" if EXPERT | 17 | bool "PowerPC BCJ filter decoder" |
| 17 | default y | 18 | default y if POWERPC |
| 18 | depends on XZ_DEC | ||
| 19 | select XZ_DEC_BCJ | 19 | select XZ_DEC_BCJ |
| 20 | 20 | ||
| 21 | config XZ_DEC_IA64 | 21 | config XZ_DEC_IA64 |
| 22 | bool "IA-64 BCJ filter decoder" if EXPERT | 22 | bool "IA-64 BCJ filter decoder" |
| 23 | default y | 23 | default y if IA64 |
| 24 | depends on XZ_DEC | ||
| 25 | select XZ_DEC_BCJ | 24 | select XZ_DEC_BCJ |
| 26 | 25 | ||
| 27 | config XZ_DEC_ARM | 26 | config XZ_DEC_ARM |
| 28 | bool "ARM BCJ filter decoder" if EXPERT | 27 | bool "ARM BCJ filter decoder" |
| 29 | default y | 28 | default y if ARM |
| 30 | depends on XZ_DEC | ||
| 31 | select XZ_DEC_BCJ | 29 | select XZ_DEC_BCJ |
| 32 | 30 | ||
| 33 | config XZ_DEC_ARMTHUMB | 31 | config XZ_DEC_ARMTHUMB |
| 34 | bool "ARM-Thumb BCJ filter decoder" if EXPERT | 32 | bool "ARM-Thumb BCJ filter decoder" |
| 35 | default y | 33 | default y if (ARM && ARM_THUMB) |
| 36 | depends on XZ_DEC | ||
| 37 | select XZ_DEC_BCJ | 34 | select XZ_DEC_BCJ |
| 38 | 35 | ||
| 39 | config XZ_DEC_SPARC | 36 | config XZ_DEC_SPARC |
| 40 | bool "SPARC BCJ filter decoder" if EXPERT | 37 | bool "SPARC BCJ filter decoder" |
| 41 | default y | 38 | default y if SPARC |
| 42 | depends on XZ_DEC | ||
| 43 | select XZ_DEC_BCJ | 39 | select XZ_DEC_BCJ |
| 44 | 40 | ||
| 41 | endif | ||
| 42 | |||
| 45 | config XZ_DEC_BCJ | 43 | config XZ_DEC_BCJ |
| 46 | bool | 44 | bool |
| 47 | default n | 45 | default n |
