diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index d801acb5e680..3e140add5360 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -312,6 +312,8 @@ extern long long simple_strtoll(const char *,char **,unsigned int); | |||
312 | #define strict_strtoull kstrtoull | 312 | #define strict_strtoull kstrtoull |
313 | #define strict_strtoll kstrtoll | 313 | #define strict_strtoll kstrtoll |
314 | 314 | ||
315 | extern int num_to_str(char *buf, int size, unsigned long long num); | ||
316 | |||
315 | /* lib/printf utilities */ | 317 | /* lib/printf utilities */ |
316 | 318 | ||
317 | extern __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); | 319 | extern __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); |
@@ -328,10 +330,10 @@ extern __printf(2, 3) | |||
328 | char *kasprintf(gfp_t gfp, const char *fmt, ...); | 330 | char *kasprintf(gfp_t gfp, const char *fmt, ...); |
329 | extern char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); | 331 | extern char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); |
330 | 332 | ||
331 | extern int sscanf(const char *, const char *, ...) | 333 | extern __scanf(2, 3) |
332 | __attribute__ ((format (scanf, 2, 3))); | 334 | int sscanf(const char *, const char *, ...); |
333 | extern int vsscanf(const char *, const char *, va_list) | 335 | extern __scanf(2, 0) |
334 | __attribute__ ((format (scanf, 2, 0))); | 336 | int vsscanf(const char *, const char *, va_list); |
335 | 337 | ||
336 | extern int get_option(char **str, int *pint); | 338 | extern int get_option(char **str, int *pint); |
337 | extern char *get_options(const char *str, int nints, int *ints); | 339 | extern char *get_options(const char *str, int nints, int *ints); |