Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp271532pxp; Wed, 16 Mar 2022 05:39:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGyz2mRgkE9j2LF1zlYQ6YjY6MV5irTkgoEY1UqOPY2afIHF/gN24pylSIh8kSAjyk/IFj X-Received: by 2002:a05:6402:278d:b0:416:4a65:c9db with SMTP id b13-20020a056402278d00b004164a65c9dbmr29758024ede.191.1647434362203; Wed, 16 Mar 2022 05:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647434362; cv=none; d=google.com; s=arc-20160816; b=lolMxeeGFOhzV1UXpl4/mT5KPq99zocHAaMUHwcts11X5iCCmF/9VwYuMfOhvD9SdS ZcSaFvXVxQIgb2Rcc0CT0XcLi15Z0hN3+1WBj610NPDBwUzrMPlFV/YXAzSeSKKC/UT2 2+3y4nqMWdsvDpdqege6UQkvkRcHsGbBEa78OTH7wfdNIHrQDKX8V0e9YTiM3fTukEZL arnK0wlxkhNj5/WMHtVLKwUheyH3WfGUmyXDBsX8WaVtl9KCa2xBm2w2H+AUw6bGolo+ QOP0k0mfcmJsbVqj6+Q5yBrbLfxy4Un2ZS7Op5XJnNS/GCqX9ZJapLbf6/9QEzvvXmns unHg== 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=P3x4tUBj4vl+coEDnwxE17M75y4eoyL8llBel8/i9YU=; b=fp0IlStNRRmg3rXQd9c90GoiTl2BwWPebJiL6tgQUu52X4BvBm5Xe9V71DijDWHYI+ xhcStcIkQNaBDwVXzHKcTNGehNtMSyRSS1RUFlJErXztXYVr6qfM6bKTSqJUm1mbQ2AL Gab6xLKzVyetJeJyaxQZ9JUwtAPDEHbNJP7pYph8Si1usiepmKppTZ5d02IoTl2GxkfG MgvFn3XDpLhzXuATgPgLQFnOPzutuy8n2lI1qHh9ogCUZK/ADWiXtlFZ3faMPEyWaYz/ dahkIzh3VBtaOaoxlR9NBl6aTkC7Zh9y8572xOt4rVXafn+nWK345F9r/uDJnbQtGeTb EOJA== 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 hh17-20020a170906a95100b006d6db02de7bsi1171435ejb.863.2022.03.16.05.38.54; Wed, 16 Mar 2022 05:39:22 -0700 (PDT) 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 S1352540AbiCPC2a (ORCPT + 99 others); Tue, 15 Mar 2022 22:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351171AbiCPC21 (ORCPT ); Tue, 15 Mar 2022 22:28:27 -0400 Received: from lgeamrelo11.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 77F7F5DA6F for ; Tue, 15 Mar 2022 19:27:10 -0700 (PDT) Received: from unknown (HELO lgemrelse7q.lge.com) (156.147.1.151) by 156.147.23.53 with ESMTP; 16 Mar 2022 11:27:09 +0900 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.151 with ESMTP; 16 Mar 2022 11:27:09 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: torvalds@linux-foundation.org Cc: damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, chris@chris-wilson.co.uk, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, bfields@fieldses.org, 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, jack@suse.com, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com Subject: [PATCH RFC v5 01/21] llist: Move llist_{head,node} definition to types.h Date: Wed, 16 Mar 2022 11:26:13 +0900 Message-Id: <1647397593-16747-2-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1647397593-16747-1-git-send-email-byungchul.park@lge.com> References: <1647397593-16747-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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 ac825ad..4662d6e 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