From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) (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 3A127345EA5 for ; Mon, 3 Aug 2026 22:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785795457; cv=none; b=ijB41/XhvBHddruLtKuSt4bfqYUWTd7k86I6umd9DwB2OeacfWPK4jlBrilSUR9spBlc/ppapaLYVx76WbXGbY/V1ZMGpfQWL1rMC9KPGi3KPvFRHgUt66EjB31fLoCTcEwnlkB+719MRl+2ZFRoBzr/HNHWwLM95v8vY8Eazyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785795457; c=relaxed/simple; bh=PuOW7OjIeGTQhTC5nwTJCPJMOPF97oQ27G6NO2n8+o4=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=JPih0MVH4wDLUkngjQpts9Xydu7OCgRXUf5e/T4fYo80Ht+MeG29wOhKHwdKXz1jMR39M6+DNA1+GZh6WvaiHur/lVgXr4HqO2bSeV9F22lTJAVKlNtb8GGqtATciFTtPIU0jXkjm+C389eBvej1F2+2NeJrS0bJZUhc5LGCPeg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--pratmal.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=CxOsn4YQ; arc=none smtp.client-ip=209.85.215.198 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--pratmal.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="CxOsn4YQ" Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-c85798977dcso6545428a12.0 for ; Mon, 03 Aug 2026 15:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785795455; x=1786400255; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=wDkXq62PUaK1OEdpjdaABy4j3I9dWut5oFZmmgzetIU=; b=CxOsn4YQ5fO7U4NMgG0MTtxV2FsblYFqMLcs0kKBxwmxmctupIikHVEhDQ1KflV8WD rCwj9L8xQy0DIy8/PJ18iWcVjy4gv8fOlYtADtWRSCBFXYfPOyROjzHpJ0cc/lmx45KU 6YxaLHwuwmdSUbJuH5g208ZF/GF4YYyEqv8mvTf0GthGB2qxhcmX503DNOaVC8hkgMUM V/MoET3Sgn9lNFXWQcBJn6sBktmUP2g5icoXgnnlaBePJLF3OxwwvVQcTA1jokI4a8+S mRyJUBZv3pJRFEfln/LlG0l7RtRkAYRedI5PJsbDeH/I/C/pBcTk8zDO65/wgl+UsnMO QE5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785795455; x=1786400255; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=wDkXq62PUaK1OEdpjdaABy4j3I9dWut5oFZmmgzetIU=; b=RMYh+cE08RUGeZL0QWm6dHAtornkvK5JZVC5v7TJen4TCezTqFEOfpvThGZecDWelT P3YfLoDCtPdnl1MYA346HnDZunOa9qluGGrd4pytgEToqpqCdY9VZRZBb/hGm50QkoMK 686pK4r+4m/BuayKy8R0Nv7Lc0biISZoO++GxzU4y+hqKu4bbB4H2BTIqAlkZ4Z76TQI O6AZPV0STq7N4czZ8mparrRS8iSE6Gum6knjwxkr5P/8dnR0MUDCEHEVVz+lS8b2TaxK U2Z27JzovPGG7m1pigD+J0SX8y5u2c/cbEUAxRosTl3o4ijS6PIyHpmAC/UGZjD1Euc5 Ldrg== X-Forwarded-Encrypted: i=1; AHgh+RqzStIIx6ypkrNtaY+zDW0W7Fo63RoWx0i5/hrr/bcdjE06XEhrG1h6m0EgYWUyV4p7ksUGavU2gLWm3p8=@vger.kernel.org X-Gm-Message-State: AOJu0YwCBAB6YPGXYK09QJnMtZwlSJ5fg5JZQS5JJRwWqVyElP1SMuFG YXL7yWc1qtEbuQOZjIVY8ugdPo6OhTTU1Jdt7azygv2Rv4MNNsGzEImDWFnR6toxer5FL34vuEv +oYy5wLAv/Q== X-Received: from dycne3.prod.google.com ([2002:a05:7301:c83:b0:2f9:af7:504e]) (user=pratmal job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:7fa0:b0:3a2:d316:de53 with SMTP id adf61e73a8af0-3c92a26b16emr11210688637.0.1785795455279; Mon, 03 Aug 2026 15:17:35 -0700 (PDT) Date: Mon, 3 Aug 2026 22:17:30 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.571.g244d577d93-goog Message-ID: <20260803221732.3651981-1-pratmal@google.com> Subject: [PATCH v4 0/2] selftests/mm: use pattern matching in .gitignore From: pratmal@google.com To: Andrew Morton , Shuah Khan Cc: SeongJae Park , Sarthak Sharma , Yosry Ahmed , David Hildenbrand , Lorenzo Stoakes , "Liam R . Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jason Gunthorpe , John Hubbard , Peter Xu , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Pratyush Mallick Content-Type: text/plain; charset="UTF-8" From: Pratyush Mallick The current selftests/mm/.gitignore hardcodes each generated test binary by name, which requires manual updates every time a new test is added. This series switches to a pattern-matching approach (similar to KVM selftests), ignoring everything by default and allowing specific source extensions. To accommodate this without tracking generated headers, local_config.h is renamed to local_config.h_gen. Changelog since v3 [3]: - Reordered the patches so that local_config.h is renamed before updating .gitignore, preventing local_config.h from temporarily showing up as an untracked file in git status (SeongJae Park). Changelog since v2 [2]: - Split the changes into two separate patches (header rename and .gitignore update). - Added Suggested-by for David Hildenbrand for the header rename approach. - Dropped David's and Yosry's Reviewed-by tags. - Kept Lorenzo Stoakes's Reviewed-by and added Mike Rapoport's Acked-by. Changelog since v1 (RFC) [1]: - Renamed local_config.h to local_config.h_gen to avoid conflict with !*.h. - Updated Makefile, check_config.sh, and affected .c files for the rename. - Removed *.mod.c as it was unnecessary. Links: [1] RFC: https://lore.kernel.org/linux-mm/afnMAaz1jY94db2n@lucifer/ [2] v2: https://lore.kernel.org/linux-mm/b6717dee-486b-4c61-8ec8-0e4269959469@kernel.org/ [3] v3: https://lore.kernel.org/linux-mm/20260511173411.267628-1-pratmal@google.com/ Pratyush Mallick (2): selftests/mm: rename local_config.h to local_config.h_gen selftests/mm: use pattern matching in .gitignore tools/testing/selftests/mm/.gitignore | 71 +++------------------- tools/testing/selftests/mm/Makefile | 6 +- tools/testing/selftests/mm/check_config.sh | 2 +- tools/testing/selftests/mm/cow.c | 2 +- tools/testing/selftests/mm/gup_longterm.c | 2 +- 5 files changed, 15 insertions(+), 68 deletions(-) -- 2.55.0.571.g244d577d93-goog