Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp166809lqm; Tue, 30 Apr 2024 17:04:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAN44cPwAyAEFNpyJbC6ZPou7qH7uZ30pCSzHeWNSaODA61RukjxaSKC/hdK6FrwvrjozuseOmcIerkX7dDNSYRwapjYELYsbtpm9RWA== X-Google-Smtp-Source: AGHT+IGx6oGotkjvu89pc/RHSMedk2sZ5kPvX3MWIv8UtSPEH8elVMRqQ7rTX9KBTB7K8smhzCNu X-Received: by 2002:a50:d6da:0:b0:56c:d35:1775 with SMTP id l26-20020a50d6da000000b0056c0d351775mr594983edj.35.1714521885090; Tue, 30 Apr 2024 17:04:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521885; cv=pass; d=google.com; s=arc-20160816; b=UuPRleZtaElmgfyYmcg/fJsZ8FK2SFHW5MeEkkgkNfahlOmFtaijqHamMuJAojGYO7 WUv/dgBsgVtltCk20Y5FxAzpBY/lD7EdvHhSZS073+4EJhsV1LHbRrybGg5YcRbT3zdK 5tE//dMfJbHsKq4fXTdV/+BgXLq65IqQVRnEXIZTFL6Fxqd81sCbBQF6D4M2aae3cis5 nxCqubX0/M2GNDuUHeU5rNQPVtrw8uRgY9J3ZfUia95glA0UKKAMDnR/aVYJ4gUw3syF 9BtDLvvWDHQcCG2jWK8KecT49XSFfr69Pu3+JxpxXK+MCCvAk4oLb4KRS1VN3Fkt/0nB 3bXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=sTlQvY8lGvZPuHB/3EseuBYDvbUHarzxjj1L20e4VZQ=; fh=p47eO9dW7b/Jjg1BBE0IU+05drocatON/fenqmZBID0=; b=DU/Uowitzr+iLops4bne8MYQ3lxqsTNUSMpGOmXIE7JXx4KlTHjjpzCJXkEK+UZ6eY veibEYlmnkgwdiEuDaE1OYG/qm+vikSh9fxCvmTFVDqP35v/f/wUuecr2gTE1O/TFw+5 yDm4w7VeXEm4opowq7/OnNDkSwM93zaNM8Cj9VUKJa+6IAzMbQEEFitAH6+MGUjd1Zro gLilMJk6iiHbvG4CH2mUS7rWLAb2UpKMVXOL1Tr92vHYAvI0DXZsq7oRmAahXS2UsaJl oi/YOiIn+R+l1ZZT58fHIIIP2JUjTcu7IDpTrHCH3mfnQGNtlhrUhpm4VQ2uFEP1wEwd SZgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ODSADp1e; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164812-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n7-20020a509347000000b0057232e17b11si8170988eda.472.2024.04.30.17.04.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 17:04:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ODSADp1e; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164812-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C596A1F245C5 for ; Tue, 30 Apr 2024 23:53:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 811661C8FD0; Tue, 30 Apr 2024 23:51:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ODSADp1e" 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 523F51C8FA7 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=1714521085; cv=none; b=T+zCYaHPjxr0qN4DwTUlVN30ec4m7ZIapXSHP9D8HLv6Z51TnIVZd//5z0wrfZLPPHidCKPxSslZC57gPwEl1CaVq9ezH+v2fbPj92ZNIXEXBTLRzy/dFWjZZPf11+G9jrR66oTWOyM0Zq7E2soDdbTrhtRpAuHQR7jF4oDorVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521085; c=relaxed/simple; bh=sTlQvY8lGvZPuHB/3EseuBYDvbUHarzxjj1L20e4VZQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=DciUGJ665gDO/3pjujq6vGZ8SNEh5d0YSehR7fQvCsfmedLL1Z50iRL+LMQWEecwR4swwej39QbpUhHTXMIwHJ45gPe2Kp4m8Msys9WgWjJ9BqE0XFE+DF2bLQCqVZRN9eqUIAT+JgAehjGSiDVuLBye9GvvC1HR58giaBzCDiE= 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 Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-de5a8638579so8485402276.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=tOPIOtqOdSdVqLVgUZthvMC/3VvesFbFF5kuqhbCLuCzvA5MMPpSJJIeYT033mKYb6 nL1fb+r42jQrYinhla/5YSnWwKKz8+4VNv21HN288CSTYObv5HiwMBQokWP04OxEVYCz skPol3P5ijfnJ3tqD4RQFG3dlYh5acp82aEbV8mh4l7FjuM44YKKGZLS3JND/vq+I7IS 9sMbFUSMZbYiyzkBhsQXWAqSLCfIcrzpAgvxWcfsQjAlEFFKCVr1Aq9tGhWpnx3IM+tP phfvCtSN5tCnGbB4SigKcvT/ghbnxFZUdcKb8aPkSPfpe0tQ6KtGd79eckrkCERu9tDD Zh9g== X-Gm-Message-State: AOJu0YzmWmpCKFgEZz7BBvhb/AbJOHyMF24gCFHR6zSVd++jti8WkhgO MpKNWVRTCVwKgaSE7ZmzxIK+NOMlCi2HkSYtjI4nsWOoF8cS9KU4Wv/vwS2zyikLlhKUL+3E52T LeA== 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-kernel@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 Content-Type: text/plain; charset="UTF-8" 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(+) 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 -- 2.45.0.rc0.197.gbae5840b3b-goog