All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue@us.ibm.com>
To: Oren Laadan <orenl@cs.columbia.edu>
Cc: Linux Containers <containers@lists.osdl.org>,
	linux-security-module@vger.kernel.org,
	SELinux <selinux@tycho.nsa.gov>
Subject: [PATCH 1/4] cr: define ckpt_debug if CONFIG_CHECKPOINT=n
Date: Thu, 10 Sep 2009 15:22:48 -0500	[thread overview]
Message-ID: <20090910202248.GA7072@us.ibm.com> (raw)
In-Reply-To: <20090910202219.GA6778@us.ibm.com>

So not all c/r code has to be ifdefed...

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
---
 include/linux/checkpoint.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/checkpoint.h b/include/linux/checkpoint.h
index 761cad5..06e3eb0 100644
--- a/include/linux/checkpoint.h
+++ b/include/linux/checkpoint.h
@@ -337,6 +337,9 @@ extern unsigned long ckpt_debug_level;
 
 #endif /* CONFIG_CHECKPOINT_DEBUG */
 
+#else /* CONFIG_CHECKPOINT */
+#define _ckpt_debug(level, fmt, args...)	do { } while (0)
+#define ckpt_debug(fmt, args...)		do { } while (0)
 #endif /* CONFIG_CHECKPOINT */
 #endif /* __KERNEL__ */
 
-- 
1.6.1


WARNING: multiple messages have this Message-ID (diff)
From: "Serge E. Hallyn" <serue@us.ibm.com>
To: Oren Laadan <orenl@cs.columbia.edu>
Cc: Linux Containers <containers@lists.osdl.org>,
	linux-security-module@vger.kernel.org,
	SELinux <selinux@tycho.nsa.gov>
Subject: [PATCH 1/4] cr: define ckpt_debug if CONFIG_CHECKPOINT=n
Date: Thu, 10 Sep 2009 15:22:48 -0500	[thread overview]
Message-ID: <20090910202248.GA7072@us.ibm.com> (raw)
In-Reply-To: <20090910202219.GA6778@us.ibm.com>

So not all c/r code has to be ifdefed...

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
---
 include/linux/checkpoint.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/checkpoint.h b/include/linux/checkpoint.h
index 761cad5..06e3eb0 100644
--- a/include/linux/checkpoint.h
+++ b/include/linux/checkpoint.h
@@ -337,6 +337,9 @@ extern unsigned long ckpt_debug_level;
 
 #endif /* CONFIG_CHECKPOINT_DEBUG */
 
+#else /* CONFIG_CHECKPOINT */
+#define _ckpt_debug(level, fmt, args...)	do { } while (0)
+#define ckpt_debug(fmt, args...)		do { } while (0)
 #endif /* CONFIG_CHECKPOINT */
 #endif /* __KERNEL__ */
 
-- 
1.6.1


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2009-09-10 20:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 20:22 [PATCH 0/4] LSM checkpoint/restart: introduction Serge E. Hallyn
2009-09-10 20:22 ` Serge E. Hallyn
2009-09-10 20:22 ` Serge E. Hallyn [this message]
2009-09-10 20:22   ` [PATCH 1/4] cr: define ckpt_debug if CONFIG_CHECKPOINT=n Serge E. Hallyn
2009-09-10 20:23 ` [PATCH 2/4] cr: add generic LSM c/r support Serge E. Hallyn
2009-09-10 20:23   ` Serge E. Hallyn
2009-09-10 20:23 ` [PATCH 3/4] cr: add smack support to lsm c/r Serge E. Hallyn
2009-09-10 20:23   ` Serge E. Hallyn
2009-09-10 20:23 ` [PATCH 4/4] cr: add selinux support Serge E. Hallyn
2009-09-10 20:23   ` Serge E. Hallyn
2009-09-10 20:23 ` [PATCH 1/1] mktree: accept the lsm_name field in header and add -k flag Serge E. Hallyn
2009-09-10 20:23   ` Serge E. Hallyn

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=20090910202248.GA7072@us.ibm.com \
    --to=serue@us.ibm.com \
    --cc=containers@lists.osdl.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=orenl@cs.columbia.edu \
    --cc=selinux@tycho.nsa.gov \
    /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 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.