|
29 | 29 | #include <linux/panic.h> |
30 | 30 | #include <linux/printk.h> |
31 | 31 | #include <linux/build_bug.h> |
| 32 | +#include <linux/sprintf.h> |
32 | 33 | #include <linux/static_call_types.h> |
33 | 34 | #include <linux/instruction_pointer.h> |
34 | 35 | #include <asm/byteorder.h> |
@@ -203,35 +204,6 @@ static inline void might_fault(void) { } |
203 | 204 |
|
204 | 205 | void do_exit(long error_code) __noreturn; |
205 | 206 |
|
206 | | -extern int num_to_str(char *buf, int size, |
207 | | - unsigned long long num, unsigned int width); |
208 | | - |
209 | | -/* lib/printf utilities */ |
210 | | - |
211 | | -extern __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); |
212 | | -extern __printf(2, 0) int vsprintf(char *buf, const char *, va_list); |
213 | | -extern __printf(3, 4) |
214 | | -int snprintf(char *buf, size_t size, const char *fmt, ...); |
215 | | -extern __printf(3, 0) |
216 | | -int vsnprintf(char *buf, size_t size, const char *fmt, va_list args); |
217 | | -extern __printf(3, 4) |
218 | | -int scnprintf(char *buf, size_t size, const char *fmt, ...); |
219 | | -extern __printf(3, 0) |
220 | | -int vscnprintf(char *buf, size_t size, const char *fmt, va_list args); |
221 | | -extern __printf(2, 3) __malloc |
222 | | -char *kasprintf(gfp_t gfp, const char *fmt, ...); |
223 | | -extern __printf(2, 0) __malloc |
224 | | -char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); |
225 | | -extern __printf(2, 0) |
226 | | -const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list args); |
227 | | - |
228 | | -extern __scanf(2, 3) |
229 | | -int sscanf(const char *, const char *, ...); |
230 | | -extern __scanf(2, 0) |
231 | | -int vsscanf(const char *, const char *, va_list); |
232 | | - |
233 | | -extern int no_hash_pointers_enable(char *str); |
234 | | - |
235 | 207 | extern int get_option(char **str, int *pint); |
236 | 208 | extern char *get_options(const char *str, int nints, int *ints); |
237 | 209 | extern unsigned long long memparse(const char *ptr, char **retptr); |
|
0 commit comments