From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH] c/r: fix broken compilation for architectures that don't support c/r Date: Wed, 10 Feb 2010 12:02:56 -0600 Message-ID: <20100210180256.GD12251@us.ibm.com> References: <1265759643-23495-1-git-send-email-orenl@cs.columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1265759643-23495-1-git-send-email-orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org> 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: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Quoting Oren Laadan (orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org): > The include file itself includes the header > , which exists only for supported architectures. > > Therefore, non c/r specific code must not include it unconditionally, > but only when CONFIG_CHECKPOINT is defined. > > Instead, either use include , which take the > necessary precautions (preferred), or explicit test CONFIG_CHECKPOINT. > > This patch fixes this in eventfd.c and eventpoll.c, to allow a kernel > with the c/r patches to compile on other architectures. > > (Reported by: Christoffer Dall) > > Signed-off-by: Oren Laadan > --- > fs/eventfd.c | 1 - > fs/eventpoll.c | 5 ----- > 2 files changed, 0 insertions(+), 6 deletions(-) > > diff --git a/fs/eventfd.c b/fs/eventfd.c > index 5259d6e..3277534 100644 > --- a/fs/eventfd.c > +++ b/fs/eventfd.c > @@ -19,7 +19,6 @@ > #include > #include > #include > -#include > > struct eventfd_ctx { > struct kref kref; > diff --git a/fs/eventpoll.c b/fs/eventpoll.c > index cb286c7..aedaf87 100644 > --- a/fs/eventpoll.c > +++ b/fs/eventpoll.c > @@ -38,12 +38,7 @@ > #include > #include > #include > - > -#ifdef CONFIG_CHECKPOINT > #include > -#include > -#include Where does deferqueue.h get included from, though? Kind of looks like checkpoint_types.h should include that anyway, then we can remove the explicit include from checkpoint{checkpoint,files,restart,sys}.c > -#endif > > /* > * LOCKING: > -- > 1.6.3.3 > > _______________________________________________ > Containers mailing list > Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org > https://lists.linux-foundation.org/mailman/listinfo/containers