From patchwork Thu Jan 16 18:15:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13942123 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 A6F47C02183 for ; Thu, 16 Jan 2025 18:15:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E6C96B0083; Thu, 16 Jan 2025 13:15:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 396666B0088; Thu, 16 Jan 2025 13:15:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 211896B0085; Thu, 16 Jan 2025 13:15:46 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id EF6BF280001 for ; Thu, 16 Jan 2025 13:15:45 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 8D5301C8229 for ; Thu, 16 Jan 2025 18:15:45 +0000 (UTC) X-FDA: 83014118250.15.FA77055 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by imf05.hostedemail.com (Postfix) with ESMTP id A7988100002 for ; Thu, 16 Jan 2025 18:15:43 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="d/pTQuSA"; spf=pass (imf05.hostedemail.com: domain of 3zkyJZwYKCM8DFCz8w19916z.x97638FI-775Gvx5.9C1@flex--surenb.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3zkyJZwYKCM8DFCz8w19916z.x97638FI-775Gvx5.9C1@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737051343; 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:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=0ZopMXV5ghYV9rK4PxZi/Lzg02ubMOQm/cfSzjROJYM=; b=l44MsTbw8bqIld6gy/nTLrA2Xc24z2tcR5kWMxcN/HzgtTEnaE9Cu/tLiLRnJJgIqGzXX7 YpTgP8BEYs1oxega4OJQu2UIPDBwUr+VW+3da4dU2kfnNnoj9mURJuCFJyf3RoSykJdnN6 +ArJiP+34h2zZbrulM5sq94UgF+4oQg= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="d/pTQuSA"; spf=pass (imf05.hostedemail.com: domain of 3zkyJZwYKCM8DFCz8w19916z.x97638FI-775Gvx5.9C1@flex--surenb.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3zkyJZwYKCM8DFCz8w19916z.x97638FI-775Gvx5.9C1@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737051343; a=rsa-sha256; cv=none; b=jDID8sITjLdWGNbKVVDmKMmWnqg+kvKsHIJdVmd0fHbbqva5/vdXCDd+jib802SRLOiRRj E2622DO4j8CC5cfiorFf4C4ZHPLZH59TNWXmh2Yqx+xJ5cyMIe6nXsP/Thnw49eWfYXxDu fnrz6v98yxRDfH+RZfQFxYCOItKOCOo= Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2161d5b3eb5so21817915ad.3 for ; Thu, 16 Jan 2025 10:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1737051342; x=1737656142; darn=kvack.org; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:from:to:cc:subject:date:message-id:reply-to; bh=0ZopMXV5ghYV9rK4PxZi/Lzg02ubMOQm/cfSzjROJYM=; b=d/pTQuSAN9Gf4+bzq0T7fc1tUONAMnWEVtFF0KbHjaBZPa3ZlqT14jl5SYH9FhvFzv fg2sXHv4GX9jANcICECRYcRxhIAT/oL522PvgdXRehTQc+vgOOoHEfsO8zPDf4igwWDu tQVQhtoeKYLFKoxmpUCL2SQHrGtTi/eod713VX/fjbCAz1yBoK4OtvvXKbE/RsFYB8CG nap70+8QH/VNYSqyIu48ZMalpFbBBg+rZoth/TqlE5bSvBFvBWJYnAhDTYktyhc/oU7a FbkowGZvRsXp5WZQT/RGVhQwYSY+dbW73mbgBcXeelqpxKfdeIOOYls4NlC/VlOidiVL LGXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737051342; x=1737656142; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0ZopMXV5ghYV9rK4PxZi/Lzg02ubMOQm/cfSzjROJYM=; b=m270xTETfn8WkwRumYOvFBFAyz6AS/xTKOr1eqeygCDI+0+RzQ/oTbIfaNQ+H+oNf9 Y0UQTgzseQlJ/9rUo+SuPmFB/DSnTYgoTJNs6fcHoyGg3xHqwyRpNeFua8+gL3WDK2Op 4CCFUtKaY8AgSAp1Wvwmr4b1DaS+Mp93R2ws8hBxFCc2TmJTfVtV2UyJwWR3lhxbUXPN iD9SmN+kL6ZFYI+YqsXJHpXLqROxh5qE4ai5MUvahtLWOws1k7Xa/prik0L+gBU6mA2p urhkUrm41pPmsviYTbxzRKYWE95Dy/gtPYBG9J0fj1fpfLragSP9byIy/Zg65TZFoCIe 0PjA== X-Forwarded-Encrypted: i=1; AJvYcCWVs+E6tmBmEwPpSQ6HZYGBAGMSB1ukpcjZ4pIoYE3BJvC36yAohiRy3HvoAZ9rWdl90weG8uL8Mw==@kvack.org X-Gm-Message-State: AOJu0YyldXlZfvH5tKR8u7S2PmIrYFzeCCkHMRKdoow3WrtYitromP9E NsaJPTl3qfWPJmSlHJCqjPZ6TlKBzlOb/L88j7lmaA0+/XDF6dK7UK7CkpszjnEYaGFf46EFYlX 1gQ== X-Google-Smtp-Source: AGHT+IFLRIxbaCe+LUMHHwqHzVDALYOcdb27cHYLXtrOdh5XHjzd6rZePOawmcv66jfst18pkgjH+oJdWcw= X-Received: from plbkp6.prod.google.com ([2002:a17:903:2806:b0:216:31f0:27de]) (user=surenb job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:1cf:b0:216:386e:dca with SMTP id d9443c01a7336-21a83f64659mr526772565ad.30.1737051342228; Thu, 16 Jan 2025 10:15:42 -0800 (PST) Date: Thu, 16 Jan 2025 10:15:38 -0800 Mime-Version: 1.0 X-Mailer: git-send-email 2.48.0.rc2.279.g1de40edade-goog Message-ID: <20250116181538.759469-1-surenb@google.com> Subject: [PATCH 1/1] tools: add VM_WARN_ON_VMG definition From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: Liam.Howlett@oracle.com, lorenzo.stoakes@oracle.com, vbabka@suse.cz, jannh@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Suren Baghdasaryan , "Liam R. Howlett" X-Rspamd-Queue-Id: A7988100002 X-Stat-Signature: nahn9ycw5uu8dg4gurkah15jrt9e9dhz X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1737051343-95677 X-HE-Meta: U2FsdGVkX18GOKtmL4bIYURghogJZTTHkRelymvfuK3NhQGI9L6QsWX8QCkkm2SMIa3822eYImUNUxb2x33OiL9QVhSOJyZh3iad38r9K3EXQFyldqNhCDmKVEPfDL7TP8A0JdLVuxhMfUajxSAltkgeoirQZnc0o/IVvniMUrWLSAJWqY2mSjwclY+38i9qUjocF7hXDrhJnljIr1Id8g19WVs7uTu2c5oUScomNqkVlrotOh3EC47jyHNnV42hX8p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S31XBhfBlKi0rK/lo8i/bJ3cKRdR0hY91TlmJkcwyu+tNdVEYynIaK+umYNum7B1Ozp07Mn6xmYjwkbo9YjAbTWgTO33oyb4QIo7AvxoaCpjX2F+3hDiw+oGOlvACRGFPuBtVjqDCNwSfVhnN2tSZxQRPX+0V62u/v0lrthM4jMn3awCNJ6YUfBnKi9qjYUOARbA78WR43dMeDo2Y4AMIIXocFzpiBpNtRaYYK9pJbKLpzcOPYao98J4c6aJpgjZnjHolf8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.004545, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: vma tests compilation yields the following error: vma.c:732:9: error: implicit declaration of function ‘VM_WARN_ON_VMG’ Fix it by adding missing VM_WARN_ON_VMG() definition. Fixes: e3a7ae85f87c ("mm/debug: prefer VM_WARN_ON_VMG() to report VMG debug warnings") Signed-off-by: Suren Baghdasaryan Cc: Lorenzo Stoakes Cc: Liam R. Howlett Reviewed-by: Lorenzo Stoakes --- Applies over mm-unstable tools/testing/vma/vma_internal.h | 1 + 1 file changed, 1 insertion(+) base-commit: 4637fa5d47a49c977116321cc575ea22215df22d diff --git a/tools/testing/vma/vma_internal.h b/tools/testing/vma/vma_internal.h index 2404347fa2c7..1eae23039854 100644 --- a/tools/testing/vma/vma_internal.h +++ b/tools/testing/vma/vma_internal.h @@ -38,6 +38,7 @@ extern unsigned long dac_mmap_min_addr; #define VM_WARN_ON(_expr) (WARN_ON(_expr)) #define VM_WARN_ON_ONCE(_expr) (WARN_ON_ONCE(_expr)) +#define VM_WARN_ON_VMG(_expr, _vmg) (WARN_ON(_expr)) #define VM_BUG_ON(_expr) (BUG_ON(_expr)) #define VM_BUG_ON_VMA(_expr, _vma) (BUG_ON(_expr))