From 38a88261363a4cef1fa3b8c11edca51955c7a183 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 22 Dec 2015 10:13:59 +0900 Subject: [PATCH] opal/datatype: #include when needed and nowhere else --- opal/datatype/opal_datatype_copy.c | 5 ++--- opal/datatype/opal_datatype_copy.h | 6 ++++++ opal/datatype/opal_datatype_optimize.c | 7 +++---- opal/datatype/opal_datatype_position.c | 6 +----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/opal/datatype/opal_datatype_copy.c b/opal/datatype/opal_datatype_copy.c index 700bad3ac2..1e2c5f7000 100644 --- a/opal/datatype/opal_datatype_copy.c +++ b/opal/datatype/opal_datatype_copy.c @@ -13,6 +13,8 @@ * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. * Copyright (c) 2013 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2015 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -23,9 +25,6 @@ #include "opal_config.h" #include -#ifdef HAVE_ALLOCA_H -#include -#endif #include #include "opal/prefetch.h" diff --git a/opal/datatype/opal_datatype_copy.h b/opal/datatype/opal_datatype_copy.h index 7519674765..d4ed216a5d 100644 --- a/opal/datatype/opal_datatype_copy.h +++ b/opal/datatype/opal_datatype_copy.h @@ -4,6 +4,8 @@ * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. + * Copyright (c) 2015 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -11,6 +13,10 @@ * $HEADER$ */ +#ifdef HAVE_ALLOCA_H +#include +#endif + #if !defined(MEM_OP_NAME) #error #endif /* !defined((MEM_OP_NAME) */ diff --git a/opal/datatype/opal_datatype_optimize.c b/opal/datatype/opal_datatype_optimize.c index b52719bcfc..5b66e4df59 100644 --- a/opal/datatype/opal_datatype_optimize.c +++ b/opal/datatype/opal_datatype_optimize.c @@ -11,7 +11,9 @@ * Copyright (c) 2004-2006 The Regents of the University of California. * All rights reserved. * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. - * Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2015 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -22,9 +24,6 @@ #include "opal_config.h" #include -#ifdef HAVE_ALLOCA_H -#include -#endif #include #include "opal/datatype/opal_datatype.h" diff --git a/opal/datatype/opal_datatype_position.c b/opal/datatype/opal_datatype_position.c index 0e1907c32b..f5e51b86f9 100644 --- a/opal/datatype/opal_datatype_position.c +++ b/opal/datatype/opal_datatype_position.c @@ -12,7 +12,7 @@ * All rights reserved. * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2013 Cisco Systems, Inc. All rights reserved. - * Copyright (c) 2014 Research Organization for Information Science + * Copyright (c) 2014-2015 Research Organization for Information Science * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * @@ -26,10 +26,6 @@ #include #include -#ifdef HAVE_ALLOCA_H -#include -#endif - #include "opal/datatype/opal_datatype.h" #include "opal/datatype/opal_convertor.h" #include "opal/datatype/opal_datatype_internal.h"