Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp162088lqm; Tue, 30 Apr 2024 16:53:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnP5F3kz/svfiJg6XqUBPJqKha3A9v+7jwHZxMvz3vlbRsnFgSQI8Vs4WWWcNqPDZR9Cghv5VhyJjsxrP5NaFBed0cS0yHg7mQqIQNMA== X-Google-Smtp-Source: AGHT+IGavoXX5PhUYXrLm9Q0nbdRBNLdxLhcWLxe8o1GAgNnYmZbmimI0PC4pOHAr+9Nzi2P+0CJ X-Received: by 2002:a05:6214:246f:b0:6a0:cb53:a78 with SMTP id im15-20020a056214246f00b006a0cb530a78mr1067037qvb.8.1714521204653; Tue, 30 Apr 2024 16:53:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521204; cv=pass; d=google.com; s=arc-20160816; b=tsstumfbj4Wy2+dhbZyMxgZKs+GTlVvrHS3gIpxrXaPBiG6bWbYzXquI6ndnhcUceF Kl1mDYVxv1QzuWDSVvq4hT4c5bZeIlgVph8i1ehiKgd20SQCVTA8rcRFc40zyRdyEZZt QCsrObLibKN6giVzn4I+ceXxEr1pfXJxs3XbLL6abowcrTVEvUYcmkBj+IRmAOGOoveH lmUKT/rSKbq2OYJGAIC1EkQAYGuq5qUPfNrrlkOSYMb523JHQUEe5jcI0i903gao7llX Z7h9aR94Z9GTqGOEw3UNLLUsNqmjf49keU6TzATt7qi0ahVoLi5fl9ekzgCIn/ueyKom ItRA== 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=4sLsMn+75D63ePKL84qIUrZuVTfpP4Y9iFVCYDx6ZoM=; fh=p47eO9dW7b/Jjg1BBE0IU+05drocatON/fenqmZBID0=; b=EoeOS0+OHIN+jnLf907TAhS7+CKyaj6wkVI0qqksCjL7+JwnLwKEqM0s368IVWsTxj Fqf21CPAhkSbd+HXUE1f6Vurm5wT3XjPC/bDXB4OwgrDD6hCvPRy7ucsWodm5ZG7VHwR qb1rfesaFo7Frp2zn4SKS1y2e/vza73p2nY/+u9WgIpwwp0Haq+4HSX+1jo8ek8TEM75 NzJCra4Yp2Thx4UOwlU1WWzxolgw4klatvQjCQnA78aK5EPnWhOATm2AINm3+D5DTaik /o17DeFU+v2Yc0eD1Lu1i8qpphO/Z6B9CYmK+K054Yw8KRfZtOi0ZBi0w8Frr1DHOyUL ILOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ckLL+yi9; 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-164813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pt16-20020a056214049000b00698ebf6b7ecsi29614468qvb.203.2024.04.30.16.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 16:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ckLL+yi9; 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-164813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164813-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F5481C20D65 for ; Tue, 30 Apr 2024 23:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A4441C9EC5; Tue, 30 Apr 2024 23:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ckLL+yi9" Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 125711C9EAC for ; Tue, 30 Apr 2024 23:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521090; cv=none; b=nKUcQAhy0kcMXlmKPjiqEceFM1qIvN6vZxwHuMSBSq4aKLf9n4uhJ6dhpPDzttcIQDdsEgT7dsI+Q9803EStDEABhx0QGH3aNatC6TYaHPBhzgZEINNzmWQLcYckIuQWHQjYIbVSlJhJ58fLtILHDe4AyovvbL9ofYUcZiMXwIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521090; c=relaxed/simple; bh=4sLsMn+75D63ePKL84qIUrZuVTfpP4Y9iFVCYDx6ZoM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=u/1PMIiaxB8AD7vijY3KOxnUR73fIvD5e55+iyg9FlHuNH7VNm5omybdOv31FJWkRK+jbD3Bry3FySX5vZ2tzQbb6nX6J8mO21FNe6dGFIu6Qw6HzSbA6kJv78tdEIJtkQVEMGUWli+2u+7Am4O5yP2/CpCANEJxEPZ5vjaPSuw= 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=ckLL+yi9; arc=none smtp.client-ip=209.85.214.201 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-pl1-f201.google.com with SMTP id d9443c01a7336-1e278ebfea1so71871025ad.0 for ; Tue, 30 Apr 2024 16:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521088; x=1715125888; 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=4sLsMn+75D63ePKL84qIUrZuVTfpP4Y9iFVCYDx6ZoM=; b=ckLL+yi9rIZvpky/0YOzu/iCUml5oJ095EDOY2GFeVA3ZS/B0Yvy9ljyyKagzlZu/E zWfMYHDP8isZ5t8eRVrUer+buWyO15PpcvkfxvJxXdFAdyDu7tzqqT7J8gzCU8E360BP XGQQTPdxpzxQEAn9s+M0sm0gBkYbxgM9EEinCSZh508V3n7ftLZ9Zi9dxDPAAfa/gImy WiMHpdJaIm6kBBTwUrPO7e/zKlN2WmJtP+OZK4P/NXZFxcxCTn445CPIsdAKUm4m+H/Z ODyPltbvq8jlm7LIoXgefy3g1Top6wefCrXBM9zSf0qAhVXRhRkYjB6ZSwbOZF/d0l1J Wlkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521088; x=1715125888; 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=4sLsMn+75D63ePKL84qIUrZuVTfpP4Y9iFVCYDx6ZoM=; b=Hya3WMUuktlX5/bo9tX+HeizR/YH96K1FgYrOte1x7MgGk8aWtOuUVDeFKFpEx/3Jt LpbyTf28gqH/zbsOXPbxxTjYeLtC1cw53JuV0ygzvKXhy7DP8Q6AWkfveNz9xG7Q8GrD oxnsWKuvN88Ks4HAFpXpyVZRksKUGVwBI6mWl43aBFsIU6kDI+9+GQRLSvyaXhi95HOV zSwXYlygvq8yJvviX9GZlhYISp03FFFp5Wonw55ZEQSdbif8480il9ojrkR213Jx/nQu nFSdBCV1GET6x0IR89x9tdQPs1LEOk9Ll7kV9yD8ga7eJuf7gEeO971BbzE4wedOPTlB VckQ== X-Gm-Message-State: AOJu0YznkWsABUQqG/i3ds/sGSLeaJYcoDpecmjkR/6rbgpg8FkOFyFR nAnLR13jbNIpTOlY7ma+jEu3uqOypfM+x9bK5kPCQzyIAA+L/DwZGnGtBPC93f7jYo44rCrkYMc /PQ== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:dacc:b0:1dd:cc3f:6510 with SMTP id q12-20020a170902dacc00b001ddcc3f6510mr6327plx.3.1714521088265; Tue, 30 Apr 2024 16:51:28 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:12 +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-4-edliaw@google.com> Subject: [PATCH v1 03/10] selftests/hid: 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/hid/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index 2b5ea18bde38..33170d23315b 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -21,7 +21,7 @@ CXX ?= $(CROSS_COMPILE)g++ HOSTPKG_CONFIG := pkg-config -CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT) +CFLAGS += -g -O0 -rdynamic -Wall -Werror -D_GNU_SOURCE -I$(OUTPUT) CFLAGS += -I$(OUTPUT)/tools/include LDLIBS += -lelf -lz -lrt -lpthread -- 2.45.0.rc0.197.gbae5840b3b-goog