projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d167945
)
backports: add trace_seq_buffer_ptr() where needed
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 8 Sep 2017 14:41:14 +0000
(16:41 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 8 Sep 2017 14:41:14 +0000
(16:41 +0200)
Some new code needs this, add it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/compat/backport-4.0.c
patch
|
blob
|
history
diff --git
a/backport/compat/backport-4.0.c
b/backport/compat/backport-4.0.c
index 71095f1921a087a1265933ca4cd0d4f816b2d29b..eb9508267dffc6325079dc020a81a2f75bd04a96 100644
(file)
--- a/
backport/compat/backport-4.0.c
+++ b/
backport/compat/backport-4.0.c
@@
-324,6
+324,14
@@
overflow1:
}
EXPORT_SYMBOL_GPL(hex_dump_to_buffer);
+#if LINUX_VERSION_IS_LESS(3,17,0)
+static inline unsigned char *
+trace_seq_buffer_ptr(struct trace_seq *s)
+{
+ return s->buffer + s->len;
+}
+#endif
+
const char *
ftrace_print_array_seq(struct trace_seq *p, const void *buf, int buf_len,
size_t el_size)