From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa2b.google.com (mail-vk1-xa2b.google.com [IPv6:2607:f8b0:4864:20::a2b]) by sourceware.org (Postfix) with ESMTPS id 2AF74385414D for ; Wed, 24 Aug 2022 13:07:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2AF74385414D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-vk1-xa2b.google.com with SMTP id t64so8565090vkb.12 for ; Wed, 24 Aug 2022 06:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=I2Ba0qVRleTQ/5sJbbEYAyLlJF6G2VwjLPCZj2Weuqk=; b=DpgWE3rOVExmP8S8F6YkLaLdRl2O0aKAkH24tCopxULcb7eeCokn26ZKjuQKXPPnFY 4cQgcYVFShz85nUKbqvbv1bzq7cwb1q0i+KyCSzHE/a2ZgMtkAPOP02ICIfi8hzsjH+E pFvYzlEZ+tQZe10rCOCMgzarluWP73oVgMWKyjy6G5twWd1qswEHZfBV95HAPn88V2eS +bPzqlO8IVpzV5M2iaeWsa8coM09Mbsp61JgVJvGHg8TfiOs7V3ur6hczzoF9Iw3nkpq NxKPFAae/p0vfx3qUhgGW5bi3/6kBClCJ0Ot+4f7VzsGN583hrqB3i79LhQ3ONJjgU0C j/Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=I2Ba0qVRleTQ/5sJbbEYAyLlJF6G2VwjLPCZj2Weuqk=; b=57qFgzgWYXaPLkmFbo9vXPh5UK8BU1+cYNmuUr2orhq6OV0pSEBRPxn5u/ZmvhHddf KlvhNcaHxOf4vQ5zSWeXSDecd+enBEdUV4oHIFUkxUiaHoIe+YNa1ypzZ17k5JRVqdd3 VM0sPq1O2k8l6C2Hc6kavLAYQIeq1UvQ3EWmAtm6tTgAT/tXTYRRwgZXNKHiwWu4hgbp bYKWMCyV81uRC6TsMw1pDkMiOJ0GUEcSCE1AvKijv3rKtxUWOC9yxsYquQXTY2+gc073 PeedRC30X9ZCeBLn7x2sf8Z8fWI2q2koVKo9qHO+BCLIcVpkUhE/0+ua+mF60FPlpTsd rvXg== X-Gm-Message-State: ACgBeo3I3Tj4oR//5scSYytiDtjJAYtkJS7kTmt/Lj2qfD5ikdldv20M FUQSdfdE2vcR20ngj4ZcS4rbrrUyVa6ROg== X-Google-Smtp-Source: AA6agR7ZddJd4Ppg9/DI4gS5VWN1ZYLDxYQOOVSHte/oJBz0/0AGaT2ZWvCdY5VtfSEujfnxfvjcFQ== X-Received: by 2002:a05:6122:180f:b0:38c:2a30:aee3 with SMTP id ay15-20020a056122180f00b0038c2a30aee3mr7120426vkb.41.1661346453257; Wed, 24 Aug 2022 06:07:33 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:745e:1e2b:867:85d9:4667]) by smtp.gmail.com with ESMTPSA id k6-20020a9f3f86000000b0038275916987sm13709836uaj.14.2022.08.24.06.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 06:07:32 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Florian Weimer Subject: [COMMITTED 2.36 3/5] linux: Use compile_c_snippet to check linux/mount.h availability Date: Wed, 24 Aug 2022 10:07:18 -0300 Message-Id: <20220824130720.2236114-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220824130720.2236114-1-adhemerval.zanella@linaro.org> References: <20220824130720.2236114-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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 List-Id: Checked on x86_64-linux-gnu. Reviewed-by: Florian Weimer (cherry picked from commit e1226cdc6b209539a92d32d5b620ba53fd35abf3) --- sysdeps/unix/sysv/linux/tst-mount-consts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py index a62f803123..be2ef2daf1 100755 --- a/sysdeps/unix/sysv/linux/tst-mount-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py @@ -33,6 +33,11 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() + if glibcextract.compile_c_snippet( + '#include ', + args.cc).returncode != 0: + sys.exit (77) + linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) # Constants in glibc were updated to match Linux v5.16. When glibc # constants are updated this value should be updated to match the -- 2.34.1