#! /bin/sh /usr/share/dpatch/dpatch-run ## remove_deprecated_proc_root.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad sysprof-1.0.10~/module/sysprof-module.c sysprof-1.0.10/module/sysprof-module.c --- sysprof-1.0.10~/module/sysprof-module.c 2008-10-17 15:24:26.336146168 +0200 +++ sysprof-1.0.10/module/sysprof-module.c 2008-10-17 15:29:09.548145238 +0200 @@ -249,7 +249,7 @@ static struct file_operations fops; trace_proc_file = - create_proc_entry ("sysprof-trace", S_IFREG | S_IRUGO, &proc_root); + create_proc_entry ("sysprof-trace", S_IFREG | S_IRUGO, NULL); if (!trace_proc_file) return 1; @@ -273,7 +273,7 @@ { unregister_timer_hook (timer_notify); - remove_proc_entry("sysprof-trace", &proc_root); + remove_proc_entry("sysprof-trace", NULL); printk(KERN_ALERT "sysprof: unloaded\n"); }