From: Daniel Walker Convert likely profiling to use proc_create instead of create_proc_entry. Signed-off-by: Daniel Walker Cc: Alexey Dobriyan Signed-off-by: Andrew Morton --- lib/likely_prof.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff -puN lib/likely_prof.c~likely_prof-changed-to-use-proc_create lib/likely_prof.c --- a/lib/likely_prof.c~likely_prof-changed-to-use-proc_create +++ a/lib/likely_prof.c @@ -136,10 +136,11 @@ static struct file_operations proc_likel static int __init init_likely(void) { - struct proc_dir_entry *entry; - entry = create_proc_entry("likely_prof", 0, &proc_root); - if (entry) - entry->proc_fops = &proc_likely_operations; + struct proc_dir_entry *entry = + proc_create("likely_prof", 0, &proc_root, + &proc_likely_operations); + if (!entry) + return 1; return 0; } _