diff mbox series

[1/5] libsepol/test Include policydb.h header for policydb_t declaration

Message ID 20220414135141.1723610-1-jwcart2@gmail.com (mailing list archive)
State Accepted
Headers show
Series [1/5] libsepol/test Include policydb.h header for policydb_t declaration | expand

Commit Message

James Carter April 14, 2022, 1:51 p.m. UTC
Since test-linker-cond-map.h and test-linker-types.h references
policydb_t, include the policydb header file.

Signed-off-by: James Carter <jwcart2@gmail.com>
---
 libsepol/tests/test-linker-cond-map.h | 2 ++
 libsepol/tests/test-linker-types.h    | 2 ++
 2 files changed, 4 insertions(+)

Comments

Petr Lautrbach April 20, 2022, 6:54 p.m. UTC | #1
James Carter <jwcart2@gmail.com> writes:

> Since test-linker-cond-map.h and test-linker-types.h references
> policydb_t, include the policydb header file.
>
> Signed-off-by: James Carter <jwcart2@gmail.com>

For all 5 patches:

Acked-by: Petr Lautrbach <plautrba@redhat.com>

> ---
>  libsepol/tests/test-linker-cond-map.h | 2 ++
>  libsepol/tests/test-linker-types.h    | 2 ++
>  2 files changed, 4 insertions(+)
>
> diff --git a/libsepol/tests/test-linker-cond-map.h b/libsepol/tests/test-linker-cond-map.h
> index 148c6f62..740a722e 100644
> --- a/libsepol/tests/test-linker-cond-map.h
> +++ b/libsepol/tests/test-linker-cond-map.h
> @@ -21,6 +21,8 @@
>  #ifndef __TEST_LINKER_COND_MAP_H__
>  #define __TEST_LINKER_COND_MAP_H__
>  
> +#include <sepol/policydb/policydb.h>
> +
>  extern void base_cond_tests(policydb_t * base);
>  extern void module_cond_tests(policydb_t * base);
>  
> diff --git a/libsepol/tests/test-linker-types.h b/libsepol/tests/test-linker-types.h
> index 0c860ebf..acad5e0e 100644
> --- a/libsepol/tests/test-linker-types.h
> +++ b/libsepol/tests/test-linker-types.h
> @@ -21,6 +21,8 @@
>  #ifndef __TEST_LINKER_TYPES_H__
>  #define __TEST_LINKER_TYPES_H__
>  
> +#include <sepol/policydb/policydb.h>
> +
>  extern void base_type_tests(policydb_t * base);
>  extern void module_type_tests(policydb_t * base);
>  
> -- 
> 2.34.1
James Carter April 20, 2022, 7:01 p.m. UTC | #2
On Wed, Apr 20, 2022 at 2:54 PM Petr Lautrbach <plautrba@redhat.com> wrote:
>
> James Carter <jwcart2@gmail.com> writes:
>
> > Since test-linker-cond-map.h and test-linker-types.h references
> > policydb_t, include the policydb header file.
> >
> > Signed-off-by: James Carter <jwcart2@gmail.com>
>
> For all 5 patches:
>
> Acked-by: Petr Lautrbach <plautrba@redhat.com>
>

These patches have been merged.
Thanks,
Jim

> > ---
> >  libsepol/tests/test-linker-cond-map.h | 2 ++
> >  libsepol/tests/test-linker-types.h    | 2 ++
> >  2 files changed, 4 insertions(+)
> >
> > diff --git a/libsepol/tests/test-linker-cond-map.h b/libsepol/tests/test-linker-cond-map.h
> > index 148c6f62..740a722e 100644
> > --- a/libsepol/tests/test-linker-cond-map.h
> > +++ b/libsepol/tests/test-linker-cond-map.h
> > @@ -21,6 +21,8 @@
> >  #ifndef __TEST_LINKER_COND_MAP_H__
> >  #define __TEST_LINKER_COND_MAP_H__
> >
> > +#include <sepol/policydb/policydb.h>
> > +
> >  extern void base_cond_tests(policydb_t * base);
> >  extern void module_cond_tests(policydb_t * base);
> >
> > diff --git a/libsepol/tests/test-linker-types.h b/libsepol/tests/test-linker-types.h
> > index 0c860ebf..acad5e0e 100644
> > --- a/libsepol/tests/test-linker-types.h
> > +++ b/libsepol/tests/test-linker-types.h
> > @@ -21,6 +21,8 @@
> >  #ifndef __TEST_LINKER_TYPES_H__
> >  #define __TEST_LINKER_TYPES_H__
> >
> > +#include <sepol/policydb/policydb.h>
> > +
> >  extern void base_type_tests(policydb_t * base);
> >  extern void module_type_tests(policydb_t * base);
> >
> > --
> > 2.34.1
>
diff mbox series

Patch

diff --git a/libsepol/tests/test-linker-cond-map.h b/libsepol/tests/test-linker-cond-map.h
index 148c6f62..740a722e 100644
--- a/libsepol/tests/test-linker-cond-map.h
+++ b/libsepol/tests/test-linker-cond-map.h
@@ -21,6 +21,8 @@ 
 #ifndef __TEST_LINKER_COND_MAP_H__
 #define __TEST_LINKER_COND_MAP_H__
 
+#include <sepol/policydb/policydb.h>
+
 extern void base_cond_tests(policydb_t * base);
 extern void module_cond_tests(policydb_t * base);
 
diff --git a/libsepol/tests/test-linker-types.h b/libsepol/tests/test-linker-types.h
index 0c860ebf..acad5e0e 100644
--- a/libsepol/tests/test-linker-types.h
+++ b/libsepol/tests/test-linker-types.h
@@ -21,6 +21,8 @@ 
 #ifndef __TEST_LINKER_TYPES_H__
 #define __TEST_LINKER_TYPES_H__
 
+#include <sepol/policydb/policydb.h>
+
 extern void base_type_tests(policydb_t * base);
 extern void module_type_tests(policydb_t * base);