From nobody Sat Feb 7 18:21:31 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18AE26D1A7 for ; Sun, 28 Dec 2025 18:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766947191; cv=none; b=T2AANYP/0pUluguFgsnqCOx4uX8dW8n2jJzQK1HI6uoB8Lr2ZCbIXM0rqMrybbTie3SOEdHKJFYgHQma8NQl7C3JV0KCEk/M9LlxkAJAFPHb8dUPQxmYV18QB6FJk8AYZwKxfZ6qVUNr2gPNeMzDjvCywD1lPaylnmh/5TSmGT8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766947191; c=relaxed/simple; bh=ciQXy86RgfhF/JwMoiPRFmXrwDhJWLlPq9Q8wigsJuU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=hmwfmyg2Vq0D/OrhcZeSBjWSk7i6JUcxuOEN3vjG3CP8hZemzr7GEXHAjbXX7r/DM29vxINNQZJX1u8xUsikk5TPUDHpU80d2S86QHHt/+BPKpVLF0sRtqabT9pvLlKL4IoVSiUTupmA+QItcE6R0H3e67iWWKQCf12u6uOEl9w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LUXibuFv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LUXibuFv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 874EAC4CEFB; Sun, 28 Dec 2025 18:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1766947190; bh=ciQXy86RgfhF/JwMoiPRFmXrwDhJWLlPq9Q8wigsJuU=; h=From:To:Cc:Subject:Date:From; b=LUXibuFvSETnIIK49egmoOsK9bw6dIOXm5jtZhwG7qSzLSGvIiJXdcF0Y2XUG8OqR 73G6VTNJDGRi5fN9j8aphgX5acotMb/tbl+EApGC56QZFzaAPW+AyiTQw+FHpDwI+O Hne3foc7BXtsqKhHmKBUpkfghTf3pp1hqgU63Co6h4iQMXGYy9smUHXuqqQU2GySH7 mCD/xl9FUZl6lAs93SDdHY2v3HytR3Ye+zV8W1ZgsU2a4DAJgok/82XzZLXf4jF+CG k56td36Cq8r7Twc2ga0LlprykzfPmKL9uHeW/0R6ge93FOOBlZhOMk7le+Ux3mkSee uvkM0FHOU2aWA== From: Mike Rapoport To: linux-mm@kvack.org Cc: Mike Rapoport , linux-kernel@vger.kernel.org Subject: [PATCH] memblock test: include from tools mm.h stub Date: Sun, 28 Dec 2025 20:39:42 +0200 Message-ID: <20251228183942.3628918-1-rppt@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: "Mike Rapoport (Microsoft)" memblock test compilation fails: memblock.c: In function =E2=80=98memblock_validate_numa_coverage=E2=80=99: memblock.c:784:58: error: =E2=80=98SZ_1M=E2=80=99 undeclared (first use in = this function) 784 | mem_size_mb =3D memblock_phys_mem_size() / SZ_1M; | ^~~~~ The SZ_1M is defined in sizes.h, but it is not included by stub version of mm.h in tools/include/linux. Add include of sizes.h to tools/include/linux/mm.h to fix the compilation of memblock tests. Signed-off-by: Mike Rapoport (Microsoft) Reviewed-by: Anshuman Khandual --- tools/include/linux/mm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/include/linux/mm.h b/tools/include/linux/mm.h index 677c37e4a18c..028f3faf46e7 100644 --- a/tools/include/linux/mm.h +++ b/tools/include/linux/mm.h @@ -4,6 +4,7 @@ =20 #include #include +#include =20 #define PAGE_SHIFT 12 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) --=20 2.51.0