From patchwork Mon Jun 24 23:26: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: 807113 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 84CA31AC790 for ; Mon, 24 Jun 2024 23:29:30 +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=1719271772; cv=none; b=Kap1rweU/J3d16oVCB2FR04BQF+li5gcZqGRDuxJshm9rWflZJuchb2jmAyBNyXKowIVKaCtsDORQPK9ZAY1Ucaf4iKSmFp5LAprRn8fdKPo0W+iteB5TzecbEMGv2Tjy/3srS6s0fHvS04mBcYxEwxa3e22WpoXzw9+bUF971g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271772; c=relaxed/simple; bh=X0lnJ8lH8/hxDl4Hg4Bojyv5HWdI5Bnk/QcwrFlBWSY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Gsyf0BnNL9LWN7T584RcDmO/3wNr0Eb9qTmGO7TZUd4Mc+XF6ecqEuha5+qIcBMZC+K8bv1CAjT7XVI6V5jcx17KKobSxQcfTuLchJQByMPGibMNOFIOATpbgm3CL2Wf6hFTFJOY+VAIl3TsJMicCLKaR/VjITmzhc7LhB/yyao= 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=gVEsOTrA; 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="gVEsOTrA" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-706819a8390so1202024b3a.0 for ; Mon, 24 Jun 2024 16:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271770; x=1719876570; 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=0Ifr8Ya8A/Lifd4HdrItZMFbfd7FCXsltsIVIxxyLaY=; b=gVEsOTrAOHTrdqZlWQp2WkUT2d7NhPD6lyhMpWNNkUEYpyuuAKqtVII8DQzYWh68Bb SxowWlKGeiLLLYlsdYooxHnvQA/0F21N17+q7/HlKBn1CCLzWKdsHUhKSIebs1n9g/ry OfXsYVBst8CfnoLgPF76b27aGwN8gP9xghIVY2jVp/ZGM++wQKlauwiUlZU0sH+xWOB2 CvVVAA7Av3o03LoUobyEvhsfpLxYGbwms5aT7X+W+mgWFUCDsxvGLeGGOyH3VB2EB4Ul 5pmFimG0izMNIOC5psMY9TTf44fis4F/+fKkTOo60zCGxAou+OMrWYFRRmcz2oOiFkU+ /Ibw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271770; x=1719876570; 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=0Ifr8Ya8A/Lifd4HdrItZMFbfd7FCXsltsIVIxxyLaY=; b=Kbplzo3BhulRHRPe1WQ408T/2paJtiVWE033XuJ0XpXyZvS8bOUDjqaEFgTP0hLuMf 6JxOjbklwpEa+2pkegmIuomjfdxJ0Vp3MGMCqFKRwnpSIltS1EVHgPmbxssLWfQ27ltd jO1OaziXaaK9/qShu9oLplmTzRlIT+ls+GP8ppIYglXlCV3tiEjdUU2HHFERcweScwmp U5JmbmG/JVcVT/V5Kah+/BHwHzY1HZm7sYeTPSEyooCF2UtXChaWGxDL2HzvsfLgviqy dt3jSNzc4uus/M14kFgJ3BtmiKrkrTf+qrMCtcBiKEgzQCfL0ZWC9dc/WgL/9xzbr6z4 ohNA== X-Gm-Message-State: AOJu0Yw9Y/F+PV4FugaJXGv7niebetZbLqP6Hw+U/JL2g06knX0sGbiw xFwz4xDzOAaleXoDgA8FlWrMkkqBHr1cvL6Z9EvKAAEwhTxuSaCWzuoenzraSeApWQWVlVCPLzy BbP6Z4n6KBKm8XChWm9DluAbpREthsxwdqciLWAj1tACYZJ1I+oUidUxnHIboQacqNCgumAGT54 BuiEejNbaITvBA6HiWM80Or9NEO0RqYnA0JQA1jruKfBHJ X-Google-Smtp-Source: AGHT+IGfwxTfgoKpQbwyVdHdeu4Fayfp12bseSCI+21TX1FuKt23v8wGVL/xanJWyhgjJiFfoB7TugWlGLo= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:898e:b0:706:3433:bf21 with SMTP id d2e1a72fcca58-70669dfcfdamr31477b3a.3.1719271768844; Mon, 24 Jun 2024 16:29:28 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:15 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-7-edliaw@google.com> Subject: [PATCH v6 06/13] selftests/intel_pstate: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/intel_pstate/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/intel_pstate/Makefile b/tools/testing/selftests/intel_pstate/Makefile index 05d66ef50c97..f45372cb00fe 100644 --- a/tools/testing/selftests/intel_pstate/Makefile +++ b/tools/testing/selftests/intel_pstate/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE +CFLAGS := $(CFLAGS) -Wall LDLIBS += -lm ARCH ?= $(shell uname -m 2>/dev/null || echo not)