All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] [PATCH] Remove proc_root usage (fixes 2.6.26 build)
@ 2008-07-01  8:34 Nikola Ciprich
  2008-07-01  9:58 ` Lars Ellenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Nikola Ciprich @ 2008-07-01  8:34 UTC (permalink / raw)
  To: drbd-dev; +Cc: nikola.ciprich

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

diff -Naur drbd-8.0.git/drbd/drbd_main.c drbd-8.0.git-remove-proc-root/drbd/drbd_main.c
--- drbd-8.0.git/drbd/drbd_main.c       2008-06-10 08:02:55.000000000 -0400
+++ drbd-8.0.git-remove-proc-root/drbd/drbd_main.c      2008-07-01 03:27:16.000000000 -0400
@@ -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");


-- 
-------------------------------------
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: servis@linuxbox.cz
-------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Drbd-dev] [PATCH] Remove proc_root usage (fixes 2.6.26 build)
  2008-07-01  8:34 [Drbd-dev] [PATCH] Remove proc_root usage (fixes 2.6.26 build) Nikola Ciprich
@ 2008-07-01  9:58 ` Lars Ellenberg
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ellenberg @ 2008-07-01  9:58 UTC (permalink / raw)
  To: drbd-dev

On Tue, Jul 01, 2008 at 10:34:40AM +0200, Nikola Ciprich wrote:
> 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.

-- 
: 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 :

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-01  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01  8:34 [Drbd-dev] [PATCH] Remove proc_root usage (fixes 2.6.26 build) Nikola Ciprich
2008-07-01  9:58 ` Lars Ellenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.