Skip to contentSkip to conversation

ftrace: Remove ftrace_regex_lseek()

PATCH In review Li Zefan 2 participants 2 messages Jun 7, 2013 ftrace

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 ftrace: Remove ftrace_regex_lseek()

This is a leftover after ftrace_regex_lseek() was renamed to ftrace_filter_lseek() and then ftrace_filter_lseek() was moved out side of CONFIG_DYNAMIC_FTRACE.

---
 include/linux/ftrace.h | 4 ----
 1 file changed, 4 deletions(-)
include/linux/ftrace.h +0 -4
index 99d0fbc..e48ed1d 100644
@@ -566,10 +566,6 @@ static inline ssize_t ftrace_filter_write(struct file *file, const char __user *
 			    size_t cnt, loff_t *ppos) { return -ENODEV; }
 static inline ssize_t ftrace_notrace_write(struct file *file, const char __user *ubuf,
 			     size_t cnt, loff_t *ppos) { return -ENODEV; }
-static inline loff_t ftrace_regex_lseek(struct file *file, loff_t offset, int whence)
-{
-	return -ENODEV;
-}
 static inline int
 ftrace_regex_release(struct inode *inode, struct file *file) { return -ENODEV; }
 #endif /* CONFIG_DYNAMIC_FTRACE */
Signature · 1 line
1.8.0.2
maintainer
#1 lore raw
Quoted 5 lines · Li Zefan

This is a leftover after ftrace_regex_lseek() was renamed to ftrace_filter_lseek() and then ftrace_filter_lseek() was moved out side of CONFIG_DYNAMIC_FTRACE.

Thanks! I queued this up for 3.11, as it's not important enough for a later -rc release.

-- Steve

Quoted 19 lines
---
 include/linux/ftrace.h | 4 ----
 1 file changed, 4 deletions(-)
include/linux/ftrace.h +0 -4
index 99d0fbc..e48ed1d 100644
@@ -566,10 +566,6 @@ static inline ssize_t ftrace_filter_write(struct file *file, const char __user *
 			    size_t cnt, loff_t *ppos) { return -ENODEV; }
 static inline ssize_t ftrace_notrace_write(struct file *file, const char __user *ubuf,
 			     size_t cnt, loff_t *ppos) { return -ENODEV; }
-static inline loff_t ftrace_regex_lseek(struct file *file, loff_t offset, int whence)
-{
-	return -ENODEV;
-}
 static inline int
 ftrace_regex_release(struct inode *inode, struct file *file) { return -ENODEV; }
 #endif /* CONFIG_DYNAMIC_FTRACE */