diff mbox series

[v2,3/8] vdso: Introduce vdso/mman.h

Message ID 20240923141943.133551-4-vincenzo.frascino@arm.com (mailing list archive)
State New
Headers show
Series vdso: Use only headers from the vdso/ namespace | expand

Commit Message

Vincenzo Frascino Sept. 23, 2024, 2:19 p.m. UTC
The VDSO implementation includes headers from outside of the
vdso/ namespace.

Introduce vdso/mman.h to make sure that the generic library
uses only the allowed namespace.

Cc: Andy Lutomirski <luto@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
---
 include/vdso/mman.h | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 include/vdso/mman.h

Comments

Christophe Leroy Sept. 25, 2024, 6:54 a.m. UTC | #1
Le 23/09/2024 à 16:19, Vincenzo Frascino a écrit :
> The VDSO implementation includes headers from outside of the
> vdso/ namespace.
> 
> Introduce vdso/mman.h to make sure that the generic library
> uses only the allowed namespace.

I can't see the added value of this header.

VDSO code can include <asm/vdso/mman.h> directly.

Christophe

> 
> Cc: Andy Lutomirski <luto@kernel.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Jason A. Donenfeld <Jason@zx2c4.com>
> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
> ---
>   include/vdso/mman.h | 7 +++++++
>   1 file changed, 7 insertions(+)
>   create mode 100644 include/vdso/mman.h
> 
> diff --git a/include/vdso/mman.h b/include/vdso/mman.h
> new file mode 100644
> index 000000000000..95e3da714c64
> --- /dev/null
> +++ b/include/vdso/mman.h
> @@ -0,0 +1,7 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +#ifndef __VDSO_MMAN_H
> +#define __VDSO_MMAN_H
> +
> +#include <asm/vdso/mman.h>
> +
> +#endif	/* __VDSO_MMAN_H */
diff mbox series

Patch

diff --git a/include/vdso/mman.h b/include/vdso/mman.h
new file mode 100644
index 000000000000..95e3da714c64
--- /dev/null
+++ b/include/vdso/mman.h
@@ -0,0 +1,7 @@ 
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __VDSO_MMAN_H
+#define __VDSO_MMAN_H
+
+#include <asm/vdso/mman.h>
+
+#endif	/* __VDSO_MMAN_H */