Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp167916lqm; Tue, 30 Apr 2024 17:07:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH2XdPkNrCkllCZD8E0yuwlLjIqmCPE6z5K47x7s23seTRx85PRBcr93NZuVD+EtSBTY5VA6E/FD08HCDGxhn+8AGY+PWjE6Xb489W3g== X-Google-Smtp-Source: AGHT+IGVD9CcJa2CfYmQTYbaKcVM1JKDuBsyBKuziycf2arDspJodWFN4g/WI+ZyPy/dUjm7ma4E X-Received: by 2002:a17:907:7210:b0:a58:8827:f85a with SMTP id dr16-20020a170907721000b00a588827f85amr4274791ejc.25.1714522037487; Tue, 30 Apr 2024 17:07:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714522037; cv=pass; d=google.com; s=arc-20160816; b=XZ+p4d9RP2MmhZiABiWQZvruyGhVGAFZSW9fiYYzk65oOvpcE/4k42xWgELJuYHHKt GyLPP/mn045As75agpcD3hg33i/JiKvxf9bd+dOKJ/wiXJSVyLhoHeVWOPzd1xU3nhsl Evc5g9rC0cqUC59ivaIOGZjr3f1Yc/SZLJpCYqtf/w794nwh2jWtQNmDcdutvGRoNg8U cNR6bLWYl2fKFEEujKyJR3n3qSk8XV9Rt00fhhSpZcsIyJatq1o/+tDpfJSrFDT9al+k xFzmQNWKqvIsHihmLrLk49DK/J6y4RazH0rFYNS97G3svkHavK3zJkvmy2YJOd+gg0cN PJpg== 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=eMZD6S1LecT7yIEbG0UvTaidEBINYi20NzKFmLDZVV4=; fh=p47eO9dW7b/Jjg1BBE0IU+05drocatON/fenqmZBID0=; b=qSTjnXuV991aA3vzyEuGK3dNk+A0Pk0xjnP/iQrXLgX8VEMewj5wmUsZz9Wx/kZTYt b+mRqVGKYgGfZPRajQb5T6i5m2v6z27CtcP0vZu5EGPiWRtyPKagDk68Hs/mLfjoo4QY sIPKiGFpyGmnhydoGhrJslh+2kEXL615IUfg3tR0xK4d8pSM2cN/QhR/84mDMXggz8SG Vvy/Gx1ZtJmb2WUii0cZZnM+NlSO6vSHHvXpjlw87cP3FKq4+d+kyPVOSu8RYlErP/ot O2zPPlU9tmZt3Hetvaj0ccUuvmz6fWOw4yrRxWbupq/bYvHKFyJiQGqHufP8Wx4FMRB2 TU3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=folleoKM; 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-164821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164821-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gn40-20020a1709070d2800b00a55ab44d04csi12402587ejc.423.2024.04.30.17.07.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 17:07:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164821-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=@google.com header.s=20230601 header.b=folleoKM; 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-164821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164821-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 1AEF01F2705A for ; Tue, 30 Apr 2024 23:57:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4200A3DABFB; Tue, 30 Apr 2024 23:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="folleoKM" 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 34C0D21C193 for ; Tue, 30 Apr 2024 23:52:05 +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=1714521127; cv=none; b=kzJtYqpxTkx5uf0+cHTQ4bYQbSVNZArVTvKWYlfBPKWNO1dfFDmAjzbgp9apU6EdX7z3KTnvxoY13Q1rjtEcLsFkWZaLMU5nv9a358TRlUyqi7Qvtnt9qQ/wQbj+fAaWKUrNntOZ++qeHws+Y9/97nbriwbrcBU6RXAGH3t/dTA= 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.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-de615257412so2749945276.0 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=uFCwYoQxpwfh6z0r38CAJgdujhSIAFb9ZFnv5GDrHw8mQnzWAk7dLFB71BALw80A0q csVaIonptRNP1UAbpO6H+lb7Ehk5S1Z7qrOtx/L3qu5FO8bXgmqWNWKK3i/k/Zmrmllb D99dNkhYpVEiy4ycEajMNqr7yHL0lnaVhJ/aV+CzJG1X1MltlOqybp0f3KV+0yM1kn2Y 4RlRzjvknco8GhdSyrAyh0wF6CxQFJBw6zfTi5ndl57w+ktz3/xu3UU44KPIusvaohgm BBKMl98lFroSKp/3l0omyESLHtufx/Rr1jSm6S2Yu3CMBJm6GS/zV7NwoHhyfcSvl8Ye Skow== X-Gm-Message-State: AOJu0Yyq+963Nvj6TPN+SUkBMvqo2Xv9LdTb6fPAnQva57LShEErC0f/ E4PGP+MFvJU3ZsfbK7RDFnbB05pMYfxegfgn1DaVeonkT2ogEvQ/12WJf6vc/joNxp07iWxBTRf fkg== 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-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-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 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/user_events/Makefile | 2 +- tools/testing/selftests/user_events/abi_test.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 -- 2.45.0.rc0.197.gbae5840b3b-goog