Message ID | 20231216032651.3553101-7-kent.overstreet@linux.dev (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 1E955C4332F for <linux-mm@archiver.kernel.org>; Sat, 16 Dec 2023 03:27:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD8356B0503; Fri, 15 Dec 2023 22:27:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C87D16B0506; Fri, 15 Dec 2023 22:27:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8C396B0508; Fri, 15 Dec 2023 22:27:16 -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 8CA1D6B0503 for <linux-mm@kvack.org>; Fri, 15 Dec 2023 22:27:16 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 6545EC05C7 for <linux-mm@kvack.org>; Sat, 16 Dec 2023 03:27:16 +0000 (UTC) X-FDA: 81571245672.18.FF268CA Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) by imf08.hostedemail.com (Postfix) with ESMTP id ABE08160013 for <linux-mm@kvack.org>; Sat, 16 Dec 2023 03:27:14 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=j6ZPXCGP; spf=pass (imf08.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.170 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702697234; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=bVQvq92zNWowFmQB2GI0mP9AbBZYVi5uCFShyHJBgic=; b=db32S/qBtJa33sfk4MKj5KHH4hxFbQ/rsi7JW90NiNcogJlx5JUoOZJl8dqLukGyHx6oQV jJYwWaIDVwJ6pnIb1ldETKFGGQzrvXnAlpN/bJzaN9C2zE5b7dH63heildORvIZLqiHrID mxuXPOUA+hdYfqJOCqzMpu3YwF/43eA= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=j6ZPXCGP; spf=pass (imf08.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.170 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702697234; a=rsa-sha256; cv=none; b=ihRfYwlxdVhovoJAZCiDKDq/fhSOFTDvrvEyvI0GEMJRdCBtik5NxWbQ1St6xjTmE3Cr8B RTgt+dhR+g2PZDSdaD1zumdyApddzm2s7/SYnXCDF+G1gPGpF5kUGuPW8cx2upgiLvEJvx Zabd5fG71ABDdhPYGNO08e/doYUEOOo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702697233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bVQvq92zNWowFmQB2GI0mP9AbBZYVi5uCFShyHJBgic=; b=j6ZPXCGPupzUUJnhIsAwv8oHEvVc0w9O/utpKK+o4imk+jWaN9F7GYOuw7A+c6hdx8YpfO ybPZO30FOXihZJAgJBazpezKLNlpNFEY/AQPKJoKuAZQqhJlLB5adz6B/XlpDGSd/OBPOF bxtKvHGv6L54wlPtCN/TCdYe9/ZAJNE= From: Kent Overstreet <kent.overstreet@linux.dev> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet <kent.overstreet@linux.dev>, tglx@linutronix.de, x86@kernel.org, tj@kernel.org, peterz@infradead.org, mathieu.desnoyers@efficios.com, paulmck@kernel.org, keescook@chromium.org, dave.hansen@linux.intel.com, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, brauner@kernel.org Subject: [PATCH 17/50] ktime.h: move ktime_t to types.h Date: Fri, 15 Dec 2023 22:26:16 -0500 Message-ID: <20231216032651.3553101-7-kent.overstreet@linux.dev> In-Reply-To: <20231216032651.3553101-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216032651.3553101-1-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: ABE08160013 X-Rspam-User: X-Stat-Signature: zkbskp1abwnsah8w1qhgwcdazh395fp8 X-Rspamd-Server: rspam01 X-HE-Tag: 1702697234-119156 X-HE-Meta: U2FsdGVkX1/7EjTpqYdAar2FDYELp+vmQzrj0EBZftLPIi4NnQWTqrkJprhTDvg/epucGQCRIqTL5BNVDQ/r/j1LnWjzZJtXn8YeTwzYZzWi1uo26vHLHWgbB9REBmsVENkH16Thav92i5ujDWkwV56LwKrHKUV7cr++/NnL9J9k8Eoq/+S3AtpwCeZlOdKMwqDnLHL+3tOWJrcWW/PJ3o2qCRHyKJZIVbPZXCnf7qPtrKXT+O111HNoqYlynEUzRehcbHvFATSLgjxiOajgPy2UF/vcw7jd4Ezhu6NrUYtUZtr4ngcvrE/5zp6N2lVUXGXMQ0Lv5zPrdj5xOsYhWs6tRLVSBfn4LSggNzgYowlwH1ZtND8LOLMmoRglUjfiRMEGr8lh30NfeKQN4KUui/PBOt5S1tWubf5h+YAJPVcEMGejNKdOWW2OyQ4OFqR8TQu1UjRVhRVffBEih6K9XVEzIMpAEuWFwY63MYsvLIrqv53Iy3lpC0OCQ3IM2z34veNWH1lEdmbgGTIWJ7SzMRUC4fIQHpO/KvqDLqPnKhgttjGuakjbxj0QtKOBIvpjifTj7llLnEn11ZFNmo/xtJgAQFvtE8jHLJhD4nBvSMgoOO6h0DVRsXceADf8zAfJc4QzkwFavt7cLh3T2QpKU3BVUzruQDxa3RvPEREEqHSrs10fM0w24CK31b+Kv7EkUFRQXUwGGeJF6Hji34S+J0Y7R2dq3DTx3JKuuIx8nVfxScTaaFDmWZ6CEvq0WBbtInWT1tBIU6lmauanpOBYK3tc5yyyRHIRbXCXCr/Ds+5DDhITH7Syw90DL+oO9zssDIj7PdrLgZ5oYw7GdhNloloKNLhkfyMLKiMz3EPGVNQSmeFdsvDU1i1BvtfIgZKgymKzri1mNn6YCtilJptpQTJqGWCRmvHem4LiQ836FYweQmrPpBDtf++tSqcM8kNuUAL3KXEYrEcYm97fLfn DHml8MW0 hkhzRrFkzGv6Lw3RM55v3BpwGTsahWKaqYAWEh1ND9LFRYzvGVO/2+miK5in4JdiknqD2z9fpFnZHom9LvtmeZgGCxXUxn6B8j7rmq9bQWNlJskhHQ1ptMy1LCNN3r/N2Dh82JwhWt3ohHFAV3CbOlOhwie1HxVuW8ks2t1hswPA2J5N+GXFwR2HYDHHnIFOQn+gDHtw4+yJH91U= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
big header dependency cleanup targeting sched.h
|
expand
|
diff --git a/include/linux/ktime.h b/include/linux/ktime.h index 73f20deb497d..3a4e723eae0f 100644 --- a/include/linux/ktime.h +++ b/include/linux/ktime.h @@ -21,12 +21,10 @@ #ifndef _LINUX_KTIME_H #define _LINUX_KTIME_H -#include <linux/time.h> -#include <linux/jiffies.h> #include <asm/bug.h> - -/* Nanosecond scalar representation for kernel time values */ -typedef s64 ktime_t; +#include <linux/jiffies.h> +#include <linux/time.h> +#include <linux/types.h> /** * ktime_set - Set a ktime_t variable from a seconds/nanoseconds value diff --git a/include/linux/types.h b/include/linux/types.h index 253168bb3fe1..2bc8766ba20c 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -120,6 +120,9 @@ typedef s64 int64_t; #define aligned_be64 __aligned_be64 #define aligned_le64 __aligned_le64 +/* Nanosecond scalar representation for kernel time values */ +typedef s64 ktime_t; + /** * The type used for indexing onto a disc or disc partition. *
ktime.h pulls in quite a few headers recursively (including printk.h) - this is going to help with trimming sched.h dependencies. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> --- include/linux/ktime.h | 8 +++----- include/linux/types.h | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-)