Message ID | 1675154394-25598-2-git-send-email-max.byungchul.park@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 46E7EC636CC for <linux-mm@archiver.kernel.org>; Tue, 31 Jan 2023 08:40:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE97C6B0074; Tue, 31 Jan 2023 03:40:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B40FB6B0075; Tue, 31 Jan 2023 03:40:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 992C26B0078; Tue, 31 Jan 2023 03:40:00 -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 84EA96B0074 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 03:40:00 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 577331C600F for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:40:00 +0000 (UTC) X-FDA: 80414446560.07.0FEFA4E Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by imf08.hostedemail.com (Postfix) with ESMTP id EDA86160007 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:39:57 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (imf08.hostedemail.com: 156.147.23.52 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675154398; 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=AOXI2niMw5pMQofmXYWujFqGse/4IkLn2XEkaU2SwvA=; b=laMTgo8KNjpyG78e7lP7l5kTUnaU9toAqEfOmSO5I4PimDp1lkYvqLhDIKeo9sELTVTbTZ YpCV7wbuRItkRZqn02x3CrRNor9D4Audjil9y8KX3Oq5RGJXvH1Zq9hM+SlNqCT5d8SMNt /CjNNHLMMgmURdKw2cMnLqz11y9NhhQ= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (imf08.hostedemail.com: 156.147.23.52 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675154398; a=rsa-sha256; cv=none; b=sv9jJemTbChq5VVjm/UKEFylh07LgAjM/pO/uq8XOBOtnx+nBAcl/6IWHgfRY4HSg3jdDJ 85WV9h5zzsNZMZ6cMvZia/b/ht9ThLEy9fyC1waM7rvV7bAaL5iMIzKw9/LBDLeklcW8nL hKM5XgY2UJ8Ci0O/3gwdecEv03Koofo= Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.52 with ESMTP; 31 Jan 2023 17:39:55 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: max.byungchul.park@gmail.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.127 with ESMTP; 31 Jan 2023 17:39:55 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: max.byungchul.park@gmail.com From: Byungchul Park <max.byungchul.park@gmail.com> To: linux-kernel@vger.kernel.org Cc: 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, paolo.valente@linaro.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 Subject: [PATCH v9 01/25] llist: Move llist_{head,node} definition to types.h Date: Tue, 31 Jan 2023 17:39:30 +0900 Message-Id: <1675154394-25598-2-git-send-email-max.byungchul.park@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> References: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: EDA86160007 X-Stat-Signature: rz16ceu4r1y166cmwo51aqos4jhukga1 X-HE-Tag: 1675154397-887408 X-HE-Meta: U2FsdGVkX1/GF2nLn9fEazu+C2MxAkEzn0+YLmN6xUBXT2bbCquOr4jimlsloQM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+rPspfzfGYmNTQi7EvRwQIWNMpu1xW127dHsEbbhZWrwBeDkOBKxCLkFe73WRzcc1tmIPJPTVxHBczJcN6vWINNxYVNAUB5It8AondIpTmv1QzDjcefMmmF7uWeop2zToky/46ZGOu8nSHc03ZcYSeayjFqPFG1F8SAzPGhLN/ilqFIl+96vLCoW2h67S/iZwZAKyt0MPajs= 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: <linux-mm.kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/include/linux/llist.h b/include/linux/llist.h index 85bda2d..99cc3c3 100644 --- a/include/linux/llist.h +++ b/include/linux/llist.h @@ -53,14 +53,6 @@ #include <linux/stddef.h> #include <linux/types.h> -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 ea8cf60a..b12a444 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -187,6 +187,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
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 <max.byungchul.park@gmail.com> --- include/linux/llist.h | 8 -------- include/linux/types.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-)