From patchwork Mon Jun 24 23:26:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5099BC30653 for ; Mon, 24 Jun 2024 23:30:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D04A36B036C; Mon, 24 Jun 2024 19:30:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CB5216B036E; Mon, 24 Jun 2024 19:30:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B53AF6B036F; Mon, 24 Jun 2024 19:30:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 93F7E6B036C for ; Mon, 24 Jun 2024 19:30:00 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4E3DF14106F for ; Mon, 24 Jun 2024 23:30:00 +0000 (UTC) X-FDA: 82267377360.29.39E3D0C Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) by imf06.hostedemail.com (Postfix) with ESMTP id 73B75180007 for ; Mon, 24 Jun 2024 23:29:58 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=Mv6fK1R8; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf06.hostedemail.com: domain of 3dQF6ZgYKCJo87FC4QAIIAF8.6IGFCHOR-GGEP46E.ILA@flex--edliaw.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=3dQF6ZgYKCJo87FC4QAIIAF8.6IGFCHOR-GGEP46E.ILA@flex--edliaw.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719271786; a=rsa-sha256; cv=none; b=fhs9zLZCq3Ayrdq9ue8wfc38VLQc9xJ4wKBoF1dvUdT2vyMAbTMik/q0Nlfz69aQBoilUj fBvL7o76rBlt3d5JQOrbNZ3eg80nGM1nPiczw1QAGi3DUxRkpjfBI2+Mpi7+ZvkMKs/+Vb dAiFfcaBni9h1jHfPD+shIvxQUHI2TU= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=Mv6fK1R8; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf06.hostedemail.com: domain of 3dQF6ZgYKCJo87FC4QAIIAF8.6IGFCHOR-GGEP46E.ILA@flex--edliaw.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=3dQF6ZgYKCJo87FC4QAIIAF8.6IGFCHOR-GGEP46E.ILA@flex--edliaw.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719271786; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=q/nRYsPHuTaGMizrWA3B3ZZLI9bMolsQdLa0Lqckx8I=; b=rhtMp7OULAT66diQhaEufdq9yDT+F5LErGdvgElQ2qLyG7K4EEKUNJGhSnSzHSBKk/LiKg UwYCOTaYoqbtspwTBfUkk1dtS5iinZ6n7MI0+zjh4zV5+I9NqtEW16VACHzC3LTxFhkJOe e5lBQtKzynI/jU2f3Dquds1DJVPY174= Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1f9ec9aae70so38598665ad.0 for ; Mon, 24 Jun 2024 16:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271797; x=1719876597; darn=kvack.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=q/nRYsPHuTaGMizrWA3B3ZZLI9bMolsQdLa0Lqckx8I=; b=Mv6fK1R8BLGdc52JHwUM/ZDgc88pzBrP7s7H+o9A33urcYqokMd9QHJXyr7HXhsxi7 qYjMNAWXmJh6jSv8h3iy9iHrRcQcKngAW4GS9Dn87asXeYYfRyxPZJAMJHrJzwl90WT2 FZSQmLXDLb3WGQpTDUqlXjILxzr4zAJME8erMAmgUazhuavwbkiYoX0c2y3kL+7Z7y2C s00LhB2qmtna2ytX7Iy7xPxam0PviF82F6tZM6dDNG9kkdO0vALlB0f1vFPOCGBpyWPP w5Pyb1mDyso7He6cwJGlDcta1BXyKXeMSL6T9rwAFecYzAulSRnPWmOO7R7kb5X2AgLT vVQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271797; x=1719876597; 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=q/nRYsPHuTaGMizrWA3B3ZZLI9bMolsQdLa0Lqckx8I=; b=ID6sO3yxRrnLdvmx06ozXJqhxz8fpLIOQNeBY+0fhUFaRSN4MmB+L2MAzODdc4H4Ud EFMBFrWUZCc2BwZb805/3zpAw88UfvhgP7vB8R98aARTXlkMfyEjWeNt8l5anitRKj51 2i9ZqqH6muXilmiiyWrHII/IOHeM3XlVejztcQYuTDbziBZVpd/N6CEz6ootazUcPfnv 005UyW3mIAp2MIfg6uuJ042f5tqUtyAcp5ZVrVvq2FFKHhQM2R2fiSUk5rfzIsz/Lc/b zL6ojJfxSvfT1tDQt9QGRKBUlKNU7/YDTwHhyNCDf1q1zf2a91Fz50c1NdLTRUqq7nQ+ iMng== X-Forwarded-Encrypted: i=1; AJvYcCVq6GmWZ5wQnWUZ0jIcvgK+OOCWcc4HlLTU58+3X/v0swqEZXMVfPx5+DW18SsQrkOdLh8OHsey8z+0LfxSTDYZYOc= X-Gm-Message-State: AOJu0YwLbLMsOEm2pW4qqrnErLIo6JM1OpKwJXyIF2nnYG1u9K64Aaac x3jnXEipZYRyhXz4acJVjxi9/O+p4C8n1NVL4n0Lggj52WaigAsX3v/V3hOGp4KPe+W75gTsctE 8sw== X-Google-Smtp-Source: AGHT+IFZmU35y+9sHVYjgBtLmkHsjpVEfz9mzouhtaAmWQwnWgKPMl1MuSAOaM0VtiMXYbYfw881ubbrmb4= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:f707:b0:1f7:3170:5c4 with SMTP id d9443c01a7336-1fa1592da1fmr6098675ad.10.1719271797169; Mon, 24 Jun 2024 16:29:57 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:20 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-12-edliaw@google.com> Subject: [PATCH v6 11/13] selftests/ring-buffer: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 73B75180007 X-Stat-Signature: gpj757r5gbnars3iybi6y19unyodipsj X-Rspam-User: X-HE-Tag: 1719271798-34211 X-HE-Meta: U2FsdGVkX19EW7mXuocH44/YvTY4MK+n2xNWByCniFNkXM+cJ62aUdF4OScMDLP23saWt3ubZ6JBv0zy5A8S5KYZZkJxAtV9yJ09kIEVuxzFGdVvjVkLQsIpFYTd2V4EB/q5KSRYurYU90kfvm8ab13IymIr2xsyy10CoQwdLtmqY3zUDXyMmVymKg80FbaqRWxgZvWrl2/4NpcGQdkDO4yV0OVcmu3ZxREt3lLrQuKnNzAuzFm4BntPc3WG2KQjnn6eweutrYaV1qc871k39NraVPx7wHApaHV5YkjCFlFMC+fzJ9nURWFZPxYi/Z8+aqX7opCDBdwLmNDyTmwv5H1uYG/oFQeu+fzHENPImYnqrQdPAUcf6PigDIdg+4AVcnfdbNdhfjjQRJGdya3yDpzPgcvjYG88NF02WKiSNFKSHNxnqRTAafXHk3xXQUSVFCeeLZjOUKcZ3/RbA2Oh1IZ4xJrmzG5djZDeeoSVcJy+TkECjMUN6uFTdea0vC7guLhi5iBeLgmc+1GutknlSVRv/hz2NRBygjkybjVxrudZY7ikO0DEpk3PHxZliuW0v06MjhaV5JQyMjesm8anJH/DR+Tpw08cIywH0slaRG3V2a4BdLBVknv1h6r18n97FhLaaxEWmi0onW0906sEYYXig1NbN8LRQJ52UInTT7SrICmlEetkk1SbAJG3fZCqg/XvE7dt6Hn0sJpckMgWMaaybmUT1bmr1XCQACa6DUQaGJEqOgmGuGw/a93Uhb4tWET9qAz1lEErMl3NNOuDPZiiTTY/MMjLQDmkpMKm6b7FCnSyng+/1I7DEAA9Rjhl6vNuSroW9diXRZ7/qjpIt0n2H+5WsepdlHv0PmlFWgyR5VppijQPLtmYMLmHW/DReW46j5o5FWHf/gxDYJeWdPz1/tnO2NeDFTNJMAnUbvPlKQSUFBJhKTl0GL8MhR2UKdl+JbJ+4JzLyZOpvhA hPVuFGlj 21xHR3lwfutUG4PXZn8OPg5fWCWkM9yovuYJEC0/g9G2PG5izg2CHZUJv4oolxKwWm8g6mr1h9AQAq3p4RYKgqM8JRZON+c0SJjkclPwWpCOLdD9yfxfq/yVgpTqM0Z6oad4cjuWhfp7ns5reejIojE35DoS0bZb/W964HWg/FBCyAD5+mQr466xggo45Dx+PIsQf1aZtC5Toh7gmIPjVRiitArnWoWp3s01s+a/F/5xaKv/CtxPpSnbOthz0X9iYjMbggQ72vOK0aQe2GKhUberIXPIXa8DMn1OVSKJejH7izRwpsYXKeJgvtJTK+VGJuGnTA+ZAId/CKfqcYjocesAhqZD/5L+q2TT1VHXEe4Ziszjwt/5H+cJuMUKoUjPgVAJkvs8wVQG3VNI5oYvk3L0C5nVex1dmLCx8/FicS1LjlScSMYsXcqYKdLj7YWE1EowZOSoNVa+90m6/bgNDQ1DSNT3gQyTVRXRxHcyDS75rhTW5QsH7P6BRPpjXw6TkxaMIO9wipLQkOHwqWH3W1sFZSKJUaRBg4QiMOYnYPuL7wPlcd0bzo5V1MQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000082, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/ring-buffer/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/ring-buffer/Makefile b/tools/testing/selftests/ring-buffer/Makefile index 627c5fa6d1ab..23605782639e 100644 --- a/tools/testing/selftests/ring-buffer/Makefile +++ b/tools/testing/selftests/ring-buffer/Makefile @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS += -Wl,-no-as-needed -Wall CFLAGS += $(KHDR_INCLUDES) -CFLAGS += -D_GNU_SOURCE TEST_GEN_PROGS = map_test