From nobody Tue Jun 16 04:06:11 2026 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 092101E7C23 for ; Thu, 16 Apr 2026 02:19:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776305993; cv=none; b=I4YqlQBq+/S0V35A3VtAMS7QxnQxFuR2qMazrRGdD9iyAb2FIrFEDaBwxpXM7sO3bAgs+lyuRJKljWr1aLRYGiAMldMUZX2ees8nc1CgzJzLd1moFpDy/Nrjo0LbnNGZ497946O8p5WPK4lb1l0ONXv0hgS7vfhgMUSHHaGCYHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776305993; c=relaxed/simple; bh=E6poiA4dfL9b/DrD5mUTiF9L+fVXEssxvF/mqMs5L48=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=syOrKGyOcCDh7fTRjGaPAuR6FFn6JCCeiWrzIJpfDr4CNZFCzItwvFxf8In5d4ugM6q1X3jkMYJ4bo7W65di52OWHUsP3d+yn8v/+7wNI6Sy1DOEWl+657HlSR9jOecjF8dyAgHOUBUFDJrSRjzuoN3dfFefIT8/cDhKyzvEJfQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=K49djbI0; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K49djbI0" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2ad21f437eeso1057395ad.0 for ; Wed, 15 Apr 2026 19:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776305991; x=1776910791; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=r/b6LeONGsmHeQryJPpKqE/rRI/nwz9UqzvnQv7bsao=; b=K49djbI0mFyMy3/bckgL4J6wLh5ZEpDAjkVddPO7MhzzjyLoRyxA8rn4ITtBlIIQC4 y+zLoCJ8uVBO4+p9hHBgE+KMu8yeQtRbDfDZICdMo2imIiI84+uPNvju5s0ejfdv1lZW eEUY1mNO7f+rugRq0jqCfPVmbCkyPUZX0bXyDuz77VQ8monp7baveO8PXfJJDHr1cB9t RpbC5B/59BWVKrWvUN3CjnKmKmbMFBe52hu+QfXalqFX0k9ooQTY3iUKikyXvyW2VcOw OWwjnIGfgE//WlBw0HT5LXfqy5up6F0euAZKH3f1gOXrVnY5+xUNly7D0bwO8+TiwddD 387g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776305991; x=1776910791; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=r/b6LeONGsmHeQryJPpKqE/rRI/nwz9UqzvnQv7bsao=; b=M7agUzZS8+BWYseXBNZksbCBbm0pJ8VnQ9NBTg8SIsOpIz1GqtFWfLgRXgHptY+VCC Q2bNaaDtKKcbMkAidxBpz5NYGX3zbdTv3jHbLAAbnlMMhDZeRyqo9d9JL+CRIRhAswiZ a1oLY33cDEQR7hlf74PRzqUJxO6PT+tkKQrU1htN5j8BaIiBtmSE7RrA7yqr2RcWgQbv Bgfl9NGMWPdArHDNL/sJcSYZ8vcB1vTWqrFJFIZm4CjjYuza5m65Xp1no9+UJm+yz5RU hlHzlruKzNF18e+gNTZbnuFgj6uBdfVAQtByQWphWzLKX5hDt7XMeeaMCF/681p6AsJ6 4TDg== X-Forwarded-Encrypted: i=1; AFNElJ/u1k7FRJkXR62GBUAuVUtSeJEFJBBVU6RnzBOZoC9G73cvKAlU++bL9Zpu+DPT+d5Sl7TbMSClebT3/pg=@vger.kernel.org X-Gm-Message-State: AOJu0YzYcpcJrNsmZqnfAvSlgqO8x9ezgkqRqB6HKB2gbCYrQgehwCGq ibnXiCjj9esjpXY950icTq43mCeZ/OshFEzt+zcZZkQdYruevYM60Cl3 X-Gm-Gg: AeBDieuYBM5d+dTh1WHXAQTiGNUXlh/FI5tqUIUYCrJO4QLn+b2Guvt+J/EimEA3vcP zBe9i2pUSg+LZcMW3DJ51f/VYy3zdTKMA/6vCYfsxRZ6b+xEC/9Tf7vCGex4ZV0DQDMW8imG2vk x8AFls8VwYUHOXGt7k6zwIpMl81jR2vjTO1e80LFdSvuZoeHrj4ILmguEZ4aoz9qDB0P0pNH2pL V/YKhShaW2/Npw9oer8au0yb48YjYps5ZJsm1GdHY31z2nUAwIc5DEVMM5sOd7S65zPHr32figS 3eemfZR6WDBOYSFmhCbC/rFHQnKmV2v6cDFO7OM8oAlQ+9RXrccf1hg9szA2fN+mxQpLHzkO6zb WUNP8BnLHelMcp6UbeXrHEOxLXxv/HeKAVZFqYbL1nXrew/BRpD+v/4SlfOUer/hRcX+vVf44tc yuyr1rXX68aFin3WkvCAFnkvJi3etPKF97 X-Received: by 2002:a17:903:3910:b0:2b4:6447:f8a2 with SMTP id d9443c01a7336-2b5eaabce4cmr14916825ad.21.1776305991282; Wed, 15 Apr 2026 19:19:51 -0700 (PDT) Received: from xiao.mioffice.cn ([43.224.245.230]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b47826e917sm47129935ad.54.2026.04.15.19.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2026 19:19:50 -0700 (PDT) From: Xiang Gao To: akpm@linux-foundation.org, vbabka@kernel.org Cc: surenb@google.com, mhocko@suse.com, jackmanb@google.com, hannes@cmpxchg.org, ziy@nvidia.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xiang Gao Subject: [PATCH] mm/page_alloc: fix spaces used for indentation instead of tabs Date: Thu, 16 Apr 2026 10:19:45 +0800 Message-Id: <20260416021945.682234-1-gxxa03070307@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Xiang Gao checkpatch.pl reports two indentation errors in page_alloc.c where spaces are used instead of tabs: ERROR: code indent should use tabs where possible #887: FILE: mm/page_alloc.c:887: + VM_WARN_ONCE(get_pageblock_migratetype(page) !=3D migratetype,$ ERROR: code indent should use tabs where possible #6626: FILE: mm/page_alloc.c:6626: + sysctl_min_unmapped_ratio) / 100;$ In __del_page_from_free_list(), the VM_WARN_ONCE at line 887 uses 8 spaces for indentation instead of a tab. The identical VM_WARN_ONCE calls in __add_to_free_list() and move_to_free_list() both correctly use a tab. In setup_min_unmapped_ratio(), the continuation line at 6626 uses 6 tabs + 9 spaces for alignment. Replace the excess spaces with 6 tabs + 1 space to correctly align with the opening parenthesis on the previous line. Signed-off-by: gaoxiang17 --- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 2d4b6f1a554e..752673a9b43c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -884,7 +884,7 @@ static inline void __del_page_from_free_list(struct pag= e *page, struct zone *zon { int nr_pages =3D 1 << order; =20 - VM_WARN_ONCE(get_pageblock_migratetype(page) !=3D migratetype, + VM_WARN_ONCE(get_pageblock_migratetype(page) !=3D migratetype, "page type is %d, passed migratetype is %d (nr=3D%d)\n", get_pageblock_migratetype(page), migratetype, nr_pages); =20 @@ -6623,7 +6623,7 @@ static void setup_min_unmapped_ratio(void) =20 for_each_zone(zone) zone->zone_pgdat->min_unmapped_pages +=3D (zone_managed_pages(zone) * - sysctl_min_unmapped_ratio) / 100; + sysctl_min_unmapped_ratio) / 100; } =20 =20 --=20 2.34.1