diff options
Diffstat (limited to 'include/linux/trace_seq.h')
-rw-r--r-- | include/linux/trace_seq.h | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/include/linux/trace_seq.h b/include/linux/trace_seq.h index 07eda413dfcf..db8a73224f1a 100644 --- a/include/linux/trace_seq.h +++ b/include/linux/trace_seq.h | |||
@@ -57,40 +57,37 @@ static inline bool trace_seq_has_overflowed(struct trace_seq *s) | |||
57 | */ | 57 | */ |
58 | #ifdef CONFIG_TRACING | 58 | #ifdef CONFIG_TRACING |
59 | extern __printf(2, 3) | 59 | extern __printf(2, 3) |
60 | int trace_seq_printf(struct trace_seq *s, const char *fmt, ...); | 60 | void trace_seq_printf(struct trace_seq *s, const char *fmt, ...); |
61 | extern __printf(2, 0) | 61 | extern __printf(2, 0) |
62 | int trace_seq_vprintf(struct trace_seq *s, const char *fmt, va_list args); | 62 | void trace_seq_vprintf(struct trace_seq *s, const char *fmt, va_list args); |
63 | extern int | 63 | extern void |
64 | trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary); | 64 | trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary); |
65 | extern int trace_print_seq(struct seq_file *m, struct trace_seq *s); | 65 | extern int trace_print_seq(struct seq_file *m, struct trace_seq *s); |
66 | extern int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, | 66 | extern int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, |
67 | int cnt); | 67 | int cnt); |
68 | extern int trace_seq_puts(struct trace_seq *s, const char *str); | 68 | extern void trace_seq_puts(struct trace_seq *s, const char *str); |
69 | extern int trace_seq_putc(struct trace_seq *s, unsigned char c); | 69 | extern void trace_seq_putc(struct trace_seq *s, unsigned char c); |
70 | extern int trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len); | 70 | extern void trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len); |
71 | extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, | 71 | extern void trace_seq_putmem_hex(struct trace_seq *s, const void *mem, |
72 | unsigned int len); | 72 | unsigned int len); |
73 | extern int trace_seq_path(struct trace_seq *s, const struct path *path); | 73 | extern int trace_seq_path(struct trace_seq *s, const struct path *path); |
74 | 74 | ||
75 | extern int trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, | 75 | extern void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, |
76 | int nmaskbits); | 76 | int nmaskbits); |
77 | 77 | ||
78 | #else /* CONFIG_TRACING */ | 78 | #else /* CONFIG_TRACING */ |
79 | static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...) | 79 | static inline void trace_seq_printf(struct trace_seq *s, const char *fmt, ...) |
80 | { | 80 | { |
81 | return 0; | ||
82 | } | 81 | } |
83 | static inline int | 82 | static inline void |
84 | trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary) | 83 | trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary) |
85 | { | 84 | { |
86 | return 0; | ||
87 | } | 85 | } |
88 | 86 | ||
89 | static inline int | 87 | static inline void |
90 | trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, | 88 | trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, |
91 | int nmaskbits) | 89 | int nmaskbits) |
92 | { | 90 | { |
93 | return 0; | ||
94 | } | 91 | } |
95 | 92 | ||
96 | static inline int trace_print_seq(struct seq_file *m, struct trace_seq *s) | 93 | static inline int trace_print_seq(struct seq_file *m, struct trace_seq *s) |
@@ -102,23 +99,19 @@ static inline int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, | |||
102 | { | 99 | { |
103 | return 0; | 100 | return 0; |
104 | } | 101 | } |
105 | static inline int trace_seq_puts(struct trace_seq *s, const char *str) | 102 | static inline void trace_seq_puts(struct trace_seq *s, const char *str) |
106 | { | 103 | { |
107 | return 0; | ||
108 | } | 104 | } |
109 | static inline int trace_seq_putc(struct trace_seq *s, unsigned char c) | 105 | static inline void trace_seq_putc(struct trace_seq *s, unsigned char c) |
110 | { | 106 | { |
111 | return 0; | ||
112 | } | 107 | } |
113 | static inline int | 108 | static inline void |
114 | trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len) | 109 | trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len) |
115 | { | 110 | { |
116 | return 0; | ||
117 | } | 111 | } |
118 | static inline int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, | 112 | static inline void trace_seq_putmem_hex(struct trace_seq *s, const void *mem, |
119 | unsigned int len) | 113 | unsigned int len) |
120 | { | 114 | { |
121 | return 0; | ||
122 | } | 115 | } |
123 | static inline int trace_seq_path(struct trace_seq *s, const struct path *path) | 116 | static inline int trace_seq_path(struct trace_seq *s, const struct path *path) |
124 | { | 117 | { |