Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp162561lqm; Tue, 30 Apr 2024 16:54:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUINvcRfJPi5uEfZ2mQ9q4nbra5KaRaBr5yhioX8HSZ+iCr+yFqTwwHEsmi7pylp/bZUudi/7ZSdhe7mFeoigBg1aq0spjtUXkBl/ZC3A== X-Google-Smtp-Source: AGHT+IE1Rx5MkFxImsUiVV4JJnBQ99O5MERtbGm+Pw3YgacvkSbCHTpts2Pbrhkv9RAtwGRoG9tJ X-Received: by 2002:a05:620a:1997:b0:790:9aeb:2968 with SMTP id bm23-20020a05620a199700b007909aeb2968mr969158qkb.52.1714521297343; Tue, 30 Apr 2024 16:54:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521297; cv=pass; d=google.com; s=arc-20160816; b=ERddyA1bK3/kP8QjILyKAX6XvP5pn9wYHYAe9aOLSmMcz2bCtMR86IcFd0+edJIKZr HdYCdeVy85quSjYhnkVZkndJtJ7kbPyUMFn4jDli/mR2PvUBfgF7hVZn+jWqyVJm2j+F g1L+ca9jBF51EUvGCRKk+ndvfrPHafSpMCkVCnrl93pO7YRXw/Exk5oNd1TL8HR6hM5n 95z5BMCLoQs/8tIoy0tsN80T8LRDdTwJK+3KD6XI+IreIatSS5sjremC2Cg7qO2wWt4C uxtg7x8kjvDCZFeJ6JbmZCz6pGrZ+Pv5d2TlzWx7nO0f1PSn9ICP5581DjCzOQSPSpJ0 UfWg== 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=BDKXR6NuC+glA0BXehmJNQF6Ococeyr147OnKEva4Vw=; fh=p47eO9dW7b/Jjg1BBE0IU+05drocatON/fenqmZBID0=; b=QHTiznIRB15nSGDeu4HwY7bjOscQuKWp/cqxT5bKGSEMBx02fRURgL/wmnGWvFUdU8 eNw51mn60RGHayceOM258THyJi5eSnUbHQkfzxhQmH99XottfUDINkiQhZM0g1N2izgV vjTk10PDQdTNCS0qX+lWNF3UkFiW2J3TWwkm7Jk32QWVMABzy4yCy5P7+B2IFAO1eVgF 2RNW4hICRb0ffrVf+znvVIUusnyquon/cnL1GIuyRLoyWeuS+kejmY0Hicy5MZCoZ3TW 3GI4Q37NuLHAzkTpEIJGGuu9AkhRdtKV1mFzCN35J4uEI0brMkKKNxffvmoHkXNdNkSp KMGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iDr9gM+g; 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-164816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164816-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 c20-20020a05620a165400b0078ecb2bc0bbsi29295204qko.113.2024.04.30.16.54.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 16:54:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164816-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=iDr9gM+g; 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-164816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164816-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 168101C224E2 for ; Tue, 30 Apr 2024 23:54:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F47520125F; Tue, 30 Apr 2024 23:51:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iDr9gM+g" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 7AB29200138 for ; Tue, 30 Apr 2024 23:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521108; cv=none; b=iDgkFLrlpFL60Tzdj4TrTncOh+hUEqcSTG77eAx79u1I/v+rMENXJLi/FIPixCTw3lvn2R0yT22rLHPFCNwZxCaDVWuARP8fCvvU4PU3vMsKuN8cmXdOaLX4NlohOSkdZtll5RIqdkeC24NwvER9Q0CrkdKpRBbiQHsjBpW2NEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521108; c=relaxed/simple; bh=HRxoUPmZK+egBgNy4OhOK7glTZfY/4OX4NkiGTUAjTM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ScWwacp7Snm6r7Eqlry8ocg4l4+Vy2CJYfOjIshtvK9g/fcEFKk6XEXdlLsAUKi1meLfhOaWN3MYwgoM1coFzIUTwG59rmDTnLrfXrdwn1/xdsMPiT54Fg4CJ1cSC2YOtTm/7QuZU7CuDAnOHhRQeaF/2xA60ensTSVvy3KIaWA= 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=iDr9gM+g; arc=none smtp.client-ip=209.85.128.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-yw1-f202.google.com with SMTP id 00721157ae682-61dfa4090c1so9222497b3.3 for ; Tue, 30 Apr 2024 16:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521104; x=1715125904; 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=BDKXR6NuC+glA0BXehmJNQF6Ococeyr147OnKEva4Vw=; b=iDr9gM+gMIh5XxgAKIGS/ALzuqce0LleghVXkl9W8aFpkkZv/lMsAb2C0qLgtX+/10 UoGdQ4qrGtO2FnsnuJ75aryEXd19Faoi3lvNUXSg/OPTrfydlwESZt5i/TcpFb9YY+sC zznV35AD0y9BXgiieUI++XG5lSRaIeGNL0Nsi4ApEp/spw7EBjH+EK1F2JL395F3mcYR RZWp+QJVfQbMUI38//lccIOsDQbAygcsKXjXGYWE3k7efpzbomZuyBByof9maNkedpyJ ix/03c0fCfPFpa1jsMcJxG91YPdhu0U9AwuHbwGHwU2njCGdstK9efUxotp6lUFjTnrE pfcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521104; x=1715125904; 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=BDKXR6NuC+glA0BXehmJNQF6Ococeyr147OnKEva4Vw=; b=OaUR3ZOvFvIygea5+6S1yiHWm3IsE8yMBxa5tsdkjF/hVBrXFwUM6b9H3mz9cdEl+p mrwpwhlqU3Xv2utHcgWMHimSFKvf+pj02udrKVSWeBYDxT1SBfzD5Y7BpuGrbQAooawT 9VSJn2H9DxJoVI34ZG31rQcgRVD9zS+x62jKe89vGNoYdEOyHM55njbu/SAUCwN90xJE y9bVpai0/C8zpuj9ziUaD7wEZ1ZCXnyQeFmAGs+wYB1n7M5llcuizyGxIn6XNa/oDoDM zpoVUlFJOxSzLELma8h/l3fvrO/IZCWQeEz0muX7klJOD7dpC2/FwEdrDdr1xQCTsnIb GRWg== X-Gm-Message-State: AOJu0YzKK900y/VFlWi9qX58LlS3f3Z9LDPTDlD3HHTdsAI1gD3DWWdw F61eKLsBkKMfmFz0EDTr72pKoJRv5iHAdiJKpf6B8kEBtz4SUsOZ6IfdXR2nvvXmW1qcMP359hw hzA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:2b08:b0:de5:2325:72de with SMTP id fi8-20020a0569022b0800b00de5232572demr147825ybb.10.1714521104475; Tue, 30 Apr 2024 16:51:44 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:15 +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-7-edliaw@google.com> Subject: [PATCH v1 06/10] selftests/net: Define _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/net/bind_wildcard.c | 1 + tools/testing/selftests/net/ip_local_port_range.c | 1 + tools/testing/selftests/net/reuseaddr_ports_exhausted.c | 2 ++ 3 files changed, 4 insertions(+) diff --git a/tools/testing/selftests/net/bind_wildcard.c b/tools/testing/selftests/net/bind_wildcard.c index b7b54d646b93..be0773cbc15b 100644 --- a/tools/testing/selftests/net/bind_wildcard.c +++ b/tools/testing/selftests/net/bind_wildcard.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright Amazon.com Inc. or its affiliates. */ +#define _GNU_SOURCE #include #include diff --git a/tools/testing/selftests/net/ip_local_port_range.c b/tools/testing/selftests/net/ip_local_port_range.c index 193b82745fd8..08fbd3449ffa 100644 --- a/tools/testing/selftests/net/ip_local_port_range.c +++ b/tools/testing/selftests/net/ip_local_port_range.c @@ -6,6 +6,7 @@ * Tests assume that net.ipv4.ip_local_port_range is [40000, 49999]. * Don't run these directly but with ip_local_port_range.sh script. */ +#define _GNU_SOURCE #include #include diff --git a/tools/testing/selftests/net/reuseaddr_ports_exhausted.c b/tools/testing/selftests/net/reuseaddr_ports_exhausted.c index 066efd30e294..a5c40528837f 100644 --- a/tools/testing/selftests/net/reuseaddr_ports_exhausted.c +++ b/tools/testing/selftests/net/reuseaddr_ports_exhausted.c @@ -17,6 +17,8 @@ * * Author: Kuniyuki Iwashima */ +#define _GNU_SOURCE + #include #include #include -- 2.45.0.rc0.197.gbae5840b3b-goog