diff options
-rw-r--r-- | include/linux/seq_buf.h | 7 | ||||
-rw-r--r-- | kernel/trace/seq_buf.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h index 12c64282aa98..9aafe0e24c68 100644 --- a/include/linux/seq_buf.h +++ b/include/linux/seq_buf.h | |||
@@ -115,8 +115,6 @@ extern __printf(2, 3) | |||
115 | int seq_buf_printf(struct seq_buf *s, const char *fmt, ...); | 115 | int seq_buf_printf(struct seq_buf *s, const char *fmt, ...); |
116 | extern __printf(2, 0) | 116 | extern __printf(2, 0) |
117 | int seq_buf_vprintf(struct seq_buf *s, const char *fmt, va_list args); | 117 | int seq_buf_vprintf(struct seq_buf *s, const char *fmt, va_list args); |
118 | extern int | ||
119 | seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary); | ||
120 | extern int seq_buf_print_seq(struct seq_file *m, struct seq_buf *s); | 118 | extern int seq_buf_print_seq(struct seq_file *m, struct seq_buf *s); |
121 | extern int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, | 119 | extern int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, |
122 | int cnt); | 120 | int cnt); |
@@ -130,4 +128,9 @@ extern int seq_buf_path(struct seq_buf *s, const struct path *path, const char * | |||
130 | extern int seq_buf_bitmask(struct seq_buf *s, const unsigned long *maskp, | 128 | extern int seq_buf_bitmask(struct seq_buf *s, const unsigned long *maskp, |
131 | int nmaskbits); | 129 | int nmaskbits); |
132 | 130 | ||
131 | #ifdef CONFIG_BINARY_PRINTF | ||
132 | extern int | ||
133 | seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary); | ||
134 | #endif | ||
135 | |||
133 | #endif /* _LINUX_SEQ_BUF_H */ | 136 | #endif /* _LINUX_SEQ_BUF_H */ |
diff --git a/kernel/trace/seq_buf.c b/kernel/trace/seq_buf.c index 086f594ac890..4eedfedb9e31 100644 --- a/kernel/trace/seq_buf.c +++ b/kernel/trace/seq_buf.c | |||
@@ -127,6 +127,7 @@ int seq_buf_bitmask(struct seq_buf *s, const unsigned long *maskp, | |||
127 | return -1; | 127 | return -1; |
128 | } | 128 | } |
129 | 129 | ||
130 | #ifdef CONFIG_BINARY_PRINTF | ||
130 | /** | 131 | /** |
131 | * seq_buf_bprintf - Write the printf string from binary arguments | 132 | * seq_buf_bprintf - Write the printf string from binary arguments |
132 | * @s: seq_buf descriptor | 133 | * @s: seq_buf descriptor |
@@ -161,6 +162,7 @@ int seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary) | |||
161 | seq_buf_set_overflow(s); | 162 | seq_buf_set_overflow(s); |
162 | return -1; | 163 | return -1; |
163 | } | 164 | } |
165 | #endif /* CONFIG_BINARY_PRINTF */ | ||
164 | 166 | ||
165 | /** | 167 | /** |
166 | * seq_buf_puts - sequence printing of simple string | 168 | * seq_buf_puts - sequence printing of simple string |