Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7104074rdb; Fri, 15 Dec 2023 19:28:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsDNBzyWAzpwBSn4SB8+oPMUpQPqrABcbuwZm2Ks0rL5/2eYjtBGDJW3cFE7NfhexWJXtL X-Received: by 2002:a05:6830:914:b0:6d9:e198:b17b with SMTP id v20-20020a056830091400b006d9e198b17bmr15070335ott.44.1702697331306; Fri, 15 Dec 2023 19:28:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697331; cv=none; d=google.com; s=arc-20160816; b=u/ZyIJ1LQMKzlcAiOhyj71pfpHUAUKunZWt9td9hCJzZlKEDZ3jZqDTWqSWniFDO2z rsvMKNuC/yDA/TMFJB0znU/MvTFwBT15N8iAnAn7QtjJySDLx1u/K5uifUYvjQ3HrBJ1 CMuR49QsFWBA1xeEKarZU7XaP0Hvw9Yf50MDTHt9Jitabh1s79E6lS0IO5Zp26hK3rXW GaggTXvhj7Pt6cLp7QryFT/4jHzYmnx0eF4GywBAr4FcNWQ79dub7mMgxXSCCAUGsEaJ 5gSutR6GB+eOZKwYyBSaQBSJHSNkt8J+lMvTJZVFRYJDh1N9v8kxsiSuL42zMGtHHQlg 6KUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bVQvq92zNWowFmQB2GI0mP9AbBZYVi5uCFShyHJBgic=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=rGjixprVQQhzY54oORU3ZTQtGJslcAKkF+lBfjwOya0v/ljzKR9GsygL1xmmgKCUON FNqDTsawPICXdtKjA/0O69nndT+2oLDSwlQ0HEhXc5CvW3OB33mDFVZ7E5ZX72No8X98 9DGM5/gdmFnA1SpAr9h5uyXWASdBszmUWhPtVKBnGB8jGshkgZsG7e/tFlHRRpUaFYC8 4zYMKkr2qOmBYQTMaJ20KP9s4CLugUksmTmTQOdTTdT3cWY298NqCPtE+l9W4r1oKniZ QfI42i3VIcb7fmpBqETm/TSmrJ+d2LLPLT4MB5bO26TYqJJ6qu1b3CYedAJg7+GBjpol uBww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=j6ZPXCGP; spf=pass (google.com: domain of linux-kernel+bounces-1992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y123-20020a636481000000b005ca4d23fac4si5385752pgb.859.2023.12.15.19.28.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:28:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=j6ZPXCGP; spf=pass (google.com: domain of linux-kernel+bounces-1992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EBFB6286664 for ; Sat, 16 Dec 2023 03:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D2EC19440; Sat, 16 Dec 2023 03:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="j6ZPXCGP" X-Original-To: linux-kernel@vger.kernel.org Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AA1316408 for ; Sat, 16 Dec 2023 03:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev 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 To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet , 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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 --- include/linux/ktime.h | 8 +++----- include/linux/types.h | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) 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 -#include #include - -/* Nanosecond scalar representation for kernel time values */ -typedef s64 ktime_t; +#include +#include +#include /** * 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. * -- 2.43.0