Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp987760lqo; Thu, 9 May 2024 01:02:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYHv+4soGRnjQfnYn/gs3sT+pNNZqX0Grd4J80RnLOWMjG1Cf1bYfmSGABkuVKNRvBEODuwpnO0ymyXuxxQ93xB0XDKIfg1QPERSBpuA== X-Google-Smtp-Source: AGHT+IGNJtoNUMyT/WXt/iqeZA8GbuXpakJeVwX8W4UI9tcNr7laRObfzM54d7CJf7BhrfpzZH7S X-Received: by 2002:a05:620a:248f:b0:78e:bdc8:563b with SMTP id af79cd13be357-792b2849825mr678701385a.71.1715241723626; Thu, 09 May 2024 01:02:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715241723; cv=pass; d=google.com; s=arc-20160816; b=bp7fdP1EnsAM6ux/fpUvXaioq0E0RI9GrqizOBHxmfRRCksS6L+oG8R+hyrheZMI0T ubQfoi77srSBrwVB4o/6kPgpAUFWObTAa7Smo/dlPCdwobJ3lLfeB/N5+wh/zKt9T9Sk Qnl7KcYZzeub1e6wh8YFoAZjeARnVoSYjsth3wxi3ox8Nzj0snJiwt1b+zjujOwrA3gr pDDn+iaR06FlhmqkSWmAYlMKGzlPr6CX5M+LJi4VdfqUwzJS2tECzCwBhRnB+dlHKyiG B07BbrSBdvEsvMka1QDrDINrZYbNXy7mFe+WgIpdeSPIVr5QIbskSVRSqSlK77N7WXu8 O4gA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=xLXeNgRtZokwk3VFG0hDiYr8Te+dAziXL4Nxnoawa5k=; fh=B48armJ0GcWJbawvoPKHzyAqGTwcjlaxUux31ITNdjg=; b=LR3nqVNxfD+152ciEmEamGQZRMcB6NvirbW/WJGVY+8pDVSWswxZFf7CzygW243UfZ 2s3h+Ozz6IW3Rgc406Y0Y6XMNV1ZfBP/SnkMuNVRdCTlmA7NYCFDAfBnAq8eWsP8GrQC gp5tg0AVM/emudAxAntHCZqp7Hyk125uPd4ZNEt+xNNKVNk5Ai6gJR0HL5nGOqa1LDGM wvagvvzN8e26UPkyUbOj0SAs5zXtFfVTLEcAbiyocwtXPCGubOHDPZ/wKkyXuI9dPGou rjT4mlgbzjdNM0O1dWmuH+FBH5ebDFv8zc672OecXk1UgbFSRTH1U0Xv0RxBiZlASb7z y3NQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eBHsIzGp; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-174161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174161-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-792bf30b63csi81024485a.275.2024.05.09.01.02.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 01:02:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174161-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=eBHsIzGp; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-174161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174161-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 844F51C229EA for ; Thu, 9 May 2024 05:35:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A97C114A0A7; Thu, 9 May 2024 05:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eBHsIzGp" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 5C17C14A084; Thu, 9 May 2024 05:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715232829; cv=none; b=ZMwXn/Dy9jagzuEurPCqnvbiOlL1WJj6wEDWIzSaouMC5tsAJ2GtWWnc21uECPFOZmqNKNyxXEuyGeHRMS1c4S9v0Bd5vyGLq1qCESHALs/trMd5zsI9P2SIGf0jkF0K/4bf39op1DDpg4Ua3gS5UTPEJoBITBqNLAcTZQD3loI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715232829; c=relaxed/simple; bh=3Ex41zxZJpQFqhcvv30eVA/Rdlt84AztCsldCSW3S3I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=dzuTx9LiMvVxe4YOhR7UZIU3EIGQako/aVTiyUpFZJv3TNr4dE452wRHTbnG30AlP+0guxTM8MwCBO25ql2t2FAsvADDaqjj9fNQ29C1309z/ke9VKACyCszQ0LtJIHJyPJOzriDMQEWpaM+n2AK1ytzsuDtBBiwpMrw0zsmVtA= 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=eBHsIzGp; arc=none smtp.client-ip=198.175.65.18 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=1715232828; x=1746768828; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3Ex41zxZJpQFqhcvv30eVA/Rdlt84AztCsldCSW3S3I=; b=eBHsIzGpKNzKzVY0K0haB6R9KzR2tsNUXkzct5Gfp5x0GWP+vaGOfjap r4X8Ck2q1jSq3uDD7Q0oqGfM+sX4+lQjtIG/oFZCkrBfeQCex+55bkhFp YSpMEGcFhzgEsrYI5DJPqwJNu5+6/r8vUo0OX5NJNKObgVug/MaViv9wH FU/BK8xu/36H00lzmirjXblGTQw46H7C/6hiviw2App8oSauMYnZTFYCF Jc/gfm7VDVAmztTgfuHussJCvzimmC7amEOhMcEB39egER82TuJ+uzFg8 zZlkSKvGhPGwHdo/VHZ2qxlzfoE9GsEpE0nB8YPGFxjwCByGCwPR86tzz Q==; X-CSE-ConnectionGUID: ebsSsMhtQn685BEadfVuMg== X-CSE-MsgGUID: VN13pNzFRceOlZCPJx3hZg== X-IronPort-AV: E=McAfee;i="6600,9927,11067"; a="11286345" X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="11286345" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 22:33:48 -0700 X-CSE-ConnectionGUID: bFeud+yySzylKh5uE2BOpQ== X-CSE-MsgGUID: ajvf2dKpQh6BItEGgn+qsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="66558870" Received: from unknown (HELO st-server.bj.intel.com) ([10.240.193.102]) by orviesa001.jf.intel.com with ESMTP; 08 May 2024 22:33:42 -0700 From: Tao Su To: 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 Cc: akpm@linux-foundation.org, edliaw@google.com, 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, kuba@kernel.org, pabeni@redhat.com, alexandre.belloni@bootlin.com, jarkko@kernel.org, dave.hansen@linux.intel.com, tao1.su@linux.intel.com Subject: [PATCH v2 0/2] Selftests: Fix compilation warnings due to missing _GNU_SOURCE definition Date: Thu, 9 May 2024 13:31:11 +0800 Message-Id: <20240509053113.43462-1-tao1.su@linux.intel.com> X-Mailer: git-send-email 2.34.1 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-Transfer-Encoding: 8bit Since kselftest_harness.h introduces asprintf()[1], many selftests have compilation warnings or errors due to missing _GNU_SOURCE definitions. The issue stems from a lack of a LINE_MAX definition in Android (see commit 38c957f07038), which is the reason why asprintf() was introduced. We tried adding _GNU_SOURCE definitions to more selftests to fix, but asprintf() may continue to cause problems, and since it is quite late in the 6.9 cycle, we would like to revert 809216233555 first to provide testing for forks[2]. [1] https://lore.kernel.org/all/20240411231954.62156-1-edliaw@google.com [2] https://lore.kernel.org/linux-kselftest/ZjuA3aY_iHkjP7bQ@google.com v1 -> v2: - Stop defining _GNU_SOURCE in related selftests - Revert commit 809216233555 - Use 1024 in place of LINE_MAX to fix 38c957f07038 v1: https://lore.kernel.org/all/20240507063534.4191447-1-tao1.su@linux.intel.com/ Tao Su (2): Revert "selftests/harness: remove use of LINE_MAX" selftests/harness: Use 1024 in place of LINE_MAX tools/testing/selftests/kselftest_harness.h | 11 +++-------- tools/testing/selftests/mm/mdwe_test.c | 1 - 2 files changed, 3 insertions(+), 9 deletions(-) base-commit: 45db3ab70092637967967bfd8e6144017638563c -- 2.34.1