Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp214709lql; Fri, 12 Apr 2024 08:17:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBWfqRRhvv9J1pcbhcYElsEjYIis+w56HWkJmnQtLIqBV6nVDcHSvpSCLnXm/rlxQY3Xwy6QJfQWuHlseX2v69+aCEh3wSSmuaYOQ5XA== X-Google-Smtp-Source: AGHT+IELCBJ3sJYp4POSTgEVfYHtfKj3tN8CkusyYirfVv3mWNR1Nu+0bzdZfyekc5FRHorEA5tH X-Received: by 2002:a17:90b:1096:b0:2a6:d064:15d5 with SMTP id gj22-20020a17090b109600b002a6d06415d5mr2686950pjb.18.1712935050429; Fri, 12 Apr 2024 08:17:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712935050; cv=pass; d=google.com; s=arc-20160816; b=ZAL6EHe+4LHuUWmcDDGMbcdPBuL/s8R03tD8NbrCelp1BQmQ/mW3rxtO82CwJCiVZb AALRjUm0QyDujKL5XWpgZqCjYPBfzB0ugoWZnEEmAwR8i5ili/FlIa1KZz61W0BVuTz1 OmUpuTrs30iuOf9FUMFNpLIobajeBxduDpvvLIE0o/59bLUpFpQvSJzRgzQmtXOvD7sy PQHe1uyEWljlfnIqtrnAfL5ADkIHXAcXuozUkRYIx1lZNU44D1LzH4KXBDPu9t/szJ+6 OT+d2tlViE+OUGWjgugrnJ9jidfcwPpVDpKBa5bIP8P+aQTjcjet00/343pfY5iiACnw IgQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=k+sb4T77vVIISGAAkhvDFJJ9IEKWyr1iK5aWNGNgcOg=; fh=8NJVZPflC0adODrndtMYaAcQQEpnsTnPDEO/am3NDp0=; b=YW6Hm0ZbupPpO06T50SZl6+FylJVlyS/4ER6jMUFRgTIB56py9Hx9l4eCcOLuRTwFm MpeZhbvbzM1qjzpikwRNEiFW0395wzvDgPa5a/yMMj+5lehMUHAAza1BHcuWUAwXSnIE T6OWitOSs1AB7hJQlMuFy5djTcJLVdr05BuY0GeBAwuzx3MYrLgeJaQ8EuTwGYGinL+8 MVDVfEqSUk37ZUx+OG1SNKoyUUGvS81pKST0KatNg0devRKkUbeZ5y4guycHakIIGRhj +olWxveNzB1dTAhYLyCc04hS3Hocgh5dbJIGk0GpS8OkUeDTKR0RgleUUfb02YjxrZ14 Gaeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OOscJ6AD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e60-20020a17090a6fc200b002a2ac468596si3573720pjk.9.2024.04.12.08.17.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OOscJ6AD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BCAEBB22002 for ; Fri, 12 Apr 2024 14:59:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C88C6146D6E; Fri, 12 Apr 2024 14:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="OOscJ6AD"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YTIfSCx/" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FAB9143899; Fri, 12 Apr 2024 14:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712933940; cv=none; b=T6Ln9/uAw76TBd1ifW5abfT09NzDhbHn53Lo+xovu9v8peytZdviYYBtoiggvj2dBAWSrRdubF1+OyD5htJAdpW2RYn7qzPjUW7/1CHv2ZrZohnTvSpIVlrodR7tAxqIhL0khRqU7QaiStnn8gWfkmBBwZljnboFyHu0Pb73k+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712933940; c=relaxed/simple; bh=CSjVEpwxyOzY0Yk3BwD1xzaHqhoL+fSMwcHHunVAufU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=O0WnqGlKGSNJtDlmiAOy8w55+g6akGsNTgyluqI1n9venO2iyE0AyiqTI5iCSLyNd6VFc2chcE1xfrhFownJ/6yVUiR1INKYDLuRFdUTr/MLMkRlpP1RXs4XgZBDCL+c7dRPW4sqJPyordzgkmhCyUiDvPBiwFiHccNOCih4OK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=OOscJ6AD; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YTIfSCx/; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Fri, 12 Apr 2024 14:58:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712933937; h=from:from:sender:sender:reply-to: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=k+sb4T77vVIISGAAkhvDFJJ9IEKWyr1iK5aWNGNgcOg=; b=OOscJ6ADedhoWa57bOqk8ifmCsbQ79JOmTjhEB1E4K4V4SRreD09I0ton/+6K17PIigScD wToR0Ir+1im4upZ85TNqlZvDlpq1IBaWdw6hN6t4/h8nmRLEchliluFtfh7x1uB4NtBHQu KLXeebV8FUj7HDAdgxFQNY5zEVXFmn4Py64ro0n4zojoKtk7B7HYSkSW3AZYDA9nCXklqe Wg8qLeHH4fUtNCr8ZNXefSHPErXC9dxI9acoI7n+DJgyUqsjbqKOI9f/P+D2aSAIjdGrcl dAEd4WvShg8dnhwvHw+AbOcjN7xLblDcqXrWyHc01AIEY8opmd66/mu+FxNV+g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712933937; h=from:from:sender:sender:reply-to: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=k+sb4T77vVIISGAAkhvDFJJ9IEKWyr1iK5aWNGNgcOg=; b=YTIfSCx/9+OKD8j8LwEFNPMFt5WcC54mzsNk1VxSNm4FODbSpCCKcl9mkZ+HDWopyxIzz6 egxF3t5WSjPVhgCw== From: "tip-bot2 for Oleg Nesterov" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/urgent] selftests: kselftest: Fix build failure with NOLIBC Cc: Mark Brown , Oleg Nesterov , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240412123536.GA32444@redhat.com> References: <20240412123536.GA32444@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171293393654.10875.10737366810353639391.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 16767502aa990cca2cb7d1372b31d328c4c85b40 Gitweb: https://git.kernel.org/tip/16767502aa990cca2cb7d1372b31d328c4c85b40 Author: Oleg Nesterov AuthorDate: Fri, 12 Apr 2024 14:35:36 +02:00 Committer: Thomas Gleixner CommitterDate: Fri, 12 Apr 2024 16:55:00 +02:00 selftests: kselftest: Fix build failure with NOLIBC As Mark explains ksft_min_kernel_version() can't be compiled with nolibc, it doesn't implement uname(). Fixes: 6d029c25b71f ("selftests/timers/posix_timers: Reimplement check_timer_distribution()") Reported-by: Mark Brown Signed-off-by: Oleg Nesterov Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240412123536.GA32444@redhat.com Closes: https://lore.kernel.org/all/f0523b3a-ea08-4615-b0fb-5b504a2d39df@sirena.org.uk/ --- tools/testing/selftests/kselftest.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h index 0591974..7b89362 100644 --- a/tools/testing/selftests/kselftest.h +++ b/tools/testing/selftests/kselftest.h @@ -395,6 +395,10 @@ static inline __noreturn __printf(1, 2) int ksft_exit_skip(const char *msg, ...) static inline int ksft_min_kernel_version(unsigned int min_major, unsigned int min_minor) { +#ifdef NOLIBC + ksft_print_msg("NOLIBC: Can't check kernel version: Function not implemented\n"); + return 0; +#else unsigned int major, minor; struct utsname info; @@ -402,6 +406,7 @@ static inline int ksft_min_kernel_version(unsigned int min_major, ksft_exit_fail_msg("Can't parse kernel version\n"); return major > min_major || (major == min_major && minor >= min_minor); +#endif } #endif /* __KSELFTEST_H */