From patchwork Tue Apr 30 23:50:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650098 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E01F1C2303 for ; Tue, 30 Apr 2024 23:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521081; cv=none; b=EchW09G5ry4Ep8upXn/4JiM+Kefp4jUlBz1sAct9fbTwfxNQRuiT3hUkxOZQmXN39bbozFnfCcIPbgwKc+BdrTdG8avq1vFx/UoQ7HWVj6Jc3H84lWH02ecLEB1TM0myYFhW0+/bQybpPgP709M4OSeZWBPGjWb84YBhAhmpPWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521081; c=relaxed/simple; bh=hoKCCWVOkE0ESMxaMi+qTIS8AurEZYZfNn5Rvt++a10=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=IUrHV+uMx4XDJWwFSLpa/Xe7cUH+f/bj7BlBVSrDCGjwEe/w+pJWJzIVTkECvkP1UXlxiWJFcK1r08xIoetv5mDpPMhFBnhzCPUKHMWBsLtJCX8ozhkAtVdQHGmHjSWh5QcJlNUY6jvNJWPdpVEqPrSw6COrOLodqudW3ZlPWaM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=4Yx2vh98; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="4Yx2vh98" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de59d580f61so9910415276.3 for ; Tue, 30 Apr 2024 16:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521078; x=1715125878; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=gjaSNnvftOLawQ81uXTzdayleIIMFIclLDs0BuljtK4=; b=4Yx2vh985eAUe73b/Mn7onj2pzj/LBoS71ImaFxNWPt/0DIGzmxTlaskzv3d+Gb+Hp L2oyQ8B+7Xe0YZPUQst64aeW5xQCZJ9QXvCd83LpZL4+vT/DG5ys9nm6CxNHyB3q2+Mr j9r4MsmhFMUh7tLzhQZhsqgCwU0ukuUnqw5JUzUZxw4pwyQPvzdILp98ErP/aW3/auMy F/8HNoZtgvnD+ZwgUY7EoXvui5bBGspVCW3oSJhWFO/pKtL7j3F5MTOtOALW1shc33DW Yen84kX/hc1OH9b/W8IWVNIozK+opZC24W78s/cOLHhVbp2x5QLhClbx9YC3xI7RLrCc n65g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521078; x=1715125878; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gjaSNnvftOLawQ81uXTzdayleIIMFIclLDs0BuljtK4=; b=sZigHLnT1StWBmnfVmRukrbgw/m1pw05pA70/ag4uaXaUbHRGZCVSnenU9H2NmOZBC 8F9MekHBicsfeG6IQmXzwB7xLi9iBZztScQHxMvGlk/DJm9QEtABf4bqU+x9USiTqTFz McJ3iNT6r09t3mvGIk6sDgvi7jnF7gKomzErn9RyXK1YLx9MupapghzDaWOjoAerBEez QRcq2AoSgaYOGO7bm5iR1Gt+GCm8WXneqiJxHMJ0KgixFX3NmWQtOgyVjeZqx4loIGjz 0rXRsvTYmsmYILV5bV0sNmihZdmnisxtJZvYUVnyWpvY4pKaR28Ag/Wk1O/hogYVQ7LQ bpog== X-Forwarded-Encrypted: i=1; AJvYcCWtAAAdRDvZ9KPkntwsQNHgLnMjelv719KJK2a+g5k1kIBHkfCREiprq8GuUNUC/wNoTcuwpnRcMQJ4kELOpg+QTeffU2MDuFgy X-Gm-Message-State: AOJu0Yy4opOm4j4xjHYjnxGPr0l2YdoRQGU4cEui1YK8vCtnOCcDicrX u7hTsq3iaELep/wc+9TlDBBjyQDavAWkJRiCyopO134yHwPqLFDwu7VjENYCg0sL1/3d7SVENwo DIw== X-Google-Smtp-Source: AGHT+IGPMJHhRXW4IxX0wuIaJEnkwrFiECPVYI3NjrGHekGnxptI0a1rv8ukdUNpyZcLuFV1IvoMatGim7A= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:150a:b0:dc2:398d:a671 with SMTP id q10-20020a056902150a00b00dc2398da671mr352958ybu.10.1714521078081; Tue, 30 Apr 2024 16:51:18 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:10 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-2-edliaw@google.com> Subject: [PATCH v1 01/10] selftests/sgx: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org, kernel test robot 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202404301040.3bea5782-oliver.sang@intel.com Signed-off-by: Edward Liaw Reviewed-by: Jarkko Sakkinen --- tools/testing/selftests/sgx/Makefile | 2 +- tools/testing/selftests/sgx/sigstruct.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile index 867f88ce2570..272da790d9ae 100644 --- a/tools/testing/selftests/sgx/Makefile +++ b/tools/testing/selftests/sgx/Makefile @@ -12,7 +12,7 @@ OBJCOPY := $(CROSS_COMPILE)objcopy endif INCLUDES := -I$(top_srcdir)/tools/include -HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC +HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC -D_GNU_SOURCE HOST_LDFLAGS := -z noexecstack -lcrypto ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \ -fno-stack-protector -mrdrnd $(INCLUDES) diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/selftests/sgx/sigstruct.c index d73b29becf5b..a0c2de7c5302 100644 --- a/tools/testing/selftests/sgx/sigstruct.c +++ b/tools/testing/selftests/sgx/sigstruct.c @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2016-20 Intel Corporation. */ - -#define _GNU_SOURCE #include #include #include From patchwork Tue Apr 30 23:50:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650099 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FA9B1C68BF for ; Tue, 30 Apr 2024 23:51:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521086; cv=none; b=KOHGewsQSxcQmGH0iZkxAjUqylJD9msCXaOZoE8t3VPZ7QNOM9OWuyIo9SSZeY8MzfZ/4D6wluzq2ABlHnzVRBRJ/2NHyAlugxZU78H0iBFzISuaiiHbyZFeU1yvcX2juRrsE2oxYaU1kgE4M9KivsXdhDCdAw+vDjeackmko70= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521086; c=relaxed/simple; bh=sTlQvY8lGvZPuHB/3EseuBYDvbUHarzxjj1L20e4VZQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=IEIGoC42hL4AZD+eLaYZiKAQ08KahZgPOvGV+FAemOXOIvwPWu6bSXbycGjWwcUQTuP8nkwYrk63tanCUsPenMSot8AB+YahJ6JNd2gKycs4OkUMBPQ5rccxZFoChOr5JdwNsXXZWzHFhQxb8/B+yo4Ivfwwrlge61WEpBPqn8U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ODSADp1e; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ODSADp1e" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-de5a8638579so8485398276.1 for ; Tue, 30 Apr 2024 16:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521083; x=1715125883; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=sTlQvY8lGvZPuHB/3EseuBYDvbUHarzxjj1L20e4VZQ=; b=ODSADp1eQFRbLl7nhYE49t5GM9KuSLfgYomKkoF9iWuHEzWau6DhGOjqNHOUpQZGM2 NWtqQgb54VX1JOivCc/iUQhtdarwuM/7QtIihGsvxBhlf/4hrMAmcL9gsw2R8BFol3cy 2h/lsq6jdaQL3XSHKvpbWXNB5vYpnRqXR61wDBDDRBZfEpDEIrXkVxXDFcA5z0aJnANY 4CmmN+eo1ilWwWzJKNdUsoC+D6ORCV3/dMVilJOc3QJCpfze0Rd6n7X8tjbBsfug9x64 OPDdDKB/6P8jGdO1kglkHg+mnRDnpJ9bSHdFxznGnqosvzFr34w4OQGU3MxPW18oyqQd LzAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521083; x=1715125883; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sTlQvY8lGvZPuHB/3EseuBYDvbUHarzxjj1L20e4VZQ=; b=bGUESvaf+qb7k0hjKcFz8NSlzDYk4veTsTHwHWK8wOpYK1d+i9wGO1tBwwg2lgMCyz NbhkHJNvXRaU55FMcjAteXyPrLTLa4a80jY959DVg2ZavWkXXZncIotF8G4F0JvSOazY so+WEOdscmZVDRPq0rN97uUMp+epi5vxEJPKXmTSNG7OfkXibdsY5057NdL7+rTvLD9F iQZzvcDynolCdSmiq7lumv+epa/Kj39NNqfFM4iHU4RNoeruKfLKhrKRZxHUrGmWgu/1 DWvrdC5T1/UDAbATF5xyq9Phe7yDU1Ah8QXdf0FUdmbS7dD2zplWHGTFqRiPQTvOMpRb z8Ag== X-Forwarded-Encrypted: i=1; AJvYcCVvt8d88RZW/itTOR24zqsWlM9qrSQ0abW5SO/ICGEfuhw2kCSqBE/15ba4b6VAueWDArBQzt+Xx0QvAkwc1C6VjVyN2lFg0u4D X-Gm-Message-State: AOJu0YwZqdywUlHUcYpGykXmLL++Xn5Kku6KulPda88Odz1uUC/4+COO xCrBbPmLZEm5LNEI7WofF8nSV4yp7jAK07IrKqWRaqqu7ymZDcx8l/q3tMAgZdRvai3HM0ej2fK v9g== X-Google-Smtp-Source: AGHT+IHawjnD3ivyqCv4ps9nkMuRCo5h/TV1o9YMssrnDwBNMjv0tpGZfKkbqtk/WfPC4jw/0Gs09BBrmvI= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:2b8c:b0:dd9:1b94:edb5 with SMTP id fj12-20020a0569022b8c00b00dd91b94edb5mr161630ybb.10.1714521083148; Tue, 30 Apr 2024 16:51:23 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:11 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-3-edliaw@google.com> Subject: [PATCH v1 02/10] selftests/alsa: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/alsa/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/alsa/Makefile b/tools/testing/selftests/alsa/Makefile index 5af9ba8a4645..3a0fae2bea39 100644 --- a/tools/testing/selftests/alsa/Makefile +++ b/tools/testing/selftests/alsa/Makefile @@ -6,6 +6,7 @@ LDLIBS += $(shell pkg-config --libs alsa) ifeq ($(LDLIBS),) LDLIBS += -lasound endif +CFLAGS += -D_GNU_SOURCE CFLAGS += -L$(OUTPUT) -Wl,-rpath=./ LDLIBS+=-lpthread From patchwork Tue Apr 30 23:50:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650100 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1245F1C9EAA for ; Tue, 30 Apr 2024 23:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521090; cv=none; b=QrqYRNezHtAvGCx49mx3zKT7BngBekU2A+n1RUGVW1e779ZPMICu6mpIJ+FBEjHHzZlpIuFyuoz28L9li/5D4VAPe2CNmmoGPa2kBzgi26dNpz+xa1YHneg0YSI00PEkSFwPRUNlguIKTF++Jba93P3G+qD8OPPcI5kOcqoWhKY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521090; c=relaxed/simple; bh=4sLsMn+75D63ePKL84qIUrZuVTfpP4Y9iFVCYDx6ZoM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=u/1PMIiaxB8AD7vijY3KOxnUR73fIvD5e55+iyg9FlHuNH7VNm5omybdOv31FJWkRK+jbD3Bry3FySX5vZ2tzQbb6nX6J8mO21FNe6dGFIu6Qw6HzSbA6kJv78tdEIJtkQVEMGUWli+2u+7Am4O5yP2/CpCANEJxEPZ5vjaPSuw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ckLL+yi9; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ckLL+yi9" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1e278ebfea1so71871035ad.0 for ; Tue, 30 Apr 2024 16:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521088; x=1715125888; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=4sLsMn+75D63ePKL84qIUrZuVTfpP4Y9iFVCYDx6ZoM=; b=ckLL+yi9rIZvpky/0YOzu/iCUml5oJ095EDOY2GFeVA3ZS/B0Yvy9ljyyKagzlZu/E zWfMYHDP8isZ5t8eRVrUer+buWyO15PpcvkfxvJxXdFAdyDu7tzqqT7J8gzCU8E360BP XGQQTPdxpzxQEAn9s+M0sm0gBkYbxgM9EEinCSZh508V3n7ftLZ9Zi9dxDPAAfa/gImy WiMHpdJaIm6kBBTwUrPO7e/zKlN2WmJtP+OZK4P/NXZFxcxCTn445CPIsdAKUm4m+H/Z ODyPltbvq8jlm7LIoXgefy3g1Top6wefCrXBM9zSf0qAhVXRhRkYjB6ZSwbOZF/d0l1J Wlkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521088; x=1715125888; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4sLsMn+75D63ePKL84qIUrZuVTfpP4Y9iFVCYDx6ZoM=; b=b1QdBbP+t2z7wKKyFknlpaM1QBQvjx8K+IEcfYEoAwSePEgsu/J0OOP8JVEq0CXmdW PHoQDfCMmZfGUqu8ESEY8tGOdyeJx026UZPynqSLV8kH6BjFYyHJojpZXVOzCAWx2eAk KiXtZr47UckEDkCnQfpAq7UMOwlr5PWpDEabHZA/7Si1XQSmmQqxNffHJ7HnSqz3MhSb AYsyO0BpJnfL5wkqjjjUl0qtP5bFNPqGLiL8GcCf7H1169CIn+FbLokwYtcfOm7s+lXJ /sUUI9+S6ZEtYuRSBBss9N0o7+TNTvUnQshAd7qc+08JqDwwqEN0TLpPj+Idctkd1rMn TfHw== X-Forwarded-Encrypted: i=1; AJvYcCV3aewpG3YrIuQyuLSl22CY88aQa5QtFFYGXP1FPeDu3eDKhRP87FELzbGqC7rPHeMvVv8yXjsHZMe4fHRnFraXOMFZ9b3isgKl X-Gm-Message-State: AOJu0YyrIHrBsyCEgE5I4K4Utk5HRIrACqavz7156SAz2Hk0UAeh3Nmp X9I0uQ0jwGo0QF/tVmI5kEj6BlSOxP4gNeWPX1uY/wDlU7aPhmFCThxqYZ2/5QC4E75HFEUYHLz Rng== X-Google-Smtp-Source: AGHT+IFtSHl2ws+41HKA57TwcS7ukKljLv0iJvc43sJuHvghYmCWKqHkqlRowkQ3pfhszR/h4a+oHj0mSuE= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:dacc:b0:1dd:cc3f:6510 with SMTP id q12-20020a170902dacc00b001ddcc3f6510mr6327plx.3.1714521088265; Tue, 30 Apr 2024 16:51:28 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:12 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-4-edliaw@google.com> Subject: [PATCH v1 03/10] selftests/hid: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/hid/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index 2b5ea18bde38..33170d23315b 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -21,7 +21,7 @@ CXX ?= $(CROSS_COMPILE)g++ HOSTPKG_CONFIG := pkg-config -CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT) +CFLAGS += -g -O0 -rdynamic -Wall -Werror -D_GNU_SOURCE -I$(OUTPUT) CFLAGS += -I$(OUTPUT)/tools/include LDLIBS += -lelf -lz -lrt -lpthread From patchwork Tue Apr 30 23:50:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650101 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C4D61C2328 for ; Tue, 30 Apr 2024 23:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521096; cv=none; b=MG4MC6mlNJjDVtmct410zLRSWG/0A5PB10h/KKSMKABz4q6+0P9jS1WPZzVpdBoDlX5k4VPg1bdSvRbKh1OmGI+pBmeI8A73w9rHzsGJPPJ6tL8nbLLqS3oKhMN/9wB+4lBElIm8mojHBacl2t9EfVP1AFCHCBFlH5coP2qlAhc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521096; c=relaxed/simple; bh=y7pEc5taF0Bx7YOXfxt+O85Tt8RH3vKYyQLjJaUCrbI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=S0b5/hS2Kb+ConkMOqOW17jIzUEefcse4YKBaVtk7zhStu0J7FfbcUkr4vO2012y5GbgwTiv6gKmeZKA8zIWFiCo/E6IyHV83gzww2kcaEv56NqRInKyj+gt2CtFoHRyMvjDR8Ofcoc4GMDABdBjjX7IRyO8dWBMrf9sa6neM+E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=B3LDvGkQ; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="B3LDvGkQ" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-60f502e1671so4330217a12.0 for ; Tue, 30 Apr 2024 16:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521094; x=1715125894; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=kM67DbNAqGoOnnaxPY0sLf1UR/LdcGYFGTuUrdY7Kyo=; b=B3LDvGkQNkaciOwuzfjTU/yQ+IrAzAB3KqSFdX3xAbaSkBQEJPPCSDC3cIiWW+sYs7 TrLOWDeH5oCjdNW6YVS44lzG91MfmYVEW8ss+IT6WFYb9ApyGkGsQRIH9X4dkGIs6Ovq BSJgeIJm+QxSmtaRCVwBh7TOws/4IP3iq//SM/wNRpmp7aGPHJxSY0YN2/I8sO6AVb0e XWJLJTghTVPOMWkpj2VIEnox6MpyGTCBVJk+U0lcab4+UaasBn8gJaQaDj/roDNKwZNS qyNVqwgfiarIA6GsnfSlzRsZU2Z/wX9E2c/T71EoF9wQLl+jz9WV0W9T3QnmyQNeFYt0 Qs9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521094; x=1715125894; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kM67DbNAqGoOnnaxPY0sLf1UR/LdcGYFGTuUrdY7Kyo=; b=BY/k5r3yi8hyxxcJjosxrLE/058njs+pjPwEV/t9qOYOg8vW58gaO6o/sOrxXHvtHJ 4hvtpGVY/Cji8DAu6HCJ/kiZ45z/k0oweEjQ+OjWlxHUXaVg8f5CLfx+v7ZWQxkKS1Zy kRdPRorjsX746jaf8d4g6Xf/g932dXg6IQ53pizpI1gg/wjEpawGIg2mScXwTvuV2Gij Ez5UTT5gfyefv5B2huuU5rm+fTVlegdijpShS4uBk9j+V80fsV3DxeydFn1P6PH+p+vT W9xWW8VcCSvwoyfqMzn4v/lW/M9NTcRfPPaan86byIxKGmONJCpa/0zBwoenQN+4/0UJ zP5g== X-Forwarded-Encrypted: i=1; AJvYcCXnJdRR0XCajDPQZlyOQfZszby0l9NbheCOw4HVvPA1aonNch8c7HIxv2aZvIHQJG+bDt743atctDi+6G37B02d9hEIxfI4zWDU X-Gm-Message-State: AOJu0YwJUpq7t2eq2fSHW7zYN44vZbqF25sc2AHO8kOJUp7V2+6kFEnB dpyjgAsEzSskrUz5qehbpQ+rkd8s0jEb7Ea9d91C90NYd5vuazlq5HofoNnLQrTWf1jpWRzIdfy XBw== X-Google-Smtp-Source: AGHT+IF3Ddy+0Qz9qxrN5B/4JM8rOuSCmRls50+rXnvllRQCYgYHBTEmDfPd35Mfm0zRBIA+e6xOTJEscR8= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a63:4762:0:b0:5ff:bf73:651f with SMTP id w34-20020a634762000000b005ffbf73651fmr2548pgk.11.1714521093463; Tue, 30 Apr 2024 16:51:33 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:13 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-5-edliaw@google.com> Subject: [PATCH v1 04/10] selftests/kvm: Define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c b/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c index f3c2239228b1..7422e8ff6bd3 100644 --- a/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c +++ b/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c @@ -4,6 +4,8 @@ * * Tests for KVM paravirtual feature disablement */ +#define _GNU_SOURCE + #include #include #include From patchwork Tue Apr 30 23:50:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650102 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 071B71C2335 for ; Tue, 30 Apr 2024 23:51:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521101; cv=none; b=qUBdBtAp2Gem6OOMHUG8tXJYWsQquOth3dpc7s2ZWZgdFV6IjDtRFscimOkZ/RR21q/6tLDPLklb7sc9um40fqegSgjw142gRtx0MbfjEtXr9lVAHzxVWW3cmsGw90KoZTQY8nexq2JUZKsbJY0pquql1AZnpw+JGwFU3Y7B5PI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521101; c=relaxed/simple; bh=D4RXcFdCF4K+k0y+RB2kHekGy6icDi6EgmaQjDFUewc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=B71JUUdKSiR6s3BUXbEBe4QLh9sKgtOGZHMRXZ0XQiShxCeXSodVJcWEB09RCPOpfU4jZ61meUkiWglbWPXjW5j4GDNY7yfzT3aARgyj4YKcn16cI0OQAv0Qv5OCiD1aORgHfqhqKtfVSIUYU6Z+s3/TXKA7rfUqDqRQfNTMhE4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=E4eHiHkw; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="E4eHiHkw" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-5d8bff2b792so6200569a12.1 for ; Tue, 30 Apr 2024 16:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521099; x=1715125899; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=D4RXcFdCF4K+k0y+RB2kHekGy6icDi6EgmaQjDFUewc=; b=E4eHiHkwXmvT12PgrwpkLzPfIMhZGpB3yEvGktCAQKQH6AKioW8quzwUuhhSyDxFZR VmKVZInAwOBKM1K8T7euqOT7vR5Cz07O1Ni4Stl26Q7Z6PkPheNXxo599djVYQ7J78S3 Mmn6BK8j8wTpu/+qF98hqBQEexKvH+4J+nlfVAiqjP2jLqY1lLz67BumekaGoRM7OSua QhuUYS/ToDjvMxZtQLppXyPRMFsqXTk/lHzIpPjSVmIJ2iQ0tkJUOpKn3A+flaE9O3/S TawjMnEY35uvA42rTFhhr9mlzSFyVLBsDetcwGxvUTfF6c+zL3Nf2SSTYaJ4SBoINu3q A1Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521099; x=1715125899; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D4RXcFdCF4K+k0y+RB2kHekGy6icDi6EgmaQjDFUewc=; b=VMJFOeTnU/SFq5edqog5QxHk+iDuEY/7RovBsR+8nsWJVK87/VNqP7P9KIjF5Ize6T 3IV/1P/rdXbW2QqI/PC4rTF8iypOX0/dBDETLkNTGcxByrY3Cpxn4DPALcXrh/MoFYr9 hcIzEUyQAtDkuOdBvqYJdsLfv2wmbVLjOLJLnNaEJhu+tWqiu98jeMqI4qG0iYAAv5G3 Q095VG88JtxzM8ohJ/ckXJ+KlBNDBAAtCeLkodht4yg32thyNyf8L9t3o/rM0/V6dT/P M0zgCTJfQqtKdesxsXDMU3nQUhADBirqk3+DkQYTJc47UOBpBGKhfXeDVOyqcnaRv/bL XwGQ== X-Forwarded-Encrypted: i=1; AJvYcCXP2qqLfYWK5IO7VDkz5TqVeIrooU+n0LLrRuCFvV2INIAwoqhhhuu+3Ro3j+uwhL0s/jrSY+ByqtESx2rolEaC8cZKEzgbruiL X-Gm-Message-State: AOJu0Yz1qVXkAZc+MTVRFFbOz0z+OWW4NrVixJz+FeqiU88gw3yt9/+1 +NGanJBLuQ8qAbH4SkOhwrOzkyYoGabI9atWQU+mQdmzgdj1ntB8C5INsBkWeogNoF8HaRDP/N8 qbA== X-Google-Smtp-Source: AGHT+IHFexsRWV/l6g61+fcJ1FS4On2NzfgmRGaO6qc5XtBy09A9jgk6syIBuUu/8hQIpY0RuJdzwtz+xEQ= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a02:696:b0:5db:edca:d171 with SMTP id ca22-20020a056a02069600b005dbedcad171mr25940pgb.6.1714521098807; Tue, 30 Apr 2024 16:51:38 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:14 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-6-edliaw@google.com> Subject: [PATCH v1 05/10] selftests/nci: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/nci/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/nci/Makefile b/tools/testing/selftests/nci/Makefile index 47669a1d6a59..f615f5d71f7f 100644 --- a/tools/testing/selftests/nci/Makefile +++ b/tools/testing/selftests/nci/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wl,-no-as-needed -Wall +CFLAGS += -Wl,-no-as-needed -Wall -D_GNU_SOURCE LDFLAGS += -lpthread TEST_GEN_PROGS := nci_dev From patchwork Tue Apr 30 23:50:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650103 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72356200136 for ; Tue, 30 Apr 2024 23:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521106; cv=none; b=RWhLNsJ9Bvfp+QvPAQEwkNQd52WkXceHDOZ2tom7H6BFQZC14KKmp6uTYER5MKpLpDQ5xT6wex/uMIf9sJf/F3Oqwe2afEqWaWLK8krVNF+fJYrTt1q2uNUa4dcFhyfGn/EQewmBR1yA2yJX7NkAkl4d1dy9Cfz0be4wqJbl19E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521106; c=relaxed/simple; bh=HRxoUPmZK+egBgNy4OhOK7glTZfY/4OX4NkiGTUAjTM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=X83W+yBEx6LUBUqg6IFs6Z9kdRI2qS6tX4fYMZ2y3cSJWjFJZOKGXUTW7xIBWAtDewQht8Hhzu8RbTlq5bTHCtpil+tP/nb1ReDhHK6QXpNP+3pBu452DQyOJZKh6Zdw+WOEbIOJyxKfCuUMBXchYifh7VYC3eRkrBc6BD2qNSI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=iDr9gM+g; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iDr9gM+g" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-de5a378a948so8707830276.2 for ; Tue, 30 Apr 2024 16:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521104; x=1715125904; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=BDKXR6NuC+glA0BXehmJNQF6Ococeyr147OnKEva4Vw=; b=iDr9gM+gMIh5XxgAKIGS/ALzuqce0LleghVXkl9W8aFpkkZv/lMsAb2C0qLgtX+/10 UoGdQ4qrGtO2FnsnuJ75aryEXd19Faoi3lvNUXSg/OPTrfydlwESZt5i/TcpFb9YY+sC zznV35AD0y9BXgiieUI++XG5lSRaIeGNL0Nsi4ApEp/spw7EBjH+EK1F2JL395F3mcYR RZWp+QJVfQbMUI38//lccIOsDQbAygcsKXjXGYWE3k7efpzbomZuyBByof9maNkedpyJ ix/03c0fCfPFpa1jsMcJxG91YPdhu0U9AwuHbwGHwU2njCGdstK9efUxotp6lUFjTnrE pfcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521104; x=1715125904; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BDKXR6NuC+glA0BXehmJNQF6Ococeyr147OnKEva4Vw=; b=eQOwbGI7IN5LD/zp6gY66b7v+/BaZGTHGArL9LTRkr42O2I2TxoP5gPjJJnNQGorxW UrV4efXTQvpet7CB5zSrGzSSiwCdmwWwa7UHvD5QlhuxnIxUMr2KCHiUjweE/m1+GrsX e18HQz6Amli+kCiRMdUPKhK7rIDmR5SU92WcTCE8LM1NKhTBocpS/ygCGYXxne4lZ5CY jHV78I1XGjzMgwWdJo9YzavCySOlATmCnCT+zvYe4PPY5LgLhXaBiz94gbDq6koZJRLl 6xt3EIWA0wx/HUtNBtNGPjkzzdX8nZTP0RHRI6IP3Mq4vk05b6aqGrpDhvRGt4RtHQ2V B4vg== X-Forwarded-Encrypted: i=1; AJvYcCXJcZXgw4ubDkJfhprjzaSMPHOiZoccvPbRVXt+Tv1KcdBgrLGxGpboe7DqWV7pjBqzp+aZIdK9Qeh2zu+WyUeiv5OB9Z82iGZn X-Gm-Message-State: AOJu0YyFNRt4ZwYpbDn8Huj+M8pydl2gcB05dWcYl5G1Kp3vkboeI39h eQHJMtyn+rO8U7/EVFIHaDwotj1SBUNFgUthdAoERfTuel4E3BNH2sJzou5cGTA51fcLY0HBLsf 7UQ== X-Google-Smtp-Source: AGHT+IGfcAKXP1N1dvNy0xrDOZ0qhW7xFF1Rsec+ivNUN7q+falIURigI2OTwiYzGqmueTM565xtpnxyQP8= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:2b08:b0:de5:2325:72de with SMTP id fi8-20020a0569022b0800b00de5232572demr147825ybb.10.1714521104475; Tue, 30 Apr 2024 16:51:44 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:15 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-7-edliaw@google.com> Subject: [PATCH v1 06/10] selftests/net: Define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/net/bind_wildcard.c | 1 + tools/testing/selftests/net/ip_local_port_range.c | 1 + tools/testing/selftests/net/reuseaddr_ports_exhausted.c | 2 ++ 3 files changed, 4 insertions(+) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/net/bind_wildcard.c b/tools/testing/selftests/net/bind_wildcard.c index b7b54d646b93..be0773cbc15b 100644 --- a/tools/testing/selftests/net/bind_wildcard.c +++ b/tools/testing/selftests/net/bind_wildcard.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright Amazon.com Inc. or its affiliates. */ +#define _GNU_SOURCE #include #include diff --git a/tools/testing/selftests/net/ip_local_port_range.c b/tools/testing/selftests/net/ip_local_port_range.c index 193b82745fd8..08fbd3449ffa 100644 --- a/tools/testing/selftests/net/ip_local_port_range.c +++ b/tools/testing/selftests/net/ip_local_port_range.c @@ -6,6 +6,7 @@ * Tests assume that net.ipv4.ip_local_port_range is [40000, 49999]. * Don't run these directly but with ip_local_port_range.sh script. */ +#define _GNU_SOURCE #include #include diff --git a/tools/testing/selftests/net/reuseaddr_ports_exhausted.c b/tools/testing/selftests/net/reuseaddr_ports_exhausted.c index 066efd30e294..a5c40528837f 100644 --- a/tools/testing/selftests/net/reuseaddr_ports_exhausted.c +++ b/tools/testing/selftests/net/reuseaddr_ports_exhausted.c @@ -17,6 +17,8 @@ * * Author: Kuniyuki Iwashima */ +#define _GNU_SOURCE + #include #include #include From patchwork Tue Apr 30 23:50:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650104 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01C75201278 for ; Tue, 30 Apr 2024 23:51:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521111; cv=none; b=dF1VxL7ePnN6pJqIE7ZdShx0KPsap9Uyc5FY8G0HhPX7+KjSABylF/iJoOgSS7mHuSX6/aB/Bye9kgDVrY/2HjAIuYuyUug0FD3o3aFlwk4dtSzMK2O2nNvr6htFCkJhv0oRypFL77MBuHnXqPdewNuBhff9QUwbeinbS12NSSg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521111; c=relaxed/simple; bh=CEhaM1mN6VS3UNUxEOiZzt+NMGfOefhofITadMSxAOk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JLrexidZ+wHgmESNbMVxxKYJr2mrVftelXa74GTkG7s0vUCN278HNK4DkLzHXdPcxKk1qL2CZAOLYxVfxhkWpTrttLRgsopju1paBGgjJ8FyKUuPdAlb4DxkqKMK2c1AVkJUGdoO7w9JlfsmpwTKdCBexCaFD+1Mkuk0k5h7N8w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=QxTjV1Xy; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="QxTjV1Xy" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-6ecfa420e9cso5277041b3a.0 for ; Tue, 30 Apr 2024 16:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521109; x=1715125909; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=CEhaM1mN6VS3UNUxEOiZzt+NMGfOefhofITadMSxAOk=; b=QxTjV1XyjnYQpO1Ojpg+DK3VrvVtrxP8HE2G2RDfKR1jy70vI+Z7E8jy+F4VW1UMAs H+/yHC/okin1cr5pf4BNLQoZup5iGVw2Y4n41x7HHxLEXQO3vwCvK6MNAY32KVsBJoZh 5DCg1jz1OTlgHBIkiHDqj3E2UzRLVO1u0PY/S1z5PxHgfetjXhxm5Hx0Vsc3AIBpBiZ5 3OUH+/9BR0GhL14neuy5y7mV0rgu5RglbCI6Kr2w/UBlrlCeCyoxPFrwozPud4jd/ePx EKJw6DZsZuMeJTzNnkTbQa8LPBOUEo/e7xd81jxuf+ChMeVRMoz/loFnn/YvC1D7ufdL +1Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521109; x=1715125909; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CEhaM1mN6VS3UNUxEOiZzt+NMGfOefhofITadMSxAOk=; b=omVgxIwrzI1rg+F0ZzniQ0eIIHOij2wSgCsf/M+jj/ZoqkyBHpQwDve1+5Thc2iyg/ 91RiqwpvVqsOqgmRcACHiRZ4k8LlKjPjxM7o3y/nSBlww/fAdMw6LoMWfDLoJ3ZZ7OED kS4T8vEo7xnyazVpRBpjep0yl4cRfSYhpdPr/555wDFIPb+E7L6mc725pBOFJkgPo9FX veA+pjLJ5nZSWbu0xRJR/A80wXtSR0ZVe1iFf0zIkgtWmrw4eio+S13T6oSivqnaF//H o4is3//6q8+INTPY0Eolo8TtSsPKTUzEwoJWeedqNjmmRSI55yHf+yrLBbGPlcOYBPDW 8N3Q== X-Forwarded-Encrypted: i=1; AJvYcCUR5Lr/sk/I0yyy6bOzX1KGOshL8s/1f1h3+HS9QSSQKM7N51za2w7lc12jwOcmDPgzA3a0BCXyKWy1dlTcw9j7/1RHo3o2sGgF X-Gm-Message-State: AOJu0YxXV1tWjr9+aIEq9oc/MqflrFEooYhVJLe1k4H57I/mMFTX8ZPD QpFzlzydlQlIcdX6Z9dQBKQFGfTtbrrbZ/I48diAOXJDnG5CrOWBdwZxt+T/hkv8c8jTEs0RcFg 9Mg== X-Google-Smtp-Source: AGHT+IEcaAknHG3oVxkt/ve4EvpePIZURr0JuhkvcUevAmsAmfJEA0evZy5og+mIh0zfRT7rOUjsW8a0xao= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:2d88:b0:6ea:aafa:815c with SMTP id fb8-20020a056a002d8800b006eaaafa815cmr62853pfb.1.1714521109241; Tue, 30 Apr 2024 16:51:49 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:16 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-8-edliaw@google.com> Subject: [PATCH v1 07/10] selftests/prctl: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/prctl/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/prctl/Makefile b/tools/testing/selftests/prctl/Makefile index 01dc90fbb509..23d319a7a322 100644 --- a/tools/testing/selftests/prctl/Makefile +++ b/tools/testing/selftests/prctl/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 +CFLAGS += -D_GNU_SOURCE ifndef CROSS_COMPILE uname_M := $(shell uname -m 2>/dev/null || echo not) ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) From patchwork Tue Apr 30 23:50:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650105 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDA8920FAB7 for ; Tue, 30 Apr 2024 23:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521116; cv=none; b=CFNfKRkRXcrvJ2/VwU58+0QV7C3KPJKB+bR5EAaAgCJbHrWajaNKq17EhZHabn2gx+sp02pu9QcdLB4rY/zZXu5IbEHWXoHbBoD5UYeysTps7hVx8CzROVfGvAt6uWlsb9GNc8B/xWIsLn2BCGnxHvmmxnfLB85MLGJU18AWZDg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521116; c=relaxed/simple; bh=q4hPe+xh62Uhmba9PSnhrp62is8QeTzw3cIQCnwAJEs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=EZRqaod8Dw4J6xtZ0MPluEm98PR3qqQ5czuDbHNXW7A2GJqhefdm8m8oww3zqsbi0X4yC7PbYXGlo+XCQpwAzIH+OMx6vrBnFfpKmoUzq8rhezFE86U+VpquEk7vmz4ehvg8jSbUxywzaU88ygqoiU4JJTUq5oZ2oFQG6Byuv5w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=fWHplws+; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="fWHplws+" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f3efd63657so4023872b3a.2 for ; Tue, 30 Apr 2024 16:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521114; x=1715125914; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=q4hPe+xh62Uhmba9PSnhrp62is8QeTzw3cIQCnwAJEs=; b=fWHplws+HuPMbth/LpVBuYyCKV3VezSbPCuMynJ43py3TiLLFXs0XF6Zy7+UAKBkcL L6xvJNDKll/sKysPKHifQgWCRNbdG2S9fAFMBoQ1RiM8q7kEGKLo9/g9VfwA4up+ccU+ JPI1GPoNCpiP/Q/NNHke0c/iScOO1zickkY5GCKqyuioIv48OVzJICbW3OPGqolkl9CL GPvycfDVQMuGRh3q3I3/O8leXrGeMdvQSwX4ovya18su1I8vgWwUfXcZivIXRuV7jXlP GQKv+NkS/BPF/K6sfmc4mFoF3TkE3N5k48KyKFCzUpLDTrmxRIbBuTcwBA62o49TM2oF lVKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521114; x=1715125914; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=q4hPe+xh62Uhmba9PSnhrp62is8QeTzw3cIQCnwAJEs=; b=Sw6zE/re4/YDPdKf23EPhru10kBIDUa7ko7SjHEzhujoW6jN2XARCMnuIp6vYTPQHe 5ZJA3QFRKzj2TzpkOB6w1wIWW8kSaSlQ14kJeVjlxRykwDuL/OfkW+jqQzNfjAp2tKLY vvWcNwvSQyk4rWN2MMj24yMwYAhxfxOhkWc5BU8SIgKMBsFMErZZaTgNszImbPoRbpH+ bh6Uo0bwgykMXSghpnMtd0t/DaqVEC87wPnJ8BNun08j+gc88YF7Zs3EdC4yQc6Tu+ZB lgor5yg7IPBXtWDBScseWvoe7hyZ5dI5tE4AHyZpG27sJJYAdMe+vTtymD0UfpjxBm85 6/pw== X-Forwarded-Encrypted: i=1; AJvYcCUDmWHFSmmodcq8+1AClsZ3wbavOHQ/MkgkIrfaQbyCd4YJZnPmvDiXAlLa6XOuHWH3MBRh/piw0Jq5DDL7aQ6/M86vdxmpQEmP X-Gm-Message-State: AOJu0YwN5MhvznPsAuJSu+EGKo6kIbmp3gY+hPwJkHWOJa0dUzxhkAbY szZVKb6YFRphvrGa2c2eQGexbn11m0s5FRKOM6YepuoVWSnrDOEdtaYa2X2VHJyJv+6CR4ke9wZ J+A== X-Google-Smtp-Source: AGHT+IHPv5XeMbDkvtBTnEts/QdkOCkwWDd40+iQpyVBsIIp17OfrlSk+SNOnAl1YwhsfOoviBzkyHBxHOU= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:13a3:b0:6f3:854c:de57 with SMTP id t35-20020a056a0013a300b006f3854cde57mr83407pfg.3.1714521114135; Tue, 30 Apr 2024 16:51:54 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:17 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-9-edliaw@google.com> Subject: [PATCH v1 08/10] selftests/rtc: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/rtc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/rtc/Makefile b/tools/testing/selftests/rtc/Makefile index 55198ecc04db..4ef7ee969003 100644 --- a/tools/testing/selftests/rtc/Makefile +++ b/tools/testing/selftests/rtc/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -O3 -Wl,-no-as-needed -Wall +CFLAGS += -O3 -Wl,-no-as-needed -Wall -D_GNU_SOURCE LDLIBS += -lrt -lpthread -lm TEST_GEN_PROGS = rtctest From patchwork Tue Apr 30 23:50:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650106 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49D5D21C163 for ; Tue, 30 Apr 2024 23:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521123; cv=none; b=PmZC46jbDpgtOKA9aS7Pm3p7cTHqhlbMrx2FWF6Sk9evFWItBnE2Jy72Cp32t9VFHtRW6pEUIRJIK8v8cfh635CF0XO/MUGxKVDAmg3Oa9W2DMLob6CP+7p+0nU4iup/0hblldy5ab2l0eB7ZitK31qzG5MuOqhZufMs/h9gWbw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521123; c=relaxed/simple; bh=2QdI2TgmxQKTHiSdbJTZcZLPJCgb3K62uskVNaaDbcM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=d5mpbI11UYTR3pC4nwMIJgwwUvA4nURKLbMBcwkwAxVjvYmsmuLITxp15SATJ9D0TLWtExNJJb7KxiSxhGQfV7mS4lJ7SXQ7I7WkpAmwhC2C3IVKNoDGX7bDwfC+mpBd41CbLr81X+BZ4YDVRsiq98/P6XYynxquIVrzEDLVKqk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=keeEguSY; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="keeEguSY" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de604ccb373so3710656276.2 for ; Tue, 30 Apr 2024 16:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521119; x=1715125919; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=2QdI2TgmxQKTHiSdbJTZcZLPJCgb3K62uskVNaaDbcM=; b=keeEguSYKiYQkwXHyB2MrirM7L4y/Sp1KZdZTe1Eb1jtwQtnCsDWIpXRReCNmzLntV LaN1vRGXt8Ee/+WveDn79hkXqdatNUKk7+0m0ApxnwA8jk6DQGuWU5HiRiaL6ymJyGyO Yt0PhkFkEGuLIC0ibsKHgbJN1rI4ul6Y52GkoerHsIkVg62N96JuJrvtFG+j6kgZdV0O 81+cIaFsJxjWfMEVeJs2y9JYP7Iwp0gOmXtZCf1DO8OjYA9PRLcQ1pnT3fkcWLCI4g2a Us1YG8JSmxTJ2OQb9puJS6qNWWaBllS5bnXGdD7qVSx55UTthCEPpOmyKbbveYBZJqEZ f5hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521119; x=1715125919; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2QdI2TgmxQKTHiSdbJTZcZLPJCgb3K62uskVNaaDbcM=; b=Fw8tyPGo2fN8ihWiB6mRKim6n51VSMxKuINVvcGraeX4aeYK58CNmmjab4p7A9JSR1 OrjcTumsZSA0WftL6yqlJlrT+bKkKdzrrZwjt6eRlESytvH5UNMUJk5fDKw5ZP5BtMSo +rpHUOigxvNp+YKq1Yco43CYRPQnbx+NxV9aJSMpsbBzIbIUpbvKtOhazPIgc0HtA70j KnFutmvxjUEP9LZV8kfz/XUp4XbLMcnIhs33hOvOU8Gs4leG3kM92NzaJTWgWafYewIN MvbPm4/af9beIbTIRJpwTUGT1KXp5PNnAJvtPq94uDqE4AqOwm8UGQdXAKHX7455bpD7 hg9Q== X-Forwarded-Encrypted: i=1; AJvYcCVwqICTp/w3Hf2wORkdW2JqfdvQTg8YqVKofiX6wQAL9+csTQupL8Nwyq+K/jPSm6d1aMw5Mg8b96eeCSIfJhCK36E6ld8iypc3 X-Gm-Message-State: AOJu0YzCo3Qvj12f4Z0UEZNgKNl2D62SvRxUQrVx0gxQ8RqRLhlLU0rP zQ+hNpZijsVxirSpBTqlU62gZhuBYn8002ob1jTJDCaLjw2RAbGJoNvTdGrsYsl4NsI7e9xb0ZQ Dag== X-Google-Smtp-Source: AGHT+IGe0w5VioNgUdFLQOVwPulyr7LeCwc9ZxlwAi+xzV7TnsXxdL7cdDTZYaAKG9NQO48kQtKteAJhBhA= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:2b83:b0:de5:1e69:642c with SMTP id fj3-20020a0569022b8300b00de51e69642cmr175231ybb.5.1714521119181; Tue, 30 Apr 2024 16:51:59 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:18 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-10-edliaw@google.com> Subject: [PATCH v1 09/10] selftests/tdx: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/tdx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/tdx/Makefile b/tools/testing/selftests/tdx/Makefile index 306e9c4d5ef7..5a084a792a21 100644 --- a/tools/testing/selftests/tdx/Makefile +++ b/tools/testing/selftests/tdx/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) -static +CFLAGS += -O3 -Wl,-no-as-needed -Wall -D_GNU_SOURCE $(KHDR_INCLUDES) -static TEST_GEN_PROGS := tdx_guest_test From patchwork Tue Apr 30 23:50:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13650107 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3450D21C190 for ; Tue, 30 Apr 2024 23:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521127; cv=none; b=O2/eW6CmOeleiWlKOGgb30rYCznlTIBGnqM8KPHXFSO5fkyVknAIrBRAkrV9W9LTUZeo9GwauNkjnHCJ8sRU51G/1E2ES6u5yVCLUyvCDCknpXFfuwaPVnvs/aInUn56mtcGpk60P0YKwR4vAmLWl6Oye3ixycQxb/f8//ubcKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521127; c=relaxed/simple; bh=Cwp4S5VNvQqFtoPw/nroKEGF2YpUUdO6wVGQiqGsbAY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=YB3i0rSHAvy4MjzaiWe5QR1X6+rJ8hLZ+ZPeFYuJqxITTbemXBH31qhNc+0VqYwOXbO4WlzneU4rDjc7rzGJ3IjNwVrUhGEKiZ3p/j2Ky+5SPxzy+Kf9zPKYjcFeP70Qk+pXyQtc6dTprgHu0YnPEaoqCUcPIvNZg1WZADFPZcA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=folleoKM; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="folleoKM" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de604d35ec0so3951318276.3 for ; Tue, 30 Apr 2024 16:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521124; x=1715125924; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=eMZD6S1LecT7yIEbG0UvTaidEBINYi20NzKFmLDZVV4=; b=folleoKMFVRvi8dW0bCiqpuMPxaVBXHSqPGhHmRQaNl6zqayRuzzzaiG2Tb3zA83iP morx19xZkRe6kEGkwp1Zt+otnWqi/wra9Jb0bO1/Cm/jVdJepjsIOnu97ooL44chizIz H/v35//62TlWRSkl0h+OKxiamUjvRTtlnlfn8QDJNf8qbRLbdsmF+tZPhYYzgXZZ/RSo YEKSrhK5D5pa9B/One0ZHUJcy8B1+rkGOQPtDSHsZwe9h8sMxuMuxxn/eXV1AwN3nQo0 wbJ4oDqc8rKxRh8+Zo96DUlmHEPSLi+8zvO0fX9aMDpyv+Eyc3XFv7dDyoeSRtKfGd5h YqdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521124; x=1715125924; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eMZD6S1LecT7yIEbG0UvTaidEBINYi20NzKFmLDZVV4=; b=p/WczTUsu8F7rLc13W7HoI2PkW/JwwBuXFLx0L8RBBpiGIE3+3DhZMQ4Y2wyNx5yYU X/oaZJau9tksB7dyCbLAi1mmLrIwaDPNBnVLp3CEUgUTOfCNc7000oumW5WEJw9nyI9z giaDC7k6P4YqzcrmBz41o2y9fihciVf1AIceZ2va70/YcXTzhJ4ckE1CNTXL9e6mz0l7 81so0Wb0tb3PYTDPEuap/bOj49bhEBZb/eN59ebj4N9vnyLj5u9zgezCYc12uW+brOfA AFD0t3/U2ucvWYtDYbRu6BD3WBqFgzrF3yL1ytz5s0D6bL6pEYEXfu+2FPJGkx6DDZsU uU+Q== X-Forwarded-Encrypted: i=1; AJvYcCVy0nWJZ6M+chmIo0M9Y4wN52Kh3skDlbyWo+sbeyBPapBXkQmidRyd/5ny8Axz9uEGeU2F5QhPGk/wL2O85ZAtK5msIyaiLOVa X-Gm-Message-State: AOJu0Yw6H9OyNAb9RQ+rqB2hcB74h97Xexa0vk1JAegJKInY8rhEoCBJ S99Cf4/K2KP/JWUVJNl72gop9hKiiGJX2kDBVMAcZXorhvQCIzh8l2qQVOz+I78CTdhUNrtkkmh PFA== X-Google-Smtp-Source: AGHT+IH4VJpB6ZdNUNwNGYphVaIrnOi2jx2Xja9WJZJclJ5U3AS0GX9uELFDr7+Yl08gZsB5HUor9KgguaE= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:154b:b0:de5:3003:4b7b with SMTP id r11-20020a056902154b00b00de530034b7bmr333229ybu.1.1714521124169; Tue, 30 Apr 2024 16:52:04 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:19 +0000 In-Reply-To: <20240430235057.1351993-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-sgx@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-11-edliaw@google.com> Subject: [PATCH v1 10/10] selftests/user_events: Compiled with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/user_events/Makefile | 2 +- tools/testing/selftests/user_events/abi_test.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.45.0.rc0.197.gbae5840b3b-goog diff --git a/tools/testing/selftests/user_events/Makefile b/tools/testing/selftests/user_events/Makefile index 10fcd0066203..344a71769113 100644 --- a/tools/testing/selftests/user_events/Makefile +++ b/tools/testing/selftests/user_events/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) +CFLAGS += -Wl,-no-as-needed -Wall -D_GNU_SOURCE $(KHDR_INCLUDES) LDLIBS += -lrt -lpthread -lm TEST_GEN_PROGS = ftrace_test dyn_test perf_test abi_test diff --git a/tools/testing/selftests/user_events/abi_test.c b/tools/testing/selftests/user_events/abi_test.c index 7288a05136ba..3e3a0327afdc 100644 --- a/tools/testing/selftests/user_events/abi_test.c +++ b/tools/testing/selftests/user_events/abi_test.c @@ -5,7 +5,6 @@ * Copyright (c) 2022 Beau Belgrave */ -#define _GNU_SOURCE #include #include