From nobody Mon May 4 13:06:35 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 1497938C423 for ; Mon, 4 May 2026 10:27:52 +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=1777890473; cv=none; b=iXNEr1R92FfVkLU67oIO1adXnC8jSBYSP5jDtaF/pvagxwrlSAwOq0oeorn3ynRZE+y0UDLAObB2vMe3zVUzUYk67CmfU6xpfadhWFHrVt6kgLw8AsQBbHX9vKx4eRHMhBdKA/lkpHlmILwW5f8MVHfVe2VRK35P44sJHGeTCAg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777890473; c=relaxed/simple; bh=Lm7HRhztFy2nXJJI8dsLt4KOHWAxV7mNAACnnwK3Ulk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=rAyEnFej5Wr5muaLkjtf6dFBomXLqXIH92If4EjYMFmZ1HFbg43Kbpwc5FEJDCDpBdk9mP+YCcoN9FVMFBosvWi5So4lsmtKoAcyzr6v06mZkw/Y9POEy/QkOwL5/NKrQfOwr2X0YrnRJ7Z7gZpcQvfTRtXQnN3H47OiWsdRk6s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JFUIFciU; 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="JFUIFciU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EFDDC2BCB8; Mon, 4 May 2026 10:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777890472; bh=Lm7HRhztFy2nXJJI8dsLt4KOHWAxV7mNAACnnwK3Ulk=; h=From:To:Cc:Subject:Date:From; b=JFUIFciUSLwWOa7NdBlXoMOUqRJnXRW3JpBH7bb0mQP5HKAnyucIXhWo36zrzUid6 xhxoFasBn98GpjRnkeBg+dWhXW/uUPdy8wWqoYQnyrV1FR6IMJf1xBw6bnut1ffovc 0a18Svg8rvBHBtEDIMTMGlkCQfT7F7hWF2zdIGVe8oGQuflhBX0vTC1evldtBn9yVA 2/RKkrbLLZLiavZ9bdEbjEdHd+2FOBwHg601JZHamnHDrq10naFpBsaplQNTNh/Ys0 CNy/poKpl2XOOlc89xa30jvq+64VR6YgLr76amDqOI2l1/gsrDRaSu8SZcuOM/d1cb Gur7ELofq+kYQ== From: Pratyush Yadav To: Pasha Tatashin , Mike Rapoport , Michal Clapinski , Pratyush Yadav Cc: kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] memblock tests: define MIGRATE_CMA Date: Mon, 4 May 2026 12:27:40 +0200 Message-ID: <20260504102742.3833159-1-pratyush@kernel.org> X-Mailer: git-send-email 2.54.0.545.g6539524ca2-goog 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: "Pratyush Yadav (Google)" kho_scratch_migratetype(), defined in include/linux/memblock.h uses enum migratetype. This breaks build for memblock tests with: ./linux/memblock.h:634:73: error: parameter 2 (=E2=80=98mt=E2=80=99) has in= complete type 634 | enum migrate= type mt) Fix it by defining enum migratetype and MIGRATE_CMA. As is the case with the other headers in tools/testing/memblock, do not bring in the whole=20 thing, only what is needed. Reported-by: Mike Rapoport Closes: https://lore.kernel.org/linux-mm/afcdDm4aAJvNaQqH@kernel.org/ Signed-off-by: Pratyush Yadav (Google) --- Notes: I didn't add a Fixes here since the commit hash for the deferred series isn't stable yet. Anyway, I think we should fold this into "kho: fix deferred initialization of scratch areas". So random bisects don't land on a broken test. tools/testing/memblock/linux/mmzone.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/memblock/linux/mmzone.h b/tools/testing/memblock= /linux/mmzone.h index bb682659a12d..8d934ff5b080 100644 --- a/tools/testing/memblock/linux/mmzone.h +++ b/tools/testing/memblock/linux/mmzone.h @@ -35,4 +35,8 @@ typedef struct pglist_data { =20 } pg_data_t; =20 +enum migratetype { + MIGRATE_CMA, +}; + #endif base-commit: 74d1099bb4edfca3ce6edc61dbacbed96720034c --=20 2.54.0.545.g6539524ca2-goog