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); From patchwork Fri Jul 12 03:51:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13731266 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 D2A81C2BD09 for ; Fri, 12 Jul 2024 03:51:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C8CA36B00A0; Thu, 11 Jul 2024 23:51:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C3BD16B00A1; 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 B04946B00A2; Thu, 11 Jul 2024 23:51:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 964256B00A0 for ; Thu, 11 Jul 2024 23:51:46 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 49EAF408F0 for ; Fri, 12 Jul 2024 03:51:46 +0000 (UTC) X-FDA: 82329726612.12.D8AC6C1 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by imf02.hostedemail.com (Postfix) with ESMTP id 84AA980003 for ; Fri, 12 Jul 2024 03:51:44 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=U+5eEUbr; spf=pass (imf02.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.52 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=1720756278; 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:in-reply-to: references:references:dkim-signature; bh=YCFj880VNkxO0HYZD+OwyJox07xhsd/AqJTyvBPQ71U=; b=tej1nKogSFHHdtGm51tb/cjbDj3JMbHoylQ7Wq4NtedfHgaDJfcsSW95bzR3iFuZCFb0O6 45OeuAii7he8ufl1vRgLNQ0ar33J33nxr+xFiRQZCm8yncHHwEcVxwVi3K+RIkuNo0/wfu Ee4mJ0eMhXR2ShroQLu/SsudM+hVWzA= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=U+5eEUbr; spf=pass (imf02.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.52 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=1720756278; a=rsa-sha256; cv=none; b=MSbles43nKm6fAltIpRLi3oaMyZDCPZXc1Kwebu/cIvWRI7RMUuAL46LlAUdkcowvficxn 4oLKyom+63A/po4mC+2/tQmcDsSFe1JMsXH8Nor6gO3ZQq6CVL1NWhOvmUcoKr5ooacYKR /uR5aivpdmt00efgf3RhobJOHJJrPbU= Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a77c4309fc8so234723766b.3 for ; Thu, 11 Jul 2024 20:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720756303; x=1721361103; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=YCFj880VNkxO0HYZD+OwyJox07xhsd/AqJTyvBPQ71U=; b=U+5eEUbrVAs7EdmPOq4fKGNqDay9NvbnAdJSHAAgDuxw5Q3oQruPflNh+lmy7kakdp H9PQdWCyYNBy6d8to5YIfW97qoNqaQXANcNMO9Jq5h52Bp7GY0xZbst6U/W9JObwSqY+ sgxge2iYZIkE6fRDSFuwdwxIEK/ZJz+x0AOzijm6sxn64Z/x6d8AWSONNWnbaaULsiEI QHfxhepH+o5QHOjpJhgvHTrQqDC0kmUFWEAoxy9Jlf25tuiLR0Dx+LrBOTJ5eP2M65fK 5cj4kQNLi77we8R+uxAv56w6wU2GXbeTaiTic+j8hQ5Rd1Pj05J6IGhkgaGQ4BRsFbLV n0eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720756303; x=1721361103; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YCFj880VNkxO0HYZD+OwyJox07xhsd/AqJTyvBPQ71U=; b=qK9Uw0vWBt1K/rpfixiybAI0EcRExhupNgJhKLToWBV6zxRV7ZIoXTHpDIgUiavVsd T8yS3/wSxWrgfMbhYHG+e3ttHVqOHaqb+xFDE9D/4gSc7jWqEIetJCUcOK1bFhczBjwy bArLvI5KA9Z7HMGWZTb55YdPFg0hgApo0TAIYTO00PjdnljiMQ6dy1nMA1rfuSbhb0ZE swCV2XOt2gfbGRJMMy5eKix6aEK5XFkvMMsrgmeD+S5Nmku9p9FMvnz1JHZm2j546k4C 6v6e+wbCIlriDHp+YkK+UzegYx9d4EyboNsn9mus875SlVOc5A4hAhg09bVmic4lNL/0 nvRQ== X-Forwarded-Encrypted: i=1; AJvYcCXx4Zf5jkwWS/gmlwqKwexXzgsULsuZKv5+RaHnV/P+6RPHv1oeWBCvvc2TU/wdkE4iA1q5BzvI3swZdSiau+t654U= X-Gm-Message-State: AOJu0YycRADCRP8U09FcLvhz4ncnj0bhGH8/Oa6FJrBwd/hX/i6FJzhD uqo+eeuL0i/pClo8f/gSDk+9KYmnbc9OEIP0E7egYCvTyGBU5G4z X-Google-Smtp-Source: AGHT+IGU42SFOUlzrj7kRRzHWCymLPr+3FJfHb34KI045J585sywpXTtKt3Z7zk2SYVEJATzJEXU4Q== X-Received: by 2002:a17:906:260f:b0:a77:c364:c4e9 with SMTP id a640c23a62f3a-a780b705312mr604819766b.45.1720756302841; Thu, 11 Jul 2024 20:51:42 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a7ff0bbsm303491266b.119.2024.07.11.20.51.41 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Jul 2024 20:51:41 -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 2/3] memblock tests: include export.h in linkage.h as kernel dose Date: Fri, 12 Jul 2024 03:51:37 +0000 Message-Id: <20240712035138.24674-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240712035138.24674-1-richard.weiyang@gmail.com> References: <20240712035138.24674-1-richard.weiyang@gmail.com> X-Stat-Signature: cw9aqgpgwno6yg9ewjftifazi3a98t9h X-Rspam-User: X-Rspamd-Queue-Id: 84AA980003 X-Rspamd-Server: rspam02 X-HE-Tag: 1720756304-77242 X-HE-Meta: U2FsdGVkX19z8NKF7neOB0cskBziLpulMMG9GYi2UAbPA6m9Y7KJElacTIuTCLiJgWXNHWxGx/0GcGgUewqLoi1Epqb/cJIvYQQM1E2UCKtj3lOogNtJPtCZgYd+qEkEDp+wghZBz6ew2Vf6qguxyf2cvMyk6FiCrzIioByNHpL03ZQbGmKhgKqI8dKLzl1kWkFoXNoDvlEwKvSjqPSVf64j7laO5MB9iLjuTpcBhzg38HEIrdPwT01Ga7hekNHi8MPynxmJv0FUlqDPCGKt9LuR/kisw+19tHsdF6epVPIpzngdp3vKFoEB2/b6f2HIEt2FqSJipGpu9wNCKBYT9852EoM6kFD66smE61QZ4pwkEejmmudAyytTo6UcdIOG97taTchOkPCazALRsh+nkTf2ckGBvE7Iyi1sI3HXagdPkrCaD9Z5hYO8sEFGPT/qeTHSvK+Qj45C9kVb/ClMrv7xXuafVuaA02p9jqkd2j1GV1ZlDwWo7rZ1rG7AK6qx6Hfhd/icresvInW2QWzFsYGXpx1j+tP8I+O690DlNz2XSTYevACgob4l5vFq0HkLLLEJwIdHNBRSHXNj78CYt/JurOwsAIye1IMPo7a9A18gGoQeOSzoGlHSaYbMWyb+FDW0UkJtHXzIGURN8Z9isujrNX1ZSeK7+pheumRcPijp8uT0Uz1uFvUhGV4J/XeX9Dp/I87i9LEpgc8rrzZY3Bena0WcgeOainxJaRFN7/0o4a7zWHS1S2xXhbLKYuIAiAJKcImZW0tYfCm4j9URTKOnf4Uq6l2hXN6+nRqq6Ey0i1NwqH7Hojyl5YX4BVhXiBsf+3xReg2ofafX65oFhFfi+LzmpzRXD8LOqCPEJU0HzKNp3nF7Xe0Zn56OyoD+z8wg1BtW6YKOpaAL8S+U0FuBWeaIwLM4Rzswv8j2UE/5qr7DHPRHVjERT9AlRaaT2awnZDjgBU4qQlCdzIi +A29SDAr iT1GDIwQKnArz3XPbS/CkLrQHP1TGvA8Hnbesa7SBqzNThGKdd+Pge19Md6UsPMXMm4S1/c+B7fnBUJ7wsNHu8Tkb81fUTFSLE39GTtWeBi/IZLgBVXUpffoBYH2cbHrd+s57E6EKgyodfjsl8hxsmygYQgd7bxfA5aY1p+77+YdywyeikFPfq+GFvc1Wlm+Bl1h+eg1mbwL4azlSzax60ehUmZF+vZg3LTeA2VuLLUxzv2EKcrXUW8vWw1nulEKpO4x3SbtvB/G/PFbRqZT2eKQMJhJMI+HLK2xnuM9PdK9DrFl1FQ1o/3Knx6WSBnlvmCmfV2hI6Qltj8O+0dK/vF9+HJWznWO0Wppa/w6T7PY2FzvVMyt02OFZ8BI+/Ii1KiJ699vPPoAM49UHzvy74WWimtnk2J11FEmd6MXda+hH+PpvIf8/QKNjOC03Du2wdbUyho050ytvqvJseYgG+K0qDDdDw0k5F/N6 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, 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, linkage.h includes export.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/include/linux/linkage.h | 2 ++ tools/testing/memblock/linux/init.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/include/linux/linkage.h b/tools/include/linux/linkage.h index bc763d500262..20dee24d7e1b 100644 --- a/tools/include/linux/linkage.h +++ b/tools/include/linux/linkage.h @@ -1,4 +1,6 @@ #ifndef _TOOLS_INCLUDE_LINUX_LINKAGE_H #define _TOOLS_INCLUDE_LINUX_LINKAGE_H +#include + #endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */ diff --git a/tools/testing/memblock/linux/init.h b/tools/testing/memblock/linux/init.h index 4aeddce53310..bd74abc5cba6 100644 --- a/tools/testing/memblock/linux/init.h +++ b/tools/testing/memblock/linux/init.h @@ -3,7 +3,6 @@ #define _LINUX_INIT_H #include -#include #define __section(section) __attribute__((__section__(section))) From patchwork Fri Jul 12 03:51:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13731267 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 15B50C3DA45 for ; Fri, 12 Jul 2024 03:51:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 64B506B00A1; Thu, 11 Jul 2024 23:51:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5FC3C6B00A3; Thu, 11 Jul 2024 23:51:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 316316B00A4; Thu, 11 Jul 2024 23:51:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id EDCB46B00A1 for ; Thu, 11 Jul 2024 23:51:47 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id B313F120609 for ; Fri, 12 Jul 2024 03:51:47 +0000 (UTC) X-FDA: 82329726654.18.63D7DA4 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by imf27.hostedemail.com (Postfix) with ESMTP id E548240015 for ; Fri, 12 Jul 2024 03:51:45 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cHfP+ZDN; spf=pass (imf27.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.179 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=1720756290; 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:in-reply-to: references:references:dkim-signature; bh=TyQlU6I/jiYkGlfq1197jGcyZ0KF+HN5OropbzcVk08=; b=hRFkGd7kti0CgTu5KC8Xq0f06e/QiMv/q3fIUgn1POahSkdTkXoD16AhgkQ6fM4MqOOEvZ Inpp7RPIjZDM3AnQE3xyYW5+0gIzU3XGxP+S0uLDEnen78Jak2y/6FU2ilv+G8R2tjS+41 W2BDl2mOQB573JeHBeIZ4ruRE4BbtWY= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cHfP+ZDN; spf=pass (imf27.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.179 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=1720756290; a=rsa-sha256; cv=none; b=kWZpVOV/XzsH9zuRrGnXrD6q1fcdeLiY4nYZQ6TrDbbC4rtDdj99Xb/w799shi6cKL+Ytj IpSlKgtDFudRhJ3+kXIkcg66MHhgaalmDPiINGDNzhp2OsUPd9dINMix45v+1EFrVntgNk v2Wc5XnO+LQaaqD2Otu/YrzT2lt4RB4= Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2ee90f56e02so16781051fa.2 for ; Thu, 11 Jul 2024 20:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720756304; x=1721361104; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=TyQlU6I/jiYkGlfq1197jGcyZ0KF+HN5OropbzcVk08=; b=cHfP+ZDNkc/KoJfNOukSpS73yF6/sDvHVL16YTnNxXH/dVTTNVR6M/GYW2xz6dHRno QlVECI5GQBJVY8eG7sX1xNGpC2KzQeDTu0oMn827qv3N4OvnvTSFVXvzOH82/15SlJra doOB4c7AyPmlFlZPrCH/0sv+A+iDPb0CuSjR6EMtvv2qUAVD/qwVmAuxR2EK3R/YIebS /1+In/EygM7e+JHmmcA12UBky0G4ZpIyjUZ5jpLdnjPTBF3WXf6KOwXp5FNAal2S+75t xyjv8xLdFQbANFdcYOgbqhqTneGJdL7anuxWMrUnFPRkdbh1WXEud0AVmJisUwTOtNzl qgbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720756304; x=1721361104; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TyQlU6I/jiYkGlfq1197jGcyZ0KF+HN5OropbzcVk08=; b=paxuZouOPx3g/mJrrXRKfosh+CZpY9lC8W7kzqD5mxLyAJH5r1pPqjT6DM6sZuqPRu m7BMVmVqSwhLUWRyPIsCMDX7GBPSTWTBfadeydC4xHjFc6jb9pA1/huf3pgD118ficTU puLEGpC5LR5hD8qOZoceOldLRgXoH7LvcWFaWyoHVCCca2u7Ey707sRq9L3Wja6WWnhH BYErBjPMTtviALJePN3wG0gI1UdbQqhSEQVC7dcGzT8wKKlQbj92J1ykGC7XPG3s92fS ejsW5UM+K/viT3veOU/exYTDkWKXYO7HZfrz0fkRNsx5mSsaRzWu9wyiN60O6CFF01EX kg7A== X-Forwarded-Encrypted: i=1; AJvYcCXb+sHg66U7C7SYBP3GXzb+YRRGcQxT18DBbkxChT+vvCLS8c5BC7biwguodu8iPlITGcpGPKBOK9r3fgBB3llSxdQ= X-Gm-Message-State: AOJu0YySHRbB3yhzcMJf+q95WVaoY7ALpO4VbA1ISIbMXAGZr9nt5DEZ Qyb1yVLu3iNysHn2HKLP2rkohRTuYcd1N2V7LnH8SjJIDLHZULp0mLei3dSP X-Google-Smtp-Source: AGHT+IEK9t2pOh9KJ0YSVooVs/Js8zZyCAua2NoCqtsWQcOWOWHE6kuCTkxYpkqw/hXZwXoTIs1YyA== X-Received: by 2002:a2e:a401:0:b0:2ea:7d8f:8d12 with SMTP id 38308e7fff4ca-2eeb31979bdmr63277511fa.48.1720756303816; Thu, 11 Jul 2024 20:51:43 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-595b1c0c869sm3285535a12.30.2024.07.11.20.51.43 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Jul 2024 20:51:43 -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 3/3] tools/testing: abstract two init.h into common include directory Date: Fri, 12 Jul 2024 03:51:38 +0000 Message-Id: <20240712035138.24674-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240712035138.24674-1-richard.weiyang@gmail.com> References: <20240712035138.24674-1-richard.weiyang@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: E548240015 X-Stat-Signature: xskbu65dythhiu7m9r53mkpyi15x7ihw X-HE-Tag: 1720756305-172149 X-HE-Meta: U2FsdGVkX183RtEENMfQNJd+CGMdVWdhbOvCJX5fkC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9U3fvYlrmy4rgf+jgVPgBuVzxa0tcW64gAqK8qONcvYCGvDsDHG5kcvHtvA/9sQiq20D3HRi740qXgmFa2SUYmPqpfSIMV44q2tlodMmJqiKSdg6YPCiDXySZQ3PyYDBjONb0ZUlO8xsRwt8FLlxUt2hpTEpERVsKYrCzUgWYNPeelQq7tpcKW/GWMqFfurBv3FtI7lE+gTNYw8C0I1MTbtoxFIgg/D2t6nz8BSKx6cV9Cp1Wff2I7O/9Qva3i4LjSoVhwi0PzcaL5IRgiZEvgiOoeYurRmddVSjFLH2rKYcBna+Y9MI7t2tCYFPYDHz3JpVaWGWlvQDEuhcvLLvSukwmzfPPzud8iIcVTkATmeGUpgMJHyrA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Currently we have two test suits define its own init.h. This is a little redundant. Let's create a init.h in common include directory and merge these two into it. Signed-off-by: Wei Yang CC: Mike Rapoport CC: "Liam R. Howlett" --- tools/include/linux/compiler.h | 4 ---- tools/{testing/memblock => include}/linux/init.h | 14 +++++++++++--- tools/testing/radix-tree/linux/init.h | 2 -- tools/testing/radix-tree/maple.c | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) rename tools/{testing/memblock => include}/linux/init.h (81%) delete mode 100644 tools/testing/radix-tree/linux/init.h diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 8a63a9913495..e0aaabd18a99 100644 --- a/tools/include/linux/compiler.h +++ b/tools/include/linux/compiler.h @@ -122,10 +122,6 @@ # define unlikely(x) __builtin_expect(!!(x), 0) #endif -#ifndef __init -# define __init -#endif - #include /* diff --git a/tools/testing/memblock/linux/init.h b/tools/include/linux/init.h similarity index 81% rename from tools/testing/memblock/linux/init.h rename to tools/include/linux/init.h index bd74abc5cba6..7ed407976dda 100644 --- a/tools/testing/memblock/linux/init.h +++ b/tools/include/linux/init.h @@ -1,9 +1,17 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _LINUX_INIT_H -#define _LINUX_INIT_H +#ifndef _TOOLS_LINUX_INIT_H_ +#define _TOOLS_LINUX_INIT_H_ #include +#ifndef __init +# define __init +#endif + +#ifndef __exit +# define __exit +#endif + #define __section(section) __attribute__((__section__(section))) #define __initconst @@ -29,4 +37,4 @@ struct obs_kernel_param { #define early_param(str, fn) \ __setup_param(str, fn, fn, 1) -#endif +#endif /* _TOOLS_LINUX_INIT_H_ */ diff --git a/tools/testing/radix-tree/linux/init.h b/tools/testing/radix-tree/linux/init.h deleted file mode 100644 index 81563c3dfce7..000000000000 --- a/tools/testing/radix-tree/linux/init.h +++ /dev/null @@ -1,2 +0,0 @@ -#define __init -#define __exit diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index f1caf4bcf937..d6c72838652c 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -14,7 +14,7 @@ #include "test.h" #include #include -#include "linux/init.h" +#include #define module_init(x) #define module_exit(x)