Message ID | 20240509200022.253089-48-edliaw@google.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show
Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.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 4F03F13F451 for <linux-security-module@vger.kernel.org>; Thu, 9 May 2024 20:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284991; cv=none; b=uMMS8/1CHlEq2yAS4XdOPZguat3EIhQd1xUp+7XTjeXCj0FwQj8mSK43qp/xg1KfgP/QsO1a+E1z3oAOLRGi1Ns+4/9lEfqNgxjNaVMEHXcZL+5HlA9nnZ+7wZwVGmIZ59nVBm9b25llvJmXDLNigcI/Mw2u6ZUBj4xlPH62MQU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284991; c=relaxed/simple; bh=J2aK0bE+Y7ee3E6roTqW6AAJ95EP/+G9UgxdLYbifQg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=kvjC7m3z3uyO5f3caJZGoB2dMRq5+h4kQk/sZK0PK3QJvSGIkg0AtyzIp/7OxH6v7tp5CSlRF8lPwd/pMM43nyiSq3JkUZ5kPwYau0NXRTukBPlw8NUkfm0agTTwner8VeI4seF7PXrbpagDJ2f+sWUOiquV/S4WB2RRCl9pN44= 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=WVZumaIp; arc=none smtp.client-ip=209.85.219.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="WVZumaIp" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de8b6847956so3121532276.1 for <linux-security-module@vger.kernel.org>; Thu, 09 May 2024 13:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284989; x=1715889789; 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=CAfxn4Mx/opUGbIFPR6WnlOwclUxypYBhNIAU6ceeuk=; b=WVZumaIprE+2ec0sjBkWgm+9diDCVfR7g4ZNT9Vt/sLJryq47V9Ad76ZaWv9NIdvFP +s8auJidCZ5AeL3AA4EUmOTEjjd0sqaIi1trY9ij94h3UnM8YjOcP84kn+AEK0cTywpz FyiytGYuGOBHS4aLfno84o5E8RjBMZI3Q1XkJX6xXn76ezY+074GLlqcgobQy0YGW2pW KgkYTmzk22NYg0SyydISeavUdjhIa6cQac4dvLLISQNmko/dWdNW3+xrMX4Qa77h4eQu ckq8xAyle6SahpZeU2KwfUnEXBx2FtyMVq+SecyN/w1h5Nx0bUZMsmTk2ySPKJDSZPeQ PymA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284989; x=1715889789; 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=CAfxn4Mx/opUGbIFPR6WnlOwclUxypYBhNIAU6ceeuk=; b=UZvaMQrO4t/WAFd7ugClKpy6dyWwhr5itHXL/za58o58zzachiobPqtJahzP2i5xKS tYa/Pn8vYvgZg9D2RO8bf53srFmWAMxXVMXzEc5sppbRIUwwHSm2ECBMOXiVMSZrxa+9 nmvQIxFuYfPDCRRUkVWkKCFTV8t10iKseLAejJzfWUiENaoZ+VpKnj1+9776sKk+10a+ hPfZcfaZClOg8ubUbgFJhPSeSTf3AfRm8xy/0JUaAJC7yyX7eoqn6PKm13f+LZ2cFTm5 r2A94yic6TbUIHkHxeQjAYW00qTYO+BxQikVjlzAg6E6I+kVdzWXX0mB1/UazeeF3FUI NQPQ== X-Forwarded-Encrypted: i=1; AJvYcCWJ0lARvKlEexjbrc/NDGdyF+tbnUxaOmTiCYXvYOoGSqUeuZj0QoFfm6JVJj8dZWpj1UF3QbBesftBiL0Tx1DYd5hAGOfp99SZnwAAcumsKAl5iNog X-Gm-Message-State: AOJu0Yy0OzZFsm0QVq9HYWbFqFd2+erRZZYvWUNdf/ieFyZJ7//tcpIe 55Vcjkql9Xo4TwVmck2aSaT4lM23Utsfs+Ti79Znf0LxPpMIO0rTYBfcFtAQV+uiccMUKcFLN3Z Akw== X-Google-Smtp-Source: AGHT+IF3u/75WI9MMRWQjVk+dcqFHeDZV83U9cH95eO4kO/Itl/i7zpPn9ZL2gHtlxqWHTW0V4QEbN9jQJk= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:c0e:b0:dda:c4ec:7db5 with SMTP id 3f1490d57ef6-dee4e57a059mr218127276.4.1715284989462; Thu, 09 May 2024 13:03:09 -0700 (PDT) Date: Thu, 9 May 2024 19:58:39 +0000 In-Reply-To: <20240509200022.253089-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: <linux-security-module.vger.kernel.org> List-Subscribe: <mailto:linux-security-module+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-security-module+unsubscribe@vger.kernel.org> Mime-Version: 1.0 References: <20240509200022.253089-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240509200022.253089-48-edliaw@google.com> Subject: [PATCH v3 47/68] selftests/proc: Drop define _GNU_SOURCE From: Edward Liaw <edliaw@google.com> To: shuah@kernel.org, " =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= " <mic@digikod.net>, " =?utf-8?q?G?= =?utf-8?q?=C3=BCnther_Noack?= " <gnoack@google.com>, Christian Brauner <brauner@kernel.org>, Richard Cochran <richardcochran@gmail.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Jesper Dangaard Brouer <hawk@kernel.org>, John Fastabend <john.fastabend@gmail.com>, Muhammad Usama Anjum <usama.anjum@collabora.com>, Andrew Morton <akpm@linux-foundation.org>, Edward Liaw <edliaw@google.com> Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" |
Series |
Define _GNU_SOURCE for sources using
|
expand
|
diff --git a/tools/testing/selftests/proc/proc-empty-vm.c b/tools/testing/selftests/proc/proc-empty-vm.c index 56198d4ca2bf..f92a8dce58cf 100644 --- a/tools/testing/selftests/proc/proc-empty-vm.c +++ b/tools/testing/selftests/proc/proc-empty-vm.c @@ -23,9 +23,6 @@ * /proc/${pid}/smaps * /proc/${pid}/smaps_rollup */ -#undef _GNU_SOURCE -#define _GNU_SOURCE - #undef NDEBUG #include <assert.h> #include <errno.h>
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw <edliaw@google.com> --- tools/testing/selftests/proc/proc-empty-vm.c | 3 --- 1 file changed, 3 deletions(-)