Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp47399lqp; Tue, 21 May 2024 18:00:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDe6Er88Acvdo74BRw9JlNs5qYcEqorWFuU9fIz0CzWfHo0epOtUdrWaLCAYYE/WYbuBjjmcaBciFbAtPPbRZIFlVA0aRHv+ItkvmSSw== X-Google-Smtp-Source: AGHT+IGaRthJENCKKRGk7GFWcCEGKB5/gpUrP0OWC9cPBSjxUGSIcEv5Ywb6qq+ou6/hwPFHM5N4 X-Received: by 2002:a05:6214:469e:b0:6aa:2d64:2015 with SMTP id 6a1803df08f44-6ab7c91f7c9mr14464526d6.18.1716339622154; Tue, 21 May 2024 18:00:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716339622; cv=pass; d=google.com; s=arc-20160816; b=UhTRp1BXmT1yvINFcEXvcUB2gsL7310pr0Oc+RpN/W2ij8eD1vOQpyEyHLhdMBBSNH f/Gtl+fjV90GASq8BiLTv0056sfegjTfalcOlKQpK/SBqZIU/IAvXZbuObaH2kUd7r8V JQsHCHR36m6t6EVxRlAYJkuoDJpUr51H28N56B63J/UUxWb9gzAq6iuZRCmLWVpl6sfk UhGChoHyYNt99zIDjpx6GEU+RJr3+/Y6inisFTvcjX9oRYFvZyc9j7DCTIz0Hu5jGQMV 6BRFAx+LxDLsc0HMt/VviWTGZqnmw2fbBOJGcNDoftyYvdS3veCTEr0rn+6U9tfSNU+w oILg== 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=heKXSaMRYcwqfGx66xXaJ0v1/7TXmPatEe8vgsf1Ibg=; fh=33yiuru+Zv2NQ9haDwg7MRe8g3rWb33OOVcZsR/9bA8=; b=rrWFAW60Xu3pDrVD1rdt7aeiiGIayEHboCiY/FfyV489iM62Y5E3QLN93JrAZy1wOA 6BT37OMvRbu4tY6FlePwD2JmWd7eTC7THVlldEMlNMecnZgY+ABrRDKCDayR8szTjUPv x6ngauhq3EGeyzDsRddFGZsg2P1ITocZj6sWF2hQae7mDz7F7yUlyBiz+u55YT0qw7ax 72EQ63sixxx1yLSkgqW9kX+o/GEXERVqLFwN9BpdfnkbWAsm45L6Nfbue1BkAXFadiII dWGb79jwGLaTCQ8qcD1GHzZ3QcH9OLCxJotuiCJC7a4P758MZwRjamM6l83uuN0lAOC3 VUlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=PqoHaPo2; 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-185577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185577-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 6a1803df08f44-6a15f1d76afsi28216436d6.92.2024.05.21.18.00.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 18:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185577-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=PqoHaPo2; 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-185577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185577-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 C83EC1C22B53 for ; Wed, 22 May 2024 01:00:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DCEC18645; Wed, 22 May 2024 00:59:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="PqoHaPo2" Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.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 92447848D for ; Wed, 22 May 2024 00:59:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339573; cv=none; b=O2F3zZ/lHVug/JluljQXmYPfFgAqyrf3XXV7Sgm+DuAcVclpvms9UUl/iUVo1KWS2o3ivT8xrHQgQOXjzcFnepes/7ImlNmwSshR5qJtSYg5Z5VhLyHhPzyixPalNYzW138Fphq80JgkDlEsKsp5zKkXd3DVnaZ9ThoTcQoKmDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339573; c=relaxed/simple; bh=x5mppV8WCT2sFoidaes26Q0BjcINGRNEO0wOAYpWIEM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=D5Gl0+AFWa0vn2pTs1mUNq8DrMc9cwS7ScMaU/231oGeX2+UNdpfHwj49Ax4XS3WLqhBzDsaAU2292Gs982C5LHg2wvlRq8xR/G9SZGaD+FC+cxY8grfnByu98Qh4FDIfOjlyjFKHmhD29hKcBo6UVWm3h8wb7c/JIpHpOl+Uis= 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=PqoHaPo2; arc=none smtp.client-ip=209.85.210.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-pf1-f201.google.com with SMTP id d2e1a72fcca58-6f6985cf246so2881391b3a.3 for ; Tue, 21 May 2024 17:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339571; x=1716944371; 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=heKXSaMRYcwqfGx66xXaJ0v1/7TXmPatEe8vgsf1Ibg=; b=PqoHaPo2oFkcy7lLtSyreTK4fnqP1HM/aNZJvCwL8hG+I/+C4y7/txY9TpwFRGIFHK 924PaH2dfP7PcbSslJIu/15uAVhU2y6t6vjR+aDwwr9JYgmVOuSlSLSlV6BvpkebQ/b3 3TFo41UDnURvryKGx8u0y/hsgWOKIERv7QCTJW/zqA+Da4IYb/g9nbPYYyDppvLqc2gM JswhbKfe0Nu6GpAk+1lscOHmugFpOhIMf1zDmRuSPcH9im9ylnkw/yGMReszwG4G8GSo 540TbtAmrIDlHfXRP+tDE/f8Dp+up6MuoRuhWVAkXemVNalJR3LALhqIUJeoLkMSV+0n 3b1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339571; x=1716944371; 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=heKXSaMRYcwqfGx66xXaJ0v1/7TXmPatEe8vgsf1Ibg=; b=Dia9XIjwd31ps7ClpcBV2eev86WTxo/wHQ+VS+AkYnjXZ3+568XqZmu6MREV+t7uMB XbNpditbL0MiakllIyGAN7SfMHt8EXhifKN4E+j2yUGfmcjD66Aea3C7cSsxBPoU3OZ+ xmTp8yZ7GT7SpxTob5j2MnlX4uOe47FVaPzgxGs5LeWXNL76HPVz/DJVQrqPQrpilkJF LHaaH1X8DQXGMdFf3cAFdPx/LJN3rhanHZvlyjbEAzphjNFEAm4K2RtfKVAH6Sa6/k+N FAB37LS1NqKf28QSoqqSYoRyU0wsePDkAi9UPipm8bVCixs0M04dvCEJZdNkib7/3fY0 PffQ== X-Gm-Message-State: AOJu0Yyhs35yo4DRep4dXdMLsZpNDdKvMKgBZ+WTagGeyb4tYpgML6Tx xmwbtiCOYQDqIB86naBrvjLhqYr2EMHhXS+1H+/WfF9PYaUSsLUKQ+WRS99PWq9XeUP2xE6hsUv ykg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:2d91:b0:6f4:9fc8:8cb0 with SMTP id d2e1a72fcca58-6f6d6504a94mr20246b3a.5.1716339570837; Tue, 21 May 2024 17:59:30 -0700 (PDT) Date: Wed, 22 May 2024 00:56:48 +0000 In-Reply-To: <20240522005913.3540131-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: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-3-edliaw@google.com> Subject: [PATCH v5 02/68] kselftest: Desecalate reporting of missing _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , "=?UTF-8?q?G=C3=BCnther=20Noack?=" , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Kees Cook , Andy Lutomirski , Will Drewry Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Edward Liaw , linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, Mark Brown Content-Type: text/plain; charset="UTF-8" From: Mark Brown Commit daef47b89efd0b7 ("selftests: Compile kselftest headers with -D_GNU_SOURCE") adds a static_assert() which means that things which would be warnings about undeclared functions get escalated into build failures. While we do actually want _GNU_SOURCE to be defined for users of kselftest_harness we haven't actually done that yet and this is causing widespread build breaks which were previously warnings about uses of asprintf() without prototypes, including causing other test programs in the same directory to fail to build. Since the build failures that are introduced cause additional issues due to make stopping builds early replace the static_assert() with a missing without making the error more severe than it already was. This will be moot once the issue is fixed properly but reduces the disruption while that happens. Signed-off-by: Mark Brown Reviewed-by: Kees Cook --- tools/testing/selftests/kselftest_harness.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h index b634969cbb6f..8e53686b71cb 100644 --- a/tools/testing/selftests/kselftest_harness.h +++ b/tools/testing/selftests/kselftest_harness.h @@ -51,7 +51,7 @@ #define __KSELFTEST_HARNESS_H #ifndef _GNU_SOURCE -#define _GNU_SOURCE +#warning kselftest harness requires _GNU_SOURCE to be defined #endif #include #include -- 2.45.1.288.g0e0cd299f1-goog