sched/debug: use DEFINE_SEQ_ATTRIBUTE to simplify code
PATCH 1/1 sched/debug: use DEFINE_SEQ_ATTRIBUTE to simplify code
Use DEFINE_SEQ_ATTRIBUTE to simplify code.
No functional change.
Signed-off-by Liu Shixin <[email protected]>
--- kernel/sched/debug.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
kernel/sched/debug.c +1 -11
@@ -246,17 +246,7 @@ __read_mostly bool sched_debug_verbose;static const struct seq_operations sched_debug_sops; -static int sched_debug_open (struct inode *inode,struct file *filp) -{ -return seq_open (filp, &sched_debug_sops); -} - -static const struct file_operations sched_debug_fops = { - .open = sched_debug_open, - .read = seq_read, - .llseek = seq_lseek, - .release = seq_release, -}; +DEFINE_SEQ_ATTRIBUTE (sched_debug);static struct dentry *debugfs_sched;
Signature · 1 line
2.25.1