aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h10
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
315extern int num_to_str(char *buf, int size, unsigned long long num);
316
315/* lib/printf utilities */ 317/* lib/printf utilities */
316 318
317extern __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); 319extern __printf(2, 3) int sprintf(char *buf, const char * fmt, ...);
@@ -328,10 +330,10 @@ extern __printf(2, 3)
328char *kasprintf(gfp_t gfp, const char *fmt, ...); 330char *kasprintf(gfp_t gfp, const char *fmt, ...);
329extern char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); 331extern char *kvasprintf(gfp_t gfp, const char *fmt, va_list args);
330 332
331extern int sscanf(const char *, const char *, ...) 333extern __scanf(2, 3)
332 __attribute__ ((format (scanf, 2, 3))); 334int sscanf(const char *, const char *, ...);
333extern int vsscanf(const char *, const char *, va_list) 335extern __scanf(2, 0)
334 __attribute__ ((format (scanf, 2, 0))); 336int vsscanf(const char *, const char *, va_list);
335 337
336extern int get_option(char **str, int *pint); 338extern int get_option(char **str, int *pint);
337extern char *get_options(const char *str, int nints, int *ints); 339extern char *get_options(const char *str, int nints, int *ints);