Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp391246lqo; Wed, 8 May 2024 03:03:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI1JC5GadRKgIIoNaRDI0whn3jTlnE8UPl2PwYGYr58ATHGSNDNLkcY4Jr3NaonNp8ornsYHNiANuD+bFWot+9V9toA2ohE7EY3b0fvg== X-Google-Smtp-Source: AGHT+IEmQ1eCR4goeGyUJWhZz5Up26OHclzKHccNzBzsI6q/ndjfkY1H9UNYSgn/awfZxhqWw6dh X-Received: by 2002:a05:6214:2484:b0:6a0:a7a9:4988 with SMTP id 6a1803df08f44-6a1514bc55bmr25812836d6.13.1715162628783; Wed, 08 May 2024 03:03:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715162628; cv=pass; d=google.com; s=arc-20160816; b=e45QaOgd/hykSxzxjInqSuTssmeu7OsEUIeg1a7vFcSfJZFrMb9sI+MOCS+VeC9xb1 m+/SWtt3cRk31qmU3o8Pvesrc+QHhNNofRbjmFUcGoHIqynkkxuyx3Zdjzn7x/V4z4ap Jc+aYCQ5DgTVtsncgZxsr1x4nz204sEpcTIywBBDAX0SY7lcRwHvodFC0z5NCarJwvOO xFbbASLN29m8pgBxQvADXdkEeIuE/MeTDJPUssNowGCgZHvjNa4k4pCuv/XbK251TZeE UK2CGG2OyhOFKeAWrVLrQN7ZiQars0XsX/q5btAAEMjHerPIEO1hmAfut/n5kgbJqQB8 kN3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=gMJ0dfCSr8RsB3b53bmBV5kE/hdRfsNSKJUTZMR3xCU=; fh=H2KRUF8uSM4+6+w6W9vKW2QB11XTfop4gd9hLuyjokE=; b=uH49cJODMqdgibkQ0JrXi9uVPJRx8kkKskB2edaiOhspijU9YyOcBZ8llLx6EiDMOW bNyUG3WJpgNVHflDzxR54vVP05eVhQnL9zC2EGJnVlfslD7fWsg/tJiYO8CcJQ0MKS6g lGauPLWc0S1ONOwX9WU+ElCxjrAy9GwhCFVvLF/ODn9L/kOi0KHLctacPJ/cqdSTO4ST /zqcRIPb/3h2gvQM1SJ9seE9cH9uXTFkU35lQGTqM+2I5s3r7ME8+fUncbmj4P7cNGOI fYyfCtbJ/47BCF8kaBOGu0W6IWrlDWyOB6uXbeOGTCBpuOOCRuS2q1gn8ZI2pOWN7Vk2 nuDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-2368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2368-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jq13-20020ad45fcd000000b006a0cd6a7111si13709554qvb.84.2024.05.08.03.03.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 03:03:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-2368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2368-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7BBB51C2151E for ; Wed, 8 May 2024 10:03:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D6E87F7C5; Wed, 8 May 2024 10:03:03 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F1EF7E0F6; Wed, 8 May 2024 10:02:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715162582; cv=none; b=Qj+pTILydwKp/Gl16jrnvJTMRTL3om5jW+kXrEEC6Krxs48Y9wb0682ogAi9lhbSJ5/SLWpMhSwTDKOQK2CRKIUgZeGFYXoERGeUEoVlFGI9L6+cHwO40X8VnXXJac/RgEOEQ+2391wzhBAHIgQkB9MO8cI5TGcUx1Bpj5mPw8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715162582; c=relaxed/simple; bh=aEiCt6+kTRnmniXgTYSuIBxuz0W3grKxPwQ3JxQgYb8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Wl0JEslWFUUyHlf/uvkjU3hrZukgihCyzWV7wQkAWlksw3laBnB7IppOSzyNlRcUYy+gOO19SKah49ZsXArHJXsHBfIdAFN182SEyiXR5jzkuYpvprF70A/uIomWGaSTE3yVkW2m9wdgFLT8BJIW70hAacX6cPGAX/ZV3KvIk+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d85ff70000001748-25-663b4a38f818 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, 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 v14 01/28] llist: Move llist_{head,node} definition to types.h Date: Wed, 8 May 2024 18:46:58 +0900 Message-Id: <20240508094726.35754-2-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240508094726.35754-1-byungchul@sk.com> References: <20240508094726.35754-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzXSaUxTaRQGYL/v3t57qZZc68IVjUsTRyNRUUGPa/ilXzQak8lMJmPMTMde pJFWLLIZjSgVFQEFZat1wmI6FapoazKCQAqm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ohm W2VeQsOpeQmbskxX1iaSprY0zWmZ5loXlku7mLQmlJPW7OKKvrz8eJ6H36eXwSVFZCAjT0kT FCmyJCklIkQx4eq1EB0eH5JzfxEU5IaAeyKLgPJ6AwX9t+oQGBoyMRjrjIIXk04E3idPcSjW 9iO4NvwGh4auIQStNWcpGHzvD1b3OAUWbQ4F6qp6CgY+T2FgL7qMQZ1xB/Tm6zAwe0YJKB6j oKxYjU2fTxh49LU06FXLYKSmlIap4VCwDNlI6KiwkND6ejVcuWqnoKXVQkDX3REMBpvLKRgy /Caht6ubgP6CPBJuunQUfJ7U46B3j9PwzFyJwW3NtO38t18kPMozY3C++g4G1lf3ELRlvcXA aLBR0OF2YmAyanH4cb0TwcilLzScy/XQUJZ5CUHOuSICNPYw8H4vpyI38h3OcZzXmE7wrZOV BN+j4/im0jc0r2l7TfOVxuO8qWYVX9UyhvHXvrpJ3lh7keKNXy/TfPYXK8a7+vpovrvES/Dv rcVY7IL9oogjQpI8XVAEbzooSnhW8xhPrRCdtLmaKRVqY7KRH8Ox67jCEi/uY4pdzr186fnL AewSzpT3kfQxzjpFXHXfVh/PZWO4ppZ3KBsxDMEu4z7Uz/HFYjaMc2js9D/lYq7utvmvxo9d z70adSEfS6Y399SldD4SVaIZtShAnpKeLJMnhQUpExMyUuQngw4fSzai6W/Rn54quIsmBqPa Ecsg6SxxPxUeLyFl6cqM5HbEMbg0QNx5YUO8RHxElnFKUByLUxxPEpTtaAFDSOeJo/cIByXs UVmakCgIqYLif4sxfoEq5PhocXitZueNi/sYQ2aIbehHWuMDrWvziUJ6VtSZiJXzB5/bujXb Fg5En5WOrg6e6rZtz18T0afbGxl6SL0rsCk6TChDYlNu5MasM0F7vMOzK942bvGfmXq0RStt XhHXOxGy0+GV/HYY9u2OTfMUjh/Q9TxU2Zf+VLVFPG/ojJ8tJZQJstBVuEIp+wPFHbV0KQMA AA== X-CFilter-Loop: Reflected Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.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 2bc8766ba20c..a1e4e046cfa5 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -202,6 +202,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 -- 2.17.1