Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Nikola Ciprich <extmaillist@linuxbox.cz>
To: drbd-dev@lists.linbit.com
Cc: nikola.ciprich@linuxbox.cz
Subject: [Drbd-dev] [PATCH] Remove proc_root usage (fixes 2.6.26 build)
Date: Tue, 1 Jul 2008 10:34:40 +0200	[thread overview]
Message-ID: <20080701083440.GA4432@develbox.linuxbox.cz> (raw)

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

             reply	other threads:[~2008-07-01  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-01  8:34 Nikola Ciprich [this message]
2008-07-01  9:58 ` [Drbd-dev] [PATCH] Remove proc_root usage (fixes 2.6.26 build) Lars Ellenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080701083440.GA4432@develbox.linuxbox.cz \
    --to=extmaillist@linuxbox.cz \
    --cc=drbd-dev@lists.linbit.com \
    --cc=nikola.ciprich@linuxbox.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox