Message ID | 1673235231-30302-2-git-send-email-byungchul.park@lge.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 69ED7C54EBD for <linux-mm@archiver.kernel.org>; Mon, 9 Jan 2023 03:34:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A3812900007; Sun, 8 Jan 2023 22:34:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6FEE88E0007; Sun, 8 Jan 2023 22:34:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 15CA8900005; Sun, 8 Jan 2023 22:33:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B2553900005 for <linux-mm@kvack.org>; Sun, 8 Jan 2023 22:33:57 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id DB461A0211 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:56 +0000 (UTC) X-FDA: 80333841672.10.BF05C0B Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by imf21.hostedemail.com (Postfix) with ESMTP id 425521C0004 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:53 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf21.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.52 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673235235; 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=txND0RSWqi2Kat+KhrLtM8tEtFlkClPjxH7AVuneSJM=; b=TMiT6QRCdSuK8ZVRCggnjrKGDWJ6/Qu+2hDHfHpekusveUeIbe24yq+TMNzYvjog74oeMc 5ysOCgUz1xsmIQiBBAjmGtcr35J2eWT00ILX6qGMq+qqYAE+29MX/rvGAJajMKgTt8w82X oNWFY5BuhDK25YVjFkKud/ltiYpJT8o= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf21.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.52 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673235235; a=rsa-sha256; cv=none; b=CoQKNnl63+hXeY1K7rb63KywDTweMcsJFGtEkWqJXdhQzqcpzh9Ds40d7Odt+cJ0QKm7NH TbmIcsTE+FbcfQm0ELJjdCQjuAyTRKdKd14Hu4zQRDAzYtWLv3cw1qV8ZvAmLrMBlUgzZt G93KiwJP7Je6bHuU26fr5LAeEYNcu10= Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.52 with ESMTP; 9 Jan 2023 12:33:51 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 9 Jan 2023 12:33:51 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park <byungchul.park@lge.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 Subject: [PATCH RFC v7 01/23] llist: Move llist_{head,node} definition to types.h Date: Mon, 9 Jan 2023 12:33:29 +0900 Message-Id: <1673235231-30302-2-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> References: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 425521C0004 X-Stat-Signature: 1w34un15mf67dreep8o3746wfuem4545 X-HE-Tag: 1673235233-714284 X-HE-Meta: U2FsdGVkX1/knsAIR6tF7GKo21Bp1aJh4AShxOcUnHzhkdbVVUn7iHxS/EuUMFFc37EXeoVIFFtd9G5qpnzp4yqiAGOpBCsASgJb+4rE2+WNmwqmkuxGGuf/gygfA1q1Fy9K6/eFFga7RBPM1ADlN6rkcRwICYnhNq5Qv66f5znDk++ZrSyjpvp3Ew0oeCruuHEIOz+bN+4Mxsp1iWOAQKVVwCQVuN+1gMvyiv6zGaWDifc1yEajQMih+61rYnLZNgLme5pfC7M9atY6UvAbIpEnphXFDEmHT7HkuI14hisLkVCCKP5InaYbqcteCIXFHZ8Ancsj8TgqsGcISoSdBTFWpsBuOY4N8cmaXobOCfPJJoZt5bhDuN5tL/1508kFiFRDQ2YhO4LyO4o3NHutv3/F5349OpArSWiEmUKhzoKsuZvAgRIpRjUAHWxuVDUp6XxKPVC1bYnPI6Q7/CNy6h1gUAPy8rSLIfrCCHPGtIhBt9++ugz+AoQBO23M4mIp2/ITD6uNdkSm8NNxmWBFQyfo9UbASO7GBev4AKEY9Mpq2qhs959HKj/ayvDoEsK9cLwGWX8x76J1UNVkUBoA6dICi5BAmn1qdzUx0FR4Qiy1DkU3eoiFAv3uNRTgevqV/fIR035HbjN1J/zY5f65GYWbNBcJPXMnEbewQ0/QW4kZKLAL90cJTtgiKQ+JKZ9cpyCqrJYTwGJ4tHOmqVuNsgegDCEUkInnfnsNRYB9+HK5LeacOLAJ6D+N60+axsuOsisDveHperdDO7qjrUdJSKBmacZh41s/Qc9Nr25jM6NATRkphUq4hzThHkWJetzscFwbo4VwSBqvElK68Ip5bbFA6cc7K40lHfAb2VpEfHH5Q/QR3rZsn75iBwAj/l8P 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 <byungchul.park@lge.com> --- include/linux/llist.h | 8 -------- include/linux/types.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-)