Skip to contentSkip to conversation

Remove proc_root usage (fixes 2.6.26 build)

PATCH In review Nikola Ciprich 2 participants 2 messages Jul 1, 2008 DRBD driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove proc_root usage (fixes 2.6.26 build)

Hi,
following patch removes usage of obsolete proc_root by usind NULL instead. Please apply
BR
nik

drbd/drbd_main.c 2008-07-01 03:27:16.000000000 -0400 renamed from drbd/drbd_main.c 2008-06-10 08:02:55.000000000 -0400 +2 -2
diff -Naur drbd-8.0.git/drbd/drbd_main.c drbd-8.0.git-remove-proc-root/drbd/drbd_main.c
@@ -2342,7 +2342,7 @@
 
        if (minor_table) {
                if (drbd_proc)
-                       remove_proc_entry("drbd",&proc_root);
+                       remove_proc_entry("drbd",NULL);
                i=minor_count;
                while (i--) {
                        drbd_dev        *mdev  = minor_to_mdev(i);
@@ -2579,7 +2579,7 @@
        /*
         * register with procfs
         */
-       drbd_proc = create_proc_entry("drbd",  S_IFREG | S_IRUGO , &proc_root);
+       drbd_proc = create_proc_entry("drbd",  S_IFREG | S_IRUGO , NULL);
 
        if (!drbd_proc) {
                printk(KERN_ERR DEVICE_NAME": unable to register proc file\n");
Signature · 13 lines
-------------------------------------
Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 01 Ostrava

tel.:   +420 596 603 142
fax:    +420 596 621 273
mobil:  +420 777 093 799
www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: [email protected]
-------------------------------------
maintainer
#1 lore raw
Quoted 3 lines · Nikola Ciprich

Hi,
following patch removes usage of obsolete proc_root by usind NULL instead. Please apply

will have to check against "backwards compatibility" in the old SLES 9 and RHEL 4 kernels first.

but thanks,
will do.

Signature · 3 lines
: Lars Ellenberg                            Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :