From patchwork Sat Dec 16 03:26:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 179758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp15562dyi; Fri, 15 Dec 2023 19:29:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQvaH6GJYS6i0PNuzeXa0ZHN9I1HKpzaSSfJlDzq7nUzwbfTIWATAJORqmdgnnaAUny7vs X-Received: by 2002:a50:d001:0:b0:552:32da:9c24 with SMTP id j1-20020a50d001000000b0055232da9c24mr2416792edf.65.1702697347182; Fri, 15 Dec 2023 19:29:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697347; cv=none; d=google.com; s=arc-20160816; b=foq1juzP39dgWFsC1FnD9To6JcfeZ70EfPNJ8aUKpYF/LAEhZH4fCvq51s467usxX5 1esPxzQpVsZ48aZyccxZ3dQP6CBtvcSGA2idwXeP8KmaGglZniMm8dnmY7jJXgEKkSIk AuRABudFuwm0v0Qe+KGF7sPkc9TDRyh52PpSXcyBuZkN4O4aS551+fXyYJR4QssC+fK5 ydevWxr2LSywJ/BN8nS+XJA3YYfLdBonDOXp/0/uxMJMSbCS9fkQPz2qFamOQq4Wahaj 9iCDZ1rGrEAK4rbPiyCVrvPVzQH6CkBf50R9wnG4cbnhmIdRlAPphb+0v/i0xnD6r0bI Cvng== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1992-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gy4-20020a0564025bc400b005528db29d85si1560934edb.142.2023.12.15.19.29.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:29:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1992-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1992-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id C66DF1F25A76 for ; Sat, 16 Dec 2023 03:29:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 014D01BDD4; Sat, 16 Dec 2023 03:27:19 +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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785407573856063689 X-GMAIL-MSGID: 1785407573856063689 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. *