From patchwork Fri May 10 00:07:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 796643 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.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 33D3A13C9B5 for ; Fri, 10 May 2024 00:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299890; cv=none; b=FXkfWEDq2JUaYzmSZjzEig4aCdWSvRwIE1TINgHWe5RVRIJ8M78rd9m9WtEA0+bHyFaMjoXRLC9Nt5gM4avcNAhb5HOUTXQe6/s2Wfme3KiXyGzaLkTE8HzQsucX0BVvRhkU1DX+8YUtHu176OtlMmPCt2wRXF/LVMCBBnDtYVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299890; c=relaxed/simple; bh=IBU/NuSGvQtjM8xGos15Pkr68BKEzjA0BEJAs909nTE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NWGG8E5BY3eRAV/em7NMTZa9OpMXs1i9MbUQjA1CLsUd575vuv1T8ZsacJbKE1E548Mxe3prnf1jxODjz+npITdUtac3SF3FnYD0URZPLDqC/lc+zz9Q2kKrOpT0+eZaXmWME7cxbaY5n3No7DmN8HXY4luT/nLfP2/3u3FnF/w= 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=n3O2IGWl; arc=none smtp.client-ip=209.85.210.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="n3O2IGWl" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f4739ba7dcso952724b3a.0 for ; Thu, 09 May 2024 17:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299888; x=1715904688; 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=LuB3m194wkKvY0eVyf5M25YoLPjrODu7ClV5j+qOpls=; b=n3O2IGWl9Zq/A9XSyxaDukijDRxz4BJN8dyJcfqn/PgAuljQ6MlIQg6efMlRXmQLmH Ah/YGdfxBXT0GSBU80V9nlhmftG/eMTKYhWhoAbriXxWU16AsIWTzlHu2+0ewttgStuq QDCuRM4jd6VY5+UZ0RhfyBNYp5YmDlCg5SW0Ckkx5G4y0fUal5J2JlVcoP3gDCuWwkec BIMyzRhmVDktvY7dMorKjN2AuXyrctG5AI19OaH4ElKSuZHmQ7wWg9H4hL29JGibQI1k gUFLvJBRLUULeR8burOiKNGTX91qulll2X/xGwt0HO1d2t1q/Uxu/qvVatbq1SFt+gwx wbjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299888; x=1715904688; 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=LuB3m194wkKvY0eVyf5M25YoLPjrODu7ClV5j+qOpls=; b=oj/JMsoLYtNql9I86k6yHDmvh/3nW9DxcY03TI/GR9wmAudiGrVT4TPpLoWpuMEAFS cFwCbWdnv2fQASoLZtBUxIuUKQ30HubygeSv9hf4q31WFpwtFnQs+wVD+14/VxYA26hx UCduhQKAhSugPAF0uF4AgMdGYW5//1oSkzB6t9FBTt3LzoPDDbgEGtdyaI7wG6q7us6k jLaA7vQGGtdxOFNDhvpwnlBA9uH/ODyTOqhEc68BC7/6vF++bAy8GEUI43YuoEKsF8Mg Ex58NYPppry4EUNorXCRMZxROUXCYbwBLHw+3g/7IVJm0eW46qtup9DT32zc3sjSp4yu n5Vg== X-Forwarded-Encrypted: i=1; AJvYcCUVcb7Fa9zzT3aOVmXXdH7sNy/j9SuA3JSfQHZ7PON56PXeNMLnCQnBmdE30GGKqJwhgePGeoSD5IXEVaQE6waueLVKw0yuHWP9pZgRkrbE X-Gm-Message-State: AOJu0Yw7F9wxrlwMUnMref+Eis1BE7SeyI/zzZHhBburoSnEljtIkk+D PM5SoI8MPBxM6qlP9MSkzFiQqcNyCC+nSeFMAz7A0t7H3l520v0WfloJDbVrZZiFq8fbQNM1b3A 1Vg== X-Google-Smtp-Source: AGHT+IEAPDmiCGGPRhY6JBRoUT6dlR+CkZjrxhOj+xsSstNk+8V5LsggLR8ug+7H1pKBdhGr0v4AK8MG9gc= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:17a0:b0:6ec:ee42:b143 with SMTP id d2e1a72fcca58-6f4e02ad1f1mr31327b3a.2.1715299888557; Thu, 09 May 2024 17:11:28 -0700 (PDT) Date: Fri, 10 May 2024 00:07:06 +0000 In-Reply-To: <20240510000842.410729-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240510000842.410729-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240510000842.410729-50-edliaw@google.com> Subject: [PATCH v4 49/66] selftests/riscv: Drop define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, " =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= " , " =?utf-8?q?G?= =?utf-8?q?=C3=BCnther_Noack?= " , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend 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 _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/riscv/hwprobe/cbo.c | 1 - tools/testing/selftests/riscv/hwprobe/which-cpus.c | 1 - 2 files changed, 2 deletions(-) diff --git a/tools/testing/selftests/riscv/hwprobe/cbo.c b/tools/testing/selftests/riscv/hwprobe/cbo.c index a40541bb7c7d..4de6f63fc537 100644 --- a/tools/testing/selftests/riscv/hwprobe/cbo.c +++ b/tools/testing/selftests/riscv/hwprobe/cbo.c @@ -5,7 +5,6 @@ * Run with 'taskset -c cbo' to only execute hwprobe on a * subset of cpus, as well as only executing the tests on those cpus. */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/riscv/hwprobe/which-cpus.c b/tools/testing/selftests/riscv/hwprobe/which-cpus.c index 82c121412dfc..c3f080861c06 100644 --- a/tools/testing/selftests/riscv/hwprobe/which-cpus.c +++ b/tools/testing/selftests/riscv/hwprobe/which-cpus.c @@ -5,7 +5,6 @@ * Test the RISCV_HWPROBE_WHICH_CPUS flag of hwprobe. Also provides a command * line interface to get the cpu list for arbitrary hwprobe pairs. */ -#define _GNU_SOURCE #include #include #include