Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5659960rwl; Sun, 8 Jan 2023 20:07:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXsDbFE1wankVG553cBCTTvN/cvZeDeq2/MxAF0ZvYIi2vQljlU6eTFHzSfIToWzJew/6CvO X-Received: by 2002:a05:6a20:d044:b0:b0:32f0:6237 with SMTP id hv4-20020a056a20d04400b000b032f06237mr77730754pzb.18.1673237221835; Sun, 08 Jan 2023 20:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673237221; cv=none; d=google.com; s=arc-20160816; b=A2lK13C+U/EZ8b21opXr9B8gKGeq3QSN4tgebVsxTFdlNRZj12MJEAd1r+/x9o67MD B3+/LhcTbcvmDYMa41xh9md9LvVTqVNwOC3x96ZcNLxreeFgXve/H7hpMGSATOlA61jA H42ClOr9VwKASHNG3fyLlqRtuT5ww8+cGld4lx5UQsDFQh6eIf8gSex6zKbdO1IGJ51z Oh5c9lJFOSFhJRPkWroNEn4pN4Mn8jhYrcyioCmnrqlW3xLRfnlTRzxcO0pxp7RfBciw DC0+qbJw3kefsw/GZO06T9s5jI44/dUUm3MkeNcucquJi/ZJabm7XW8BOmNZ6U6K8T/O nFEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=txND0RSWqi2Kat+KhrLtM8tEtFlkClPjxH7AVuneSJM=; b=yZShfas84vc3DHV2ZBXUDHa/uZYhN629lXutoL3KlETnhZEtysJnzaPJmntURydKmA fYkgxxWx2Ah+Q/FRuZSrXv+JEzr5eJjf4fjxYUfffnhUMm7I6VJmWguCHP8NE2ld3AHY Z9ynTeEHh/uopmhcNZeC2kc/X/U3+0Qh3DMTXDtbUZ2c6dNfrFPl7pDU3Vlaiy40A61D shrWoQVC/YEHKSNl2tHWnmH9LtyZVlk7SmLmwnqYmxH5bHS8zsMj/JXtlEmCmGUJ+rou 4XeSfEa3nI61pudbjaz81P+MMfjkGOic/bOw76oaWfWUucUE8iVpXgr4aOHE13Tezbvr b20w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a63e304000000b004a4dc4bcac6si9088279pgh.695.2023.01.08.20.06.48; Sun, 08 Jan 2023 20:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236624AbjAIEE0 (ORCPT + 99 others); Sun, 8 Jan 2023 23:04:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235078AbjAIED6 (ORCPT ); Sun, 8 Jan 2023 23:03:58 -0500 Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 23EE5CE38 for ; Sun, 8 Jan 2023 20:03:52 -0800 (PST) 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 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-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 85bda2d..99cc3c3 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 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 -- 1.9.1