From patchwork Wed Feb 21 09:49:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13565278 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 653EEC48BC3 for ; Wed, 21 Feb 2024 09:49:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B4D586B0075; Wed, 21 Feb 2024 04:49:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AFD926B0074; Wed, 21 Feb 2024 04:49:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 88CAA6B0080; Wed, 21 Feb 2024 04:49:51 -0500 (EST) 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 6F4E66B0074 for ; Wed, 21 Feb 2024 04:49:51 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 09B68A099F for ; Wed, 21 Feb 2024 09:49:51 +0000 (UTC) X-FDA: 81815339382.17.0E5F467 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf27.hostedemail.com (Postfix) with ESMTP id ED0B24000A for ; Wed, 21 Feb 2024 09:49:46 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf27.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708508989; 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; bh=116HBDWeX/cp5l4La0Bm3xTvIC4bdvi7mdw9bc3rgno=; b=KHm+9pt+zZzSzjknufd9nuJjmmIEF6MLcpCfGgFVr4aEWkIklx/cfEY7SFMGogCh75uhfN b0Ri+Poh0EXRbAdXJ89lV0b+e1CMfaqo0AoBWwL+6IDiKzIXRPtvZF/MxabngvhWCdd7TZ ZdusK6PW31qX2IxBVU5SKjKzm9hF6Ng= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf27.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708508989; a=rsa-sha256; cv=none; b=u4BscDEa93KEfxCBMY05RSWIDo5PmFCwMQNXaOQ1MOmFMwndRJzvNCdA2zsLiivqjaf3gZ i9kmG8VJje37ggvPTxG0BwkJEyNNC4Oo+xepLmtbczFaOyhVPCsnZV/BtVdqr5hF3QECFJ lq5TCwU4Qo0kwp2oR4gw+YvK+Evxuf0= X-AuditID: a67dfc5b-d85ff70000001748-96-65d5c7387f8b From: Byungchul Park To: linux-kernel@vger.kernel.org Cc: kernel_team@skhynix.com, torvalds@linux-foundation.org, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com, chris.p.wilson@intel.com, gwan-gyeong.mun@intel.com, max.byungchul.park@gmail.com, boqun.feng@gmail.com, longman@redhat.com, hdanton@sina.com, her0gyugyu@gmail.com Subject: [PATCH v12 01/27] llist: Move llist_{head,node} definition to types.h Date: Wed, 21 Feb 2024 18:49:07 +0900 Message-Id: <20240221094933.36348-2-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240221094933.36348-1-byungchul@sk.com> References: <20240221094933.36348-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzXSa0xTZxgHcN5zec+h0nlSyXbELC4Vxft0inuye1zC3kUlZi7RoMZ1cmKr BbVFkCUuRbm4So24ABPQFHC1g6JyKtFN23QwqUjECtUxghWIUZAik63NKkxtNX558stz+X96 eFp1mU3iddk5kiFbo1djBaMYS6hdAt7b0rLOoiQoK10GoX8PM1BzzoHBd7YRgeNCAQUjV7+A P8NBBJM3btJQWe5DUDt4l4YL7QEELvtBDD333wB/aBxDR/kRDIfqz2G4NTpFQX/FcQoa5XXQ eayOAk/kIQOVIxiqKw9R0TJMQcTWwIHNNBeG7FUcTA0uh47AHRZcfYvgxKl+DFdcHQy0Xxqi oOe3GgwBx3MWOtuvMeArs7DQ9LgOw2jYRoMtNM5Bt8dKwfnCaFDxP89Y8Fo8FBSfbqbA/9dl BO7DAxTIjjsY2kJBCpxyOQ1Pz1xFMHR0jIOi0ggH1QVHERwpqmDg5v9eFgr7U2Hyvxr82Qek LThOk0JnHnGF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043BJudSMHD5HoLOrC8sHM3wspCfnIXgxNEzNLT8amQgpT0cBn8WkCURor27hxJT bPvF2n4zLT4oFsTb51+xYkrdS1Y0y/tEW+lM8eKdLiwW9XkYUS47TkS5L4cV07+4sfi1uZkV 758dpMV37jy8duJmxcIoKUabIOnnLIpUaFKbL7BxhYoD5ktVJAnVcekogBP4eYL8rYH1m/DT hLY2L+V3ED9FsGV+YNKRgqP4tJFCae8j4g/G8GsE+zcH8pvmg4UntgHabyUfLtyQX1P/SicL 5RX1fx3Azxeu5Hczfgf6bp4+rqJOIYUZjShDQdrYBJ1aGxMeYojWJMZqD4Ts3KOTke9pLMah 7FvoR+vyBsRzSDVKqbnplgIZdYIhUdeABI5SBSnp/b6VMkqdeFDS79mh3xcjGRrQBI5WjVWu 3ChFBvK71fFStCTFSfr/KeYCxiehu8kObfyy6etqhpWjjORwm77lnHPRgqIJe9dHbtpspgYq pvZmZ6SVlMct3pH50bLJEjLJrK8arMia8XpdY5P1Yc5coZ8aGxzw/sHzjfZVp71jjLs0C8eN q+x1VW+4dNx0syPthVHdpzN1bivZoltx0HgolHxwbd86HBmxZenJGaqouyraoFGHzaT0BvUf NFPz6TADAAA= X-CFilter-Loop: Reflected X-Rspam-User: X-Stat-Signature: 5i5y8rzf3riopn3mcmoprej9ibhwhrf4 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: ED0B24000A X-HE-Tag: 1708508986-618746 X-HE-Meta: U2FsdGVkX1/BOkbZldEAXHWKQIdT2FM65qwaX5gKhoCVStpQ1OiQG4D/91+YZBiZ83tRh9Xt1/8K0m9yEyMTxlBNJl1/V1U/BAfJFdKpg+qjtOE7N982OoE4lhI2uCymgp/ahpVOeD7r6IgznqTABHHra5aKY0y/zGEIhHerHhcNjnYU6Kp//eErpefwm0WK3phe49nr6zmAK5QQfOu2LgC6vPf6hXrpaRgSIf9SjkilHmx4iAC5EuHwKHcLcMjrV6kV+FXo6RgQfU8FJGx5DjVEvjq4q0X/ENJlQmsJIqNy0kzRvcRR9azjwsa/s7/KKcrRVuvJ+3HXxzmL5V1EYAmvlvUVdkoeNtirSulCaepvJ/lQBsrVmi4BzyCwHACVCruzKVLcK9+EJcf084SyTkdYE4TKGvaiRkg4PlxyemkbXYjqUXV5+kF6MmD+fYfZt/IW3kmDj23XSiihHJ8AYCw3EnY6BauLGZhU3CfN0yX1mFugaTsOUpSuX4EnYAcuy/Oq0WZANQsZZ4+q4I/AFAV2EN6xFBMV0AJGkMbA4absDXH+l/P6R+VW5QWRygD5FL2X63Lrhi7Z1DjDcbMkE1OSzlYNRkFduSnNbs9+pkuPurxVb/tzyj1rg//feR8hGxA2+Yl08VsC5eVmAKcp4lXne0RYVy9AkNGlB3d+O3+RuzCCZtb1tI/u6QB92wfejBNDObkU6bZaxq//mDiQGD6KY4KZciKN4i0ZVJYb3prllm+57wzuyIAh5iroKZmyfLNswicdUWqdvEL4DfqbSBQeVgK0bQ6wHg2yeHiRk0JsQixwLgFZP/di2RsXlbRzs+BUqTKdKSpGrQm9aSs6+phONcaNC0ZQgcH6icwMFP//rxqP0DZptWj9xWNvB1EKZh9mT4xlxBz2QtdNxjhW9FNzw4qzd/MD9+wZxQhLIUDpt3Xw/KkY/BlLIhDwibiJJJkJ4GYIPbA0RbsxGpT uM+HR6k9 0CWU4zSoXS/MyId4jd7/AQxzdc5Xftgaunwh/0cKbAcEg+X+sZwODiJKERFNKnIyZ4yZBQ01Hhzy1Y5ZBb2vKSiR9aDRJRPdHji8egQzHQTift44= 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: llist_head and llist_node can be used by very primitives. For example, Dept for tracking dependency uses llist things in its header. To avoid header dependency, move those to types.h. Signed-off-by: Byungchul Park --- include/linux/llist.h | 8 -------- include/linux/types.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/linux/llist.h b/include/linux/llist.h index 2c982ff7475a..3ac071857612 100644 --- a/include/linux/llist.h +++ b/include/linux/llist.h @@ -53,14 +53,6 @@ #include #include -struct llist_head { - struct llist_node *first; -}; - -struct llist_node { - struct llist_node *next; -}; - #define LLIST_HEAD_INIT(name) { NULL } #define LLIST_HEAD(name) struct llist_head name = LLIST_HEAD_INIT(name) diff --git a/include/linux/types.h b/include/linux/types.h index 253168bb3fe1..10d94b7f9e5d 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -199,6 +199,14 @@ struct hlist_node { struct hlist_node *next, **pprev; }; +struct llist_head { + struct llist_node *first; +}; + +struct llist_node { + struct llist_node *next; +}; + struct ustat { __kernel_daddr_t f_tfree; #ifdef CONFIG_ARCH_32BIT_USTAT_F_TINODE