Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp928245lqo; Wed, 8 May 2024 22:13:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwfb7QhN87NFB0da2WLRSHfhUBG3wkqLFBReHC6Ogui+zO3alFXAhY/7R/bF/Gu1kP+hkM1z5cFEzVntCLm23gr6xESiC4eAMhuCfyvg== X-Google-Smtp-Source: AGHT+IFduo093kxxVEmazPAkHj22OPG9oxuY5Wzg35BFVLjbFVfnDRFHYhWm7WR/17kTmz0pp+ew X-Received: by 2002:a05:620a:560d:b0:792:ba04:65f5 with SMTP id af79cd13be357-792ba0466f0mr290916785a.35.1715231606110; Wed, 08 May 2024 22:13:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715231606; cv=pass; d=google.com; s=arc-20160816; b=uBqyRTIq8PR7CHllWYwkKWCr8W1SKTf9V45bV9ZHyy5FIEehbrn/dQK8rhknkcQI0b o3kyJfd7s0AWWxAp28qjk3/myRfELCJ2TSc1fy3vo8JWjXgjj967bAqIKupoqmHpX9FU ddYSR5/BsTDJkEgkW1u0HkAD3K5wZpTIpM42SyZXv5an90X3ODc+XK7GmU6gv5qWYFm9 of3kvuWzJLzF0tau145PVN+ubO4mGm0PEvbR8kXVVDL3cBBq6q7o6Ir5mXRmxV+Ba5AU HHBjHMZB/+pBhk0Ar1qIf9sgPSmsz0MHcefO/L/dtAPdu++ZAVY3OA4SeHuWWLimD3bI gTCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:dkim-signature; bh=sPBOM75YHxy4w5oXPnO6K78dWi0IBRkY0QkmKFko57E=; fh=34XDNg8Py81BXsuaAa37ji6EiOKdF9eULmWymjTyhj0=; b=YWD4fMX+woU6GEg0x9i54lo+GeEQGcU7qSrTpEYYD4x5g2kBz5H8taU/usAmzVP/Xs VGTtKSQdFWqIBawxKzT7N51+v4fvgwtgVXZ33OZugWuyd44bvcsTuseLYdpx/NbWkcZ6 jXl3TirAxaDxj5Q8IBPHtOFvVwjYJ+VSjlPdtKdeOHayKwiwbF6SMTUhSASu62K1CKjb Xzi8V2RQMH40/XETd0rSuHNnATXzJ222dreCibV2oOL546Zd48C5+okrOFrnTopk4w1F PAvUwIKijpXdMSScJfDMP4iRGdzfXFl8hXY6A68VbI59RNx57toKrG1Vt1LfsxvlbKmc nkmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jfq6Nxpd; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-174146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf361f8fsi54893185a.579.2024.05.08.22.13.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 22:13:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jfq6Nxpd; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-174146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 86B981C22743 for ; Thu, 9 May 2024 05:13:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9A7A1494BC; Thu, 9 May 2024 05:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jfq6Nxpd" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 9A13D12BEA4; Thu, 9 May 2024 05:13:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715231591; cv=none; b=SmTBVwy9V6C/0Bcr2hK9K7cFArOFhHXshdFq4iPidpX1Ux+d7Ef/V+hJ4S2kOYhzem2yRAlq7rBZZ1LPawGsVEFK6ImA7cLeVuONikuQrKWDIM7T11J8zCeBaFZefhgeq5nn/Z6n5vLj4jW0VFKmsIlvh/cW6W8d504fQYSyHIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715231591; c=relaxed/simple; bh=+HjK0kYCcPNRfuW5/8B5m3uHChuYZwdu24oRvM7pCxs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c7ReVFSP40T6f+j0D2itsJ84GvQ8McjKIg3xPRRthXErD0o8GJ75GkKQDTZ36kz7QbqmTduxiMvIIuFO/rJxoWNLSsmfFIxKXRPIZVx9biG4Yd6UxHZD++hZd4rikUoNtuDLsK5MsowGTcaGXpGTYcGYXtI/Phm6fev98n4i5PE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jfq6Nxpd; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715231590; x=1746767590; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=+HjK0kYCcPNRfuW5/8B5m3uHChuYZwdu24oRvM7pCxs=; b=jfq6NxpdUAJbIzl3QOAMQB6mHHsJ4qbs87QD+YXCrXqYXLwFU6/X3wyM FSekhpyuXgALkvIbkEiFYPh6rMky0kMxg8YFtIhtzWy3zOzzbrh6cVEks X7P9rxDHcckPWvNX5tRQUAUa6+L6UR45y26XKaWwDVrDI+PYS1VmzWJJ1 1XZrHeG+Sh/SO1xUKK6HKa4alsP8r1i6vjTTzOcEl3Bb8GvXtbuadY+t1 aGao6kcXhoxsCVkiW3wP1B2zGO7aQBNQdb0p6n6dqf6I9lBU/sOFL37rM dvoJ6UD1nK5k29oKTKpqUInEQK61BkvgjRCEJ23Jk8yrVMFvHUlhqR+5c A==; X-CSE-ConnectionGUID: MXjgI9r4SraRmS+MC2VP8A== X-CSE-MsgGUID: n7cW3X3ORoKC84b4a3mh+g== X-IronPort-AV: E=McAfee;i="6600,9927,11067"; a="22279651" X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="22279651" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 22:13:09 -0700 X-CSE-ConnectionGUID: /Bb1nj+5TLiK0Mf+JhLsaQ== X-CSE-MsgGUID: 9AnJBeW3TaakuIFpxgH/SQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="52318694" Received: from linux.bj.intel.com ([10.238.157.71]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 22:13:04 -0700 Date: Thu, 9 May 2024 13:10:23 +0800 From: Tao Su To: Edward Liaw Cc: Jakub Kicinski , Andrew Morton , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org, ivan.orlov0322@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, shuah@kernel.org, seanjc@google.com, pbonzini@redhat.com, bongsu.jeon@samsung.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, alexandre.belloni@bootlin.com, jarkko@kernel.org, dave.hansen@linux.intel.com Subject: Re: [PATCH] selftests: Add _GNU_SOURCE definition when including kselftest_harness.h Message-ID: References: <20240507063534.4191447-1-tao1.su@linux.intel.com> <20240507100651.8faca09c7af34de28f830f03@linux-foundation.org> <20240508070003.2acdf9b4@kernel.org> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, May 08, 2024 at 10:57:47AM -0700, Edward Liaw wrote: > On Wed, May 8, 2024 at 7:00 AM Jakub Kicinski wrote: > > > > On Wed, 8 May 2024 10:55:05 +0800 Tao Su wrote: > > > Back to commit 38c957f07038, I don't see any advantage in using LINE_MAX. > > > Can we use a fixed value instead of LINE_MAX? E.g., 1024, 2048. Then we > > > just need to revert commit 809216233555. > > > > SGTM, FWIW. The print is printing a test summary line, printing more > > than 1k seems rather unreasonable. Other facilities, like TH_LOG(), > > should be used for displaying longer info. > > I also submitted some patches to fix the _GNU_SOURCE issues here: > https://lore.kernel.org/linux-kselftest/20240507214254.2787305-1-edliaw@google.com/ > > I'm fine with this approach. It's aligned to what Sean suggested > there, since it's causing a lot of troubles for the release cycle. Thanks, I will submit patches with this approach soon.