From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) by sourceware.org (Postfix) with ESMTPS id A26F83858407 for ; Wed, 10 Aug 2022 17:24:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A26F83858407 Received: by mail-vs1-xe29.google.com with SMTP id 67so8446651vsv.2 for ; Wed, 10 Aug 2022 10:24:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=mpjEKPG8za4Fm/GcrwDYiYZHeW8ME/cDk5XcWAYCqGw=; b=QQzd6FcyDB6zaI/1l0scp2W3Cex4V5luQF9hEJvh50AylvbrAsEHbJyJtOQksO1kG2 Oqv4UTGfUr7kjENKLXEj2U5senViXFPah10+Sc/3YK5Owt2zeNmN/3cPNDCP5vJb3iiA hexlMwN3IA8OAsQb3pJ0yh8zTQQVupVutAbb8bFdfn7rVOrJMAsaT1xRyazasWvnanKZ MXNkbcfUDDR1h0GYSUjUUEPPaUyt9mu53efomb9Jl0mIChJaQhXLU2qRay9PHxAQgb0V FTCeKQFOkHVkOg8VadPwllixsFq9W+5Ca1flTdjcooJAtwqoWuqRhAOu3XprfAAYm8/q XVrQ== X-Gm-Message-State: ACgBeo220e39Eu21XfogShqKhgbIZi9dsrtgbrgOAv7UrZ36LK4IoE1+ h6LRW/4GXWH+9Bz3SspVYopTox4ZxSz0vQ== X-Google-Smtp-Source: AA6agR4rXQvzDsQPcb4ke9GvkuA/cBOgfcl9VJ+4We6gOqxALT0Poxe3Y1wy5BrG2fWD++WeKXWiuA== X-Received: by 2002:a67:cf05:0:b0:388:59cb:2336 with SMTP id y5-20020a67cf05000000b0038859cb2336mr12664685vsl.9.1660152290826; Wed, 10 Aug 2022 10:24:50 -0700 (PDT) Received: from mandiga.. ([2804:431:c7ca:930b:405a:6d95:e89e:4020]) by smtp.gmail.com with ESMTPSA id i31-20020a0561023d1f00b00388859a325asm155722vsv.30.2022.08.10.10.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 10:24:50 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Florian Weimer Subject: [PATCH v2 0/5] Fix sys/mount.h and kernel header tests Date: Wed, 10 Aug 2022 14:24:42 -0300 Message-Id: <20220810172447.1502169-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2022 17:24:53 -0000 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 -- 2.34.1