Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp389786lqo; Thu, 16 May 2024 09:05:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnggeloVgpg+Ym6h8QiL6308wXQJLR0/iPQfYb0VVVVlh8OuI7FzqR2Cvbext/IabPDhUYbh35E2YCHHtehU4D+0qAtsLJXO7l8bdsSA== X-Google-Smtp-Source: AGHT+IEj+EeeU2zOQHLIuxN9I1sUIBG4eibkRliO6uHPBTtt22pl+EAsj8Hwg11aUNTm7WcuY1Mh X-Received: by 2002:a50:ab58:0:b0:56b:829a:38e3 with SMTP id 4fb4d7f45d1cf-5734d5c1701mr15306183a12.16.1715875534021; Thu, 16 May 2024 09:05:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715875534; cv=pass; d=google.com; s=arc-20160816; b=GnBU48UjvMdzlHORj27tQYF9Ks81AksHk6khAv22AxSDwduYU9SPjQuhmKBSTH5tRr VK4Ochvt6omyHk9ZV6CkN8jkQkULMewQmMmJNAu5DvggSjoX0Qb8wGVY4x3pKIFCYNTx vy+U6vSnqU9NePmwaQMQKon3m37LfvugJUCJytMoq3NBcoOUqPKcVl7d+15KwqgvbOFg TcOsxW4jUIhQSPlc3+/LHYGA1VpfCnKt198KWYdRENB5d4k8q/lSYmz3gZs2EzY2EejD 558d9QLC3E7mqYh6z7Tw3tcKV4dNEfEznX6oUOnZmGBexxyAdhV/kUr3sq5tuRfy+qdM TRiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=QHeXDxMuVddeJu+szZyUOaROWl0XKnaH39DKpAo4Lnw=; fh=QOcbf/gDzad4kqMcBkwP1CXdtuYZ0igfLxCrsXU3Lbs=; b=OrqIJbXcDExx+Lg9V7mrBpVGEHpDMCdMGBUyLy8nBRhd/mhuRj8rnhms/x5vF+Nuli jTyfHW6cOha80K/IajQpPHpeJtVuI8/HixL+OrlS4v6sib4UwtJC5Zxr63BZl9IjLwso O9RNJ8Y+JNeT4JmORAPsPrD/zflYqHotMs1hYr+7oM0yMzKtho/AbJVLJNOSHuHTRtlu VD82xeV0uWKUzKr0jdSNd0u6tT/5tvFK9zYkXF5QynxRGKsUpJraDHK0y2ueP+dBKluv uAHwyqyEsLtMngipz6/AadZy6k2vqBp+x4YLMYBamtNbuJt+jdPC+AvkObhmkrXsmc1T 5bsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="tZ/JJNul"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-181291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beacfe9si8798725a12.32.2024.05.16.09.05.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 09:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="tZ/JJNul"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-181291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 95C171F21B46 for ; Thu, 16 May 2024 16:05:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12E0614D713; Thu, 16 May 2024 16:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="tZ/JJNul" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 ADE6714D2AE; Thu, 16 May 2024 16:05:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715875522; cv=none; b=ZHW1apnBkyGeHDVkczuiHJJNU0qXsFs4x2qEbEjAU6Jqa+Cu4hTwSA+dk+/pntF4JV2NrIGIcHzWC2G8jkup8vhFG4PvhOFIZtbwg7/llcIg3VvSNxGaZv/tiPIN5ajOduuPCrnSfxzKEvnVMWW1COi++zha5N55vTM67cAhGx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715875522; c=relaxed/simple; bh=qvVIUgdKJZiGKItHL5ljlIAWYoWtIMbHS5W/uycZGr4=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=HIN1orynwtrLkeu899H5DSLsrPPMKmYdoF+9Bd00wUHOLHBMhNrvkgwpt28RXqBPWkgA4xMrJbQuG/86Qr6oLuv0OAysvFJGxXYxqPF+kBEXGp6TMYLQ8Fkc7+ZAqspDw71YYtkoWKWvwm2/CBYPVQI6SQ+oLIljsEivCvycx5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=tZ/JJNul; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1715875514; bh=qvVIUgdKJZiGKItHL5ljlIAWYoWtIMbHS5W/uycZGr4=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=tZ/JJNulmFExB6EaDs5oehCUbnuUs7uJafZxiojOZ8V67nHPCPWPLtP908vSN7JPE tlGOnk6M5JCaHpOFl687xzLKTwn9HC6Jbl8RypFuZnOT7HxYLUuGaRqDTJjGt/dPO3 5zlqoPC2XW7ZR278q1CnhCzRB3NxM8JyCSEl7IdCfXu8qXE2EjSJDaOAf5azdRjcIq bzEYIfo4w1StPnosIvhBgkluRsb2vslSiO4hy3mUMIufgP97PRsNJoe8/bBelQIi/L 6LdKtgt2O6lrwS9+G5LKHCRQirULWVmfDF7Q3Y0s7GZ3jq8YHCOgtky7ePx9Z1A5y/ 8QvJxZgzBQpVw== Received: from [100.113.15.66] (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 45F9837821A4; Thu, 16 May 2024 16:05:12 +0000 (UTC) Message-ID: Date: Thu, 16 May 2024 10:04:17 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , Shuah Khan , linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kselftest/alsa: Ensure _GNU_SOURCE is defined To: Mark Brown , Jaroslav Kysela , Takashi Iwai , Shuah Khan , Edward Liaw , John Hubbard References: <20240516-kselftest-fix-gnu-source-v1-1-e482ca6bfff7@kernel.org> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <20240516-kselftest-fix-gnu-source-v1-1-e482ca6bfff7@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/16/24 9:27 AM, Mark Brown wrote: > The pcmtest driver tests use the kselftest harness which requires that > _GNU_SOURCE is defined but nothing causes it to be defined. Since the > KHDR_INCLUDES Makefile variable has had the required define added let's > use that, this should provide some futureproofing. > > Fixes: daef47b89efd ("selftests: Compile kselftest headers with -D_GNU_SOURCE") > Signed-off-by: Mark Brown Reviewed-by: Muhammad Usama Anjum > --- > tools/testing/selftests/alsa/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/alsa/Makefile b/tools/testing/selftests/alsa/Makefile > index 5af9ba8a4645..c1ce39874e2b 100644 > --- a/tools/testing/selftests/alsa/Makefile > +++ b/tools/testing/selftests/alsa/Makefile > @@ -1,7 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > # > > -CFLAGS += $(shell pkg-config --cflags alsa) > +CFLAGS += $(shell pkg-config --cflags alsa) $(KHDR_INCLUDES) > LDLIBS += $(shell pkg-config --libs alsa) > ifeq ($(LDLIBS),) > LDLIBS += -lasound > > --- > base-commit: 3c999d1ae3c75991902a1a7dad0cb62c2a3008b4 > change-id: 20240516-kselftest-fix-gnu-source-81ddd00870a8 > > Best regards, -- BR, Muhammad Usama Anjum