From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4D6F8225F321D for ; Fri, 6 Apr 2018 14:41:11 -0700 (PDT) From: "Verma, Vishal L" Subject: Re: [ndctl PATCH] ndctl: export ndctl.h Date: Fri, 6 Apr 2018 21:41:08 +0000 Message-ID: <1523050867.19605.13.camel@intel.com> References: <152287934701.9679.14197084162568828006.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <152287934701.9679.14197084162568828006.stgit@dwillia2-desk3.amr.corp.intel.com> Content-Language: en-US Content-ID: MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: "Williams, Dan J" , "linux-nvdimm@lists.01.org" List-ID: Resending, looks like the list rejected my reply because my client was attaching s-mime signatures.. On Wed, 2018-04-04 at 15:02 -0700, Dan Williams wrote: > The ndctl project maintains a local version of the ndctl.h header file > published by the kernel. Given that the kernel header may be out of date > relative to the header used to build ndctl, provide the local version in > ndctl/ndctl.h alongside ndctl/libndctl.h so that consumers of the > library have access to the same definitions used to build the library. > > Reported-by: Juston Li > Signed-off-by: Dan Williams > --- > ndctl/lib/Makefile.am | 2 +- > ndctl/ndctl.h | 2 ++ > test/ack-shutdown-count-set.c | 3 --- > 3 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/ndctl/lib/Makefile.am b/ndctl/lib/Makefile.am > index e3a12e7177e9..77970399bf00 100644 > --- a/ndctl/lib/Makefile.am > +++ b/ndctl/lib/Makefile.am > @@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.am.in > %.pc: %.pc.in Makefile > $(SED_PROCESS) > > -pkginclude_HEADERS = ../libndctl.h > +pkginclude_HEADERS = ../libndctl.h ../ndctl.h > lib_LTLIBRARIES = libndctl.la > > libndctl_la_SOURCES =\ > diff --git a/ndctl/ndctl.h b/ndctl/ndctl.h > index ebd2a41cce46..c6aaa4c0981f 100644 > --- a/ndctl/ndctl.h > +++ b/ndctl/ndctl.h > @@ -13,7 +13,9 @@ > #ifndef __NDCTL_H__ > #define __NDCTL_H__ > > +#ifndef ARRAY_SIZE > #include > +#endif > #include > #include > #include > diff --git a/test/ack-shutdown-count-set.c b/test/ack-shutdown-count- > set.c > index ef38176442f1..6766c5f3b021 100644 > --- a/test/ack-shutdown-count-set.c > +++ b/test/ack-shutdown-count-set.c > @@ -15,9 +15,6 @@ > > #include > #include > -#ifdef HAVE_NDCTL_H > -#include > -#else > #include > #endif This orphaned #endif needs to be removed too. > #include > _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm