Message ID | 20250226-parse_vdso-nolibc-v2-15-28e14e031ed8@linutronix.de (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0ED36C021BF for <linux-mm@archiver.kernel.org>; Wed, 26 Feb 2025 11:45:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2D2A628000B; Wed, 26 Feb 2025 06:45:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2321E280003; Wed, 26 Feb 2025 06:45:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0370228000B; Wed, 26 Feb 2025 06:45:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D623428000A for <linux-mm@kvack.org>; Wed, 26 Feb 2025 06:45:24 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 460991612E5 for <linux-mm@kvack.org>; Wed, 26 Feb 2025 11:45:20 +0000 (UTC) X-FDA: 83161915200.23.31DEAA4 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf21.hostedemail.com (Postfix) with ESMTP id 703D41C0008 for <linux-mm@kvack.org>; Wed, 26 Feb 2025 11:45:18 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=i07d6hLp; dkim=pass header.d=linutronix.de header.s=2020e header.b=aZ0cAhZ3; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf21.hostedemail.com: domain of t-8ch@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=t-8ch@linutronix.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740570318; a=rsa-sha256; cv=none; b=a61tsXyQ2t8AfeSvfqGaq/RB3e0oEShEh6hXKKYWVk6qCJ7ojy+BVgdY4pi8eOqHcvbdWl Z9G3f8gCSVJlC3P69HAfPY+v8KacKb+C4ATkmq86ucol8/gx+OyJMefMS5i3UwS1hPicOp i3v918hexPiZ/epYcTEJRtK/90/cYjk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740570318; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=7Frurs6AseTy7r99TUsr5RPDF9RZSrY1kmlW1JOY/EA=; b=m4HG1L9ttwNf5ONB1EykWOESqSKQK9ln8Jme8MVccns/Z/WejpTCeBdM8HQVLI/H+7hi5W PD4EQTpIFA2WLsQxgBeWIJk3z2JM7XI0w1ls/DKTl9R4CTQhShl02m81PdpaTdA2Z5HQOZ hVvD/c7u+GGodkOliyPTPkdQwrryBQ4= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=i07d6hLp; dkim=pass header.d=linutronix.de header.s=2020e header.b=aZ0cAhZ3; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf21.hostedemail.com: domain of t-8ch@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=t-8ch@linutronix.de From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1740570317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7Frurs6AseTy7r99TUsr5RPDF9RZSrY1kmlW1JOY/EA=; b=i07d6hLpd8GRg/0WO5Jpo1GY+NkHlsL1doz1LXrPNrHTjVuF3KVkhCjK0VrhySrSxv4HSB qefSAed7+5iLZndx789yLs2chd71BICnRokDw51tpySQvtOQGSOX3Zozp/ngVM7uDeZ2o4 WaH59GBm/Som63p3aIfI9IsPiJfn03k37LbhZKPnNKycT6ftsHPyZZuuP0T5QoA26b/inI m0EOk6g19wrq/nmG5yn1T9ZZtcohpUsWiRo3wF/oqsKR4ChAygYS3PGha/Fz5kD76gANjw yKl1PPjmGXei2aSFksZQsyCI8Z0jgHq+Pad4HGy2Vosa5yzRudA3yRSSY1pT9A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1740570317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7Frurs6AseTy7r99TUsr5RPDF9RZSrY1kmlW1JOY/EA=; b=aZ0cAhZ3vtmBKcWcSDLdrI5iL4bR3GxRXgPx2FX5cDJbHZNPpQjmNDpY4nIdUEQEOb02+u J6umpPJpSs00G0Cg== Date: Wed, 26 Feb 2025 12:44:54 +0100 Subject: [PATCH v2 15/16] selftests: vDSO: vdso_test_gettimeofday: Make compatible with nolibc MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20250226-parse_vdso-nolibc-v2-15-28e14e031ed8@linutronix.de> References: <20250226-parse_vdso-nolibc-v2-0-28e14e031ed8@linutronix.de> In-Reply-To: <20250226-parse_vdso-nolibc-v2-0-28e14e031ed8@linutronix.de> To: Kees Cook <kees@kernel.org>, Eric Biederman <ebiederm@xmission.com>, Shuah Khan <shuah@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Bill Wendling <morbo@google.com>, Justin Stitt <justinstitt@google.com>, Andy Lutomirski <luto@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Willy Tarreau <w@1wt.eu>, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de> X-Developer-Signature: v=1; a=ed25519-sha256; t=1740570307; l=882; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=tbmVgPy5yB8VdfdnJ4tJow8kzco/2Q3QjZOCjC6QEJI=; b=i7Uxstabjdg7j+J9zoPP0U58OGXCZjkCegWTxPjKC3TGUAF7tp+8mShrhr+dffxZi3sMXHudr +5QpKEY+MERBDeZT4FYzTLcqudiLXqH5aJAYMfkHsNZZ3oltA+l4BMP X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= X-Rspamd-Queue-Id: 703D41C0008 X-Rspamd-Server: rspam08 X-Rspam-User: X-Stat-Signature: 7k87s6caamyne7da7366qmfxijcou37g X-HE-Tag: 1740570318-785730 X-HE-Meta: U2FsdGVkX1/afcUpQBKRhDVDgoaAG+DjLiDGAt3eD1zD70bCDpYmBgqgsQ3+5lpS4v9LJN48i+s8hpbkzxPwHwD0HvRyvwPu8Dvyxox4WrUaWoidAo7/hBRRksFfE4w57/73GKHPHPxGXTarSzUOi5W/gRvTFglsiPHBlYO8gK5fStyTQhT1hhkfTpubg1+krbTPSTqpa2aK9JSwe+nPE2lQ0ngiw3Z3LnQOXTqB34ik2LHfIrUBoUkmyVctjB3KcOrjnPR2HrZzAwPorW0V8sF/UgEbH17kOL88Bklop5mLXUYesHfazQDWL6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fC5w2MnHAVYI+9+xjr+lFhllqJPWVa4LvF+jhZJpHqwKjOxZcAbGe7GqVTUTvnXVMneRkfkf6qSZ0B36ebI6HUnjbpCVd55DddyqoMSJIc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
selftests: vDSO: parse_vdso: Make compatible with nolibc
|
expand
|
diff --git a/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c b/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c index 636a56ccf8e4e7943ca446fe3fad6897598ca77f..9ce795b806f0992b83cef78c7e16fac0e54750da 100644 --- a/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c +++ b/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c @@ -11,8 +11,10 @@ */ #include <stdio.h> +#ifndef NOLIBC #include <sys/auxv.h> #include <sys/time.h> +#endif #include "../kselftest.h" #include "parse_vdso.h"
nolibc does not provide sys/time.h and sys/auxv.h, instead their definitions are available unconditionally. Guard the includes so they are not attempted on nolibc. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> --- tools/testing/selftests/vDSO/vdso_test_gettimeofday.c | 2 ++ 1 file changed, 2 insertions(+)