Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp879497lqp; Sun, 14 Apr 2024 04:07:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiaWvsfHLLQdemJ4DZtnEli4ftkPjAMQ/hshhi9DJo6x4ziSl1M6yY5J9AHXvKpvgYazwxwAQVyUrY9ao6+Jh5HdtZMNBqz9IOU3ISDQ== X-Google-Smtp-Source: AGHT+IEmHhyEvEtw05OMbX8y+M1/lgVlk+iNIl/WxeLi6vs//g2f9luuZ5tLd8kXxzqs7jSaGuKR X-Received: by 2002:a17:902:ecc1:b0:1e3:faed:280 with SMTP id a1-20020a170902ecc100b001e3faed0280mr9054251plh.47.1713092830017; Sun, 14 Apr 2024 04:07:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713092830; cv=pass; d=google.com; s=arc-20160816; b=E/b30oJ/lFSZ0KqxNrATP941+0I5dz43R0oKc12Y4c/VR+46bP3bhcFp3eM3Rtz18i 5YDzYD3hs0QR++GmYQcZpJ+IaoUOxhc6Y1EGJAUJ0PJrwY1sjdSvXdYPwuZPEhjK2y8N gVDeifmd/Kceqm1q45eJP/F703AOD+lFyPH6Cft7VM+KNA8coZLWQlg2GeYC3M7jD9+P aZzY68+LNwnOnIlvM8BLQTIEKV52vWX22XB/WZhCo26S3O6HkUK0NaeDetQ920fK0ZyG XlLsJMwj3B/jyAOBISYsW1hAPvUhe8uQ8/eBlQz8rmCr1srUmh76OrXIghN97C3kXHMx jABQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=OoBiJsVqnOURZ/5mc3ZVuniu79VNUX2NXNRgS3AVPSQ=; fh=qYSE4JWoGuek8PPANgtObAomYOrd4iJoUXDlbhr3PnI=; b=y5vnbJ1wq8S41hD43B5KX13MYPYNwvttlfdRaN1tvumyzLtyJUXZ1QGNm/bflVxuMy ZJRE5y3pOqSdYuqFTsGRcql7NeeR7D8Hifh7JGlVfJKKXjFvt7Hq4Yz6IWtGPnWrGGgG /D5C5obErWF6nnpKmZAHdc/fchQUmS+VN5PpVuGmW6BY4ponK0qRw/mpMGgJX7k2rygw oAwZ15K/rucCkdmtzuAEHMRvCCSBmhmVnKE0cTTh2M/xM/DBM5E8iJ0iSQR2yK6YQC0j KcELebZzowQ9VetHb/1V+dHyNuqjIf1aBl8ALcms/y8OKbeygqkbjZyZhdYp4aGUuNeu fMaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-144113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144113-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d7-20020a170902654700b001e3e3adea66si6005562pln.641.2024.04.14.04.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 04:07:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144113-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; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-144113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144113-linux.lists.archive=gmail.com@vger.kernel.org" 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 E45C5B20E6F for ; Sun, 14 Apr 2024 11:07:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C57736124; Sun, 14 Apr 2024 11:06:59 +0000 (UTC) Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 180B52E633; Sun, 14 Apr 2024 11:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=163.172.96.212 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713092818; cv=none; b=sAReVDLV7dsExiJ4Vp9BkkojsA8u+ruByHjxYf/DDKeFKxrlMM/MUbpJ2L0gVlQrARBRBb5F2C48exGpb1hqZHQvh9KxcDFDkN64tJycvycL9HzrIQN2X6KPZCEKld2PzRY6YOcDD7H1OLd1GsH7ENcaJ2zQPdkkg+p2coo0+3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713092818; c=relaxed/simple; bh=miun8jVmCtQfWySsPIyXcoPjpOxTuPM88zBCy1XymS4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KuDnh7+LtdC8Qwrr64dsc5ab0Xid4KADNe8dz96FLo0emNbh1LjZY4jwaimxFlcTJfJHlihOLs6idtFxAWkKsIvpYh3/B1lJ76CdS+Q2zglzcyf8FnUmrQcRQYohNOherDzfru7ZHaXubHK8GmHRKPD4vsiyjQAl7kupmX7DaLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; arc=none smtp.client-ip=163.172.96.212 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 43EAukRc002592; Sun, 14 Apr 2024 12:56:46 +0200 Date: Sun, 14 Apr 2024 12:56:46 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] tools/nolibc: add support for uname(2) Message-ID: <20240414105646.GA2236@1wt.eu> References: <20240414-nolibc-uname-v1-1-28a1fdbd5c64@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240414-nolibc-uname-v1-1-28a1fdbd5c64@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Thomas! On Sun, Apr 14, 2024 at 09:56:23AM +0200, Thomas Wei?schuh wrote: > All supported kernels are assumed to use struct new_utsname. > This is validated in test_uname(). > > uname(2) can for example be used in ksft_min_kernel_version() from the > kernels selftest framework. > > Link: https://lore.kernel.org/lkml/20240412123536.GA32444@redhat.com/ I find it really annoying when other developers waste time trying to work around some missing trivial syscalls. I would have bet we already had this one, but obviously not. That's obviously an ack by me: Acked-by: Willy Tarreau Thank you! Willy