From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: [PATCH 1/5] cr: define ckpt_debug if CONFIG_CHECKPOINT=n Date: Fri, 28 Aug 2009 16:00:41 -0500 Message-ID: <20090828210041.GA27878@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Linux Containers List-Id: containers.vger.kernel.org So not all c/r code has to be ifdefed... See patch 5/5 (add selinux support) for its use. Signed-off-by: Serge E. Hallyn --- 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