Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp166765lqm; Tue, 30 Apr 2024 17:04:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwhiTdYrFVbby0hQgY9dKcRNx9uj1b2Z8RZgJ3usX2w5jQmRcj2D9wAMKRnUsHBiSeqCbvVFZ2Y+b+IpraEqXf/YOxDk2BdggnMgzY5w== X-Google-Smtp-Source: AGHT+IEbdEN8vydSf4f7qme+P6ZWOfZSCgSroc+UTQ4pTbbt15eOFFldNG+mSntAHJVZfahOhFj6 X-Received: by 2002:a17:906:1292:b0:a58:d7d8:2f48 with SMTP id k18-20020a170906129200b00a58d7d82f48mr928550ejb.72.1714521880174; Tue, 30 Apr 2024 17:04:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521880; cv=pass; d=google.com; s=arc-20160816; b=w6DpmMsgAaItWspgMmpwxe2gVj9FFpTDJ96oKcVmHph1rYqddmoysZJG7BPft3elLU 9hqaKFCIN1yzA+PxdEsM45Qw9cG758qBTr9h2wUxbBeovjUruj3Ddzgq3/qUo0HATarc sACLyrL2sux4IWOmwpBMG0yT17iBB7Wuj7F6PtqSqbOv/cZmRw6lIwBypkB8PyVjX5KI gSPbn5PSWlG/TkX0aZXXrYhyt9euNiwBAA+Me7XN5icGrQs4nucGg3NEskQMTSxm+PlX sZV64ocU/egPkSK1i+v+FF9cKXy1sdF78N4K5boi2hl89kAJYfTQc3/9/Uqtw5AH9Nlb oQiw== 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=CEhaM1mN6VS3UNUxEOiZzt+NMGfOefhofITadMSxAOk=; fh=p47eO9dW7b/Jjg1BBE0IU+05drocatON/fenqmZBID0=; b=EJxBII+WIIpZSGsJV8o3zFCi66CUrzD/Elkcjg2ILVKv0P1NGhQJjmHc5nzn12zNj8 Vy84B5MVgFo5JvQbVZKvY1kwLWpFfSl0pqcIX6ahBBH/HnyyAxGDwZEy9HX8kTgOpPbX +H8h3NwHcJzZ8JhqwE7kIxmsC7xHkDX4MnEsxQO2ThBR2kw/v6WLd10dbVyaN4xgcw8V qvU6QPUv9FWm7p5vmCM2gcGPXJeN0v6F4PiANptsHg8rL/1WnNfJTUfsXTUW7+Bs4nG8 nlasxuOTtY3UxugcT1zeru4ry3/Ia55rNXQ8mZ9AU8HEq95wH1owGJ5xC+0RQ0Aj+hCJ PMPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=QxTjV1Xy; 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-164818-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164818-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 jw16-20020a17090776b000b00a51901dc2casi15436296ejc.209.2024.04.30.17.04.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 17:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164818-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=QxTjV1Xy; 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-164818-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164818-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 CFEFF1F26289 for ; Tue, 30 Apr 2024 23:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 776F920FAA9; Tue, 30 Apr 2024 23:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="QxTjV1Xy" 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 1058E20127B for ; Tue, 30 Apr 2024 23:51:49 +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=1714521111; cv=none; b=tN/EEztas/iOcQBNm5qUrbHy1ZCtH1hfs2+idp0So/cSyiYRTGnceLsi4cw3wUGY2NxuNH40LPvL+5Msywg6R3w/CdNDy2oTPHPVY+JP+3w04pwHEpufKWaHeavzU19LQe6PW+f5Y9KJ1kQYZuSNK8RER31S7eO6trtbzH960IU= 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.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-pf1-f202.google.com with SMTP id d2e1a72fcca58-6ed25e9b34aso4291078b3a.3 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=r5GFI9V7n3G7xZRrBf+Ln9760SBkAgOtyoVAXT5WyQL4fwqMYRevIUkZunDaZgrSH7 BQzTTtrOJMqIZnJANibBjpwJUBtmEVmnWix8R05BIqYnuGfRCMiGNOYA7weNLdkLxg+u fGgA+utMk9HZiB5auyuS++4SPTzbzlkM/S1+e5wcL6t4S9bV53yfT6PWLx9LLDP3OeS+ lw4atB0BVyMaXg+BN6OVffa/l0Y5X+E28t7S4/ApvFPpWMywwTgm6d9xeaAGapD9vz8w t261CSBXXxRx+C9soTeEkjuukPQ5YuIkAcy9LQSNq2aOAD+QAfd7xOseBYjZSsVYn639 asvA== X-Gm-Message-State: AOJu0YwApxKuWo0Lnx88LaqM1eMbU0991mWVf8z2FlOb4Ll/CnwMHrJv Ncm5rbP5YdPBU6yRvr6nHo333R+oH5cstoO+VcFSy7TIipU+/hnVZ5TwC39OGsmVjfLdcaH5SZV e+w== 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-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-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 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/prctl/Makefile | 1 + 1 file changed, 1 insertion(+) 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/) -- 2.45.0.rc0.197.gbae5840b3b-goog