[v2,0/5] Fix sys/mount.h and kernel header tests

Message ID 20220810172447.1502169-1-adhemerval.zanella@linaro.org
Headers
Series Fix sys/mount.h and kernel header tests |

Message

Adhemerval Zanella Netto Aug. 10, 2022, 5:24 p.m. UTC
  The patchset removes the testing against the installed Linux version,
instead check if the required header is present.

It also fixes the sys/mount.h to be able use along kernel linux/mount.h
and linux/fs.h headers.

Adhemerval Zanella (5):
  glibcextract.py: Add compile_c_snippet
  linux: Use compile_c_snippet to check linux/pidfd.h availability
  linux: Mimic kernel defition for BLOCK_SIZE
  linux: Use compile_c_snippet to check linux/mount.h availability
  linux: Fix sys/mount.h usage with kernel headers

 scripts/glibcextract.py                      | 20 ++++++
 sysdeps/unix/sysv/linux/Makefile             |  8 +++
 sysdeps/unix/sysv/linux/sys/mount.h          | 73 +++++++++++++++++---
 sysdeps/unix/sysv/linux/tst-mount-compile.py | 66 ++++++++++++++++++
 sysdeps/unix/sysv/linux/tst-mount-consts.py  |  5 ++
 sysdeps/unix/sysv/linux/tst-pidfd-consts.py  |  8 ++-
 6 files changed, 168 insertions(+), 12 deletions(-)
 create mode 100755 sysdeps/unix/sysv/linux/tst-mount-compile.py