From patchwork Fri Jul 12 03:51:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13731265 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 D4CE8C3DA45 for ; Fri, 12 Jul 2024 03:51:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6BF8A6B009F; Thu, 11 Jul 2024 23:51:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 66FB66B00A0; Thu, 11 Jul 2024 23:51:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 537596B00A1; Thu, 11 Jul 2024 23:51:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 338AA6B009F for ; Thu, 11 Jul 2024 23:51:46 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id CA992120896 for ; Fri, 12 Jul 2024 03:51:45 +0000 (UTC) X-FDA: 82329726570.02.11AE4DA Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by imf24.hostedemail.com (Postfix) with ESMTP id 20731180015 for ; Fri, 12 Jul 2024 03:51:42 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YnlUlu7B; spf=pass (imf24.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.167.49 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720756286; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=GO3Tf5d/D2iUR2IShRIcj0G34F0OnXwQyIKn4cZF5cA=; b=KlckRv/acuTxbOplEDFcd/iCdINpE4GRNGuslEbuIhPJIqQLOq0cxicSi2kifgZ7CkLIM3 c3fxlSPceOv+LDp1k0RSEwGi80AGJOajNWRASIj6WVyyvvEBwBzr3eqetUpYL+XJQjTE1J Lr8wSUiF4ejGqYTX8JldrNwUMsyvMAU= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YnlUlu7B; spf=pass (imf24.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.167.49 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720756286; a=rsa-sha256; cv=none; b=03k3XHp2b+5WMytXzgVfQQ7WM6am5JzrIOur6jeXasOomHChrej0q06Pf48ETJCxZj5mEF XKDfXyycBAJYxeKupcNyWXbtlSW2VEK6FwOYOPFpHWXhyop6C5ZkK5QrWClK448nPGX1fY hs78Rx8rezaGqYRQKuMqY5/EyP7SyjQ= Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52ea1a69624so1691671e87.1 for ; Thu, 11 Jul 2024 20:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720756301; x=1721361101; darn=kvack.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GO3Tf5d/D2iUR2IShRIcj0G34F0OnXwQyIKn4cZF5cA=; b=YnlUlu7BxfOpCFzZayhTKGLcLiWjPUYE+Q0PNRrkbYNAEwaFWd12RAkbyzh4tyWyLJ oUO+pSuseFCH9e6zgw8QoJTzI1zPP42qvXPzvcPj9Yqggwg6p2J2yx72v9Sa2m+oJbj9 RzJqvT8eS/h0x3Yc0QSaRvNVPCE/QVQAhes8xYbCO68pgmMu6mZJEZIn+9ztLFOXl+eD 5aqhJduAIAJSh7pMnHOKYUHTrIHKAgLQxzJ/xDKoKRU0PPbx/22vmKESd4K7CiMOnDVP JZ+QqkrZQsi9NnG3Mk36f7PGa2zWKi5+H2kVyt65Xp3NuAR2lBgjSVKwJzOYrErPp+mt y5HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720756301; x=1721361101; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GO3Tf5d/D2iUR2IShRIcj0G34F0OnXwQyIKn4cZF5cA=; b=H0M9U2GFqzzDN+D+xMLA5os+TEJlKpUmZXOwSzKttLkt6yKIvv+yfI3FcpYMYnDSW1 T3s6RDtyum/LKSEL8+2Q4+wiGV8QzugYsYxXbzCvzEeJlcX0F7/zVXDNYEdv2MjRIDma s8Oeon0/HMfsFhRA4XHMkm5k/CkQoBtE4+QbaJ98jf57aRQDZVlgvm+NOH19utR9AXNB R+a3PSt2Wad6uDVYZHYllzfooloUW2Ck/W4+yeVaNutdG22Q4f4KEgbDVtJoGlMlDMLI 8XVOU25rnIwuhcTCz4B1dk2wweIGpfW0k3w/dHiyMuZEUzqQaDZw9WstqhUJnGQCl6bQ SV6g== X-Forwarded-Encrypted: i=1; AJvYcCUoMxNlhPyrWxejzI/HhoDpaKlD+EBUezQtLEaGfWkoq25Eu8+2vsI9Y0n9VRNUvnFmTJorTclrN/ZDEBvE7x0z2FQ= X-Gm-Message-State: AOJu0YyYDn7EEikq3xagt0RtKPlykx4MX8HXGchB5z8oiXHeCMH4hOki JudCQxLERnh73/gNEB1nT/kRF0608IuXBwyEpkZjUSn8E5JKZL+K X-Google-Smtp-Source: AGHT+IExIfsRuIjmVCVmlBrOm5Tvms9/AW+A/1McpINa6Usy+IXI0N3dcRJKq2pF5w6hHwE7YYaqgg== X-Received: by 2002:ac2:42da:0:b0:52c:891f:d732 with SMTP id 2adb3069b0e04-52eb99d3d1amr4646680e87.56.1720756301255; Thu, 11 Jul 2024 20:51:41 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-594bda276c0sm4069558a12.79.2024.07.11.20.51.40 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Jul 2024 20:51:40 -0700 (PDT) From: Wei Yang To: rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com, will@kernel.org, broonie@kernel.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Wei Yang Subject: [PATCH 1/3] memblock tests: include memory_hotplug.h in mmzone.h as kernel dose Date: Fri, 12 Jul 2024 03:51:36 +0000 Message-Id: <20240712035138.24674-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 20731180015 X-Stat-Signature: 13fy65ccfz8bpkqbjc68nfu18t48sn1z X-HE-Tag: 1720756302-9065 X-HE-Meta: U2FsdGVkX1+er4ZEZXW51sfLw+YGY2BMiJ4XCjl0ehuXFqlnz7zxmvSm2z3gj6fLzHvKc0cE1mCuPm0VWGiipERq6eOYs7HkQBWq2Vc4UZ8nnMtH7irr5gD1e4I4U5wVCwlVS9kekOXKThUuhpRQuAkbKU5QZ0p7pf7Iy/U7c2YQ/DS2DaZV58Sd/8Sd2bXdN7zzfeRT4ltFQYZSUT93nXp3SauqrjI27sFVC7PHHzWZCcKReZqFyo08DV+WpArnLvYoFiJQ1YonWmTrZ7dZnSANOp1FPiY9/E0fsH4TyzSp7mTH+C3zp2WUSM+2WX09mgPPYJKzYVWpyRvc3jEy6FNslcFBElNkXUYhZjyC//CLZg1JDg5GD9MyOMFxI5KuU9LbE1Mrk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eefG6MWFKm0czAKyWOEchiR7I881lF4e6WtPtCu9ld0J/9L44= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000260, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: In kernel code, memory_hotplug.h is included in mmzone.h instead of in init.h. Let's sync with kernel. This is a preparation for move init.h in common include directory. Signed-off-by: Wei Yang CC: Mike Rapoport --- tools/testing/memblock/linux/init.h | 1 - tools/testing/memblock/linux/mmzone.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/memblock/linux/init.h b/tools/testing/memblock/linux/init.h index 828e0ee0bc6c..4aeddce53310 100644 --- a/tools/testing/memblock/linux/init.h +++ b/tools/testing/memblock/linux/init.h @@ -4,7 +4,6 @@ #include #include -#include #define __section(section) __attribute__((__section__(section))) diff --git a/tools/testing/memblock/linux/mmzone.h b/tools/testing/memblock/linux/mmzone.h index 71546e15bdd3..bb682659a12d 100644 --- a/tools/testing/memblock/linux/mmzone.h +++ b/tools/testing/memblock/linux/mmzone.h @@ -3,6 +3,7 @@ #define _TOOLS_MMZONE_H #include +#include struct pglist_data *first_online_pgdat(void); struct pglist_data *next_online_pgdat(struct pglist_data *pgdat);