Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1624349lqa; Mon, 29 Apr 2024 14:07:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyqNhze4SxKUHki4wEhHnzAoojrOxg2miimLEMZyrt3pC69hBp9n5FjCVr3hSaXaYV950EJKZrWoZp2uLO3qKzQkix0FZDdPfzDRuOZw== X-Google-Smtp-Source: AGHT+IEBb/x4QEbsFNzS2ZnGE3Oiivovsvt4i8FAjISemNRs7vOR6o6Flg8Z41OswXJwGoGTW2jx X-Received: by 2002:a05:6102:2f8:b0:47b:b924:1dec with SMTP id j24-20020a05610202f800b0047bb9241decmr10540520vsj.35.1714424861099; Mon, 29 Apr 2024 14:07:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714424861; cv=pass; d=google.com; s=arc-20160816; b=FrYqNLbx9z5Ptn58LkOz20EojeOzHVa3BIcVHi0Vkjsn9NBUpInoq2jE//BEswS1jK QaMmYZFArwZXoDp2gTBFZIgGjo11I9y3TuW+Dtnotp/pcIAmYyDxSzP3NUuQ4cu/zbvP TiuT+RRRYLhd9+v3K4w/6CFezubhTnKXbzCfKSCb5bEw9MJBmpRU6XdW/epZ7oBJq+AJ B+EbKJZAEsNzKniqgjhkRV0KF94R6tPyTZGy7T5Cwbc7pYe2Jry0SZ/4FhP/S1+YusWc VZdCUN3ynr5L9zQoPVtp1tmLhhDZkVvTurH3B53RgO448y5rYa3jzMVvJxK6wocKpeKH Zm/g== 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=xw3vIJGY2NNuKaQ6MudNnqR6rpTRdltf5mCEUSFWvc4=; fh=ZRrPR3JBMriNgVTWt/sGHlGBENTwQId4VSMWw3sIWWw=; b=Ee67Bxs+HCXkNScc0FnBqeESRCpMemc+Quhtux3qmkSsHH7la+7yN9FIw6ZEh2bX6+ nJUlqMkaDSPrcBigf0wYBxmqk46Gt5ny2k79olTrCMy/s5KIYt8eIJ1KR0aIIeQgqjm6 xsznqeo0EfqrXBIbgai/SQuxd24yyW0+QenBVdpqxUIsEXKSPU4jVz76b+Q54h0/qW3v DupZ0Ncbx0ncyWA3UK+43fK8o9uWESo08KYca8s9W2oi+jk2RuTcMRkF1RHF94qirz0p 6lfHB/0QR2+q99FqeNHgXVypCaIID7SUW1EDg9pvONJZD057e0bE0j90DBP2wquAAqE0 PYyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=d0cvUxCU; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-163054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163054-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 j4-20020a056102240400b0047a19720dd1si4297425vsi.556.2024.04.29.14.07.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 14:07:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163054-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=d0cvUxCU; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-163054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163054-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 83A1C1C2235A for ; Mon, 29 Apr 2024 21:07:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1ECE3184111; Mon, 29 Apr 2024 21:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="d0cvUxCU" Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 0241B17BB1C for ; Mon, 29 Apr 2024 21:02:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714424577; cv=none; b=mVUIl9C/fbG6hs6tH5EyKkCpK+zTLy9eX50MUU+zEzxpUSfOENLRRJg0F26/JRlLLd3141c+dWdF7/cwi+h4z2RNO+GWsYUrn13CjDBEiVJJ53wfAwLHKyUp13aElV/dVjYrPZrJMSgulCAjMzjX1s8RO4CRTl3/ucGw4/xUVKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714424577; c=relaxed/simple; bh=PPVNvn0DIhv6FGN+XyDmmtWyNnzYHJ1RnYM4N8RhC9c=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=oLzVMgmLKg474epmwBrfeF0ZfosQm38SNjgzupg/rVK4g7B6Bf11VZ8a5wgXDL43xxUDvNA13rack0ndijl7bBBWbbbQ/hcflGPKWtNx9l/u+50hs3ivnBtdjfIdMqpQ6u3XHXQBX7PG0pNTGXo32onKx6xqbgHubzhy/bFVzXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=d0cvUxCU; arc=none smtp.client-ip=209.85.216.73 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--seanjc.bounces.google.com Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2a5c5e69461so5989208a91.2 for ; Mon, 29 Apr 2024 14:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714424575; x=1715029375; 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=xw3vIJGY2NNuKaQ6MudNnqR6rpTRdltf5mCEUSFWvc4=; b=d0cvUxCUEqzsngCAPrB36e/r44+gq9tjbGqxxj3oQhk5/cAMIVHxxqzOhRduJhcr2/ 6UfwTs7WOqFCw0m5oKcS5uFMb17XVkNYWdhdntj3hYG73UMRP23sIS3WpM8M/udsy+HT ew8SoxkHyS3WJ90IlG4STUDHv3mYRnyYAxMuFj2+hEGz36GDTwidr3KYsKSkRRoXSEHI 8cNjvasB/ODaWhd9KCy48VO+4kNgWC6AFYGI2bS/8eStafqDpsH4wqtza9Z0kYyFtdjU h8bnLiRGMdZYt2ijgiI3QX5FWYZWYb7bvh9zQ4x0PGIx8wuAwsxRsZdpfAXfWOOBxue+ nCpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714424575; x=1715029375; 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=xw3vIJGY2NNuKaQ6MudNnqR6rpTRdltf5mCEUSFWvc4=; b=IDndM9KgIz/tSq4WqBexR4z3n4/eOsn7qpCtFRYbbys56NWP+zvonqTKXu6UgeH4y5 +t0rvTpjUsp9vIIwA0YuJnDMB9JruBJZ4bb6oqaNUx1fYTAQAUbAIR0qWWi0vi5h1uDX DDM0Pvep18lT46WssCLy8nSepN0aOfoUHUCth864lt+FZ0e3euhDzzPYrDMuxeyo3HlI IGJSvgNXLriOqfCoCvUL6ZKCefFH4SO4h5WzAMTh0O+4+gqTWmBUKirKnPjTWhv1ogjF YEjYw1K/Opvk9qDxNMI/+Xlz+ft9KmoBnRPeuDjkRznqoc2D6VLK+0t7qw8zLqQYaZX3 cIJg== X-Forwarded-Encrypted: i=1; AJvYcCW2Ykbvp3eHYZv6hrDo5tFDXdRJpy6bg7/YYAfhiHnHr+olKHKkaz9IdU8j8CMwHHUoAnDLwkwbx1eFVuGQQPLBdREttcBdy6pwNPEG X-Gm-Message-State: AOJu0YySiTtL69zG3QrqdsBRpmpP4Xf9Mj5rUlyuBp3S7bBfuH5n7fiG MDEb3PYBIXdjl7SpW6KegHl6jtGSU8jyeQ1LnAiyQOSLl2Z28vUeQLwFhNtsphqI/Sx8OGi/17b SQQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:d509:b0:1eb:7b9:4f7d with SMTP id b9-20020a170902d50900b001eb07b94f7dmr971010plg.11.1714424575332; Mon, 29 Apr 2024 14:02:55 -0700 (PDT) Date: Mon, 29 Apr 2024 13:45:25 -0700 In-Reply-To: <20240423190308.2883084-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240423190308.2883084-1-seanjc@google.com> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Message-ID: <171442341918.161544.2844726781684658994.b4-ty@google.com> Subject: Re: [PATCH] KVM: selftest: Define _GNU_SOURCE for all selftests code From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Marc Zyngier , Oliver Upton , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Muhammad Usama Anjum Content-Type: text/plain; charset="utf-8" On Tue, 23 Apr 2024 12:03:08 -0700, Sean Christopherson wrote: > Define _GNU_SOURCE is the base CFLAGS instead of relying on selftests to > manually #define _GNU_SOURCE, which is repetitive and error prone. E.g. > kselftest_harness.h requires _GNU_SOURCE for asprintf(), but if a selftest > includes kvm_test_harness.h after stdio.h, the include guards result in > the effective version of stdio.h consumed by kvm_test_harness.h not > defining asprintf(): > > [...] Applied to kvm-x86 selftests_utils, thanks! [1/1] KVM: selftest: Define _GNU_SOURCE for all selftests code https://github.com/kvm-x86/linux/commit/730cfa45b5f4 -- https://github.com/kvm-x86/linux/tree/next