Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7105907rdb; Fri, 15 Dec 2023 19:35:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyfyAVqviWAQ9Xt4QPKB/pqSKgGljlg+uchRyQFd5UE2SAMBi6S0x95WthGe2OCng4Jus+ X-Received: by 2002:a05:600c:444e:b0:40c:48c2:f69f with SMTP id v14-20020a05600c444e00b0040c48c2f69fmr4738662wmn.12.1702697717280; Fri, 15 Dec 2023 19:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697717; cv=none; d=google.com; s=arc-20160816; b=jnbgPwOEnBvWL0rgMu9P5VC+jIA9qI2M5qmWB1wkeIpQIPbPXj7evckKM6m3nOSPop 54AOvbjMe8c10w/dclj0TwGhFio5OR/aUaY68fj/Ov8LjZr0E1ozvMP0GmHHudc44weg c6FsAbqr1I31KJ0gB5yynxnVIC4k9pCnxWBhrL8NkIS7tYiuko0nmtIwqPIe93R6Ikn8 wGPJYaTB1sQSe/TbzLzfetnzammpUaJGP7hH2BQHtet2gELhcii75lOZvzb3MFCYJL0k KbrKEvPrxdtgmc2eTXOpPNlPCf6dkjgyQdIV3U67bcxKcu+iS2nK+C773vJ6vP8ZeeiV 9WBw== 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=dxw2KqDvlMnMD4Kapv1bIsL/tByrZwT85T/LljRE2HE=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=ua056ut6/ndEkzh6zlhqJq+yLuN+1DSMzl7WIwIPyb7LWvQU1duhD7Ek8H223CqoEn 7jGUql1AG6WWnjp2tAz3Wy2MxAOmSpeO8fXrujtXP4NBKvkaNlhWlyxcG/c5U+LQaMpS eLBs5ab9zels1kaSgOME0+/7f1mihsB0bDvVxVejOTf3y82AIGQmcR7+w8abyuJSpxU1 nYqr/JM8NE0LzV1o6zKwORuwv15rqMpV/gyx1DB7M0NWbE7EYsLW39AkJKizb9ZOc+Ea 6JGjQIKkLTkjrmkM88zNgQZ5LDnTMfjjTnks+MVKkqfUw18j+jRq9ydMSrCkMNcJ3Lfi F/vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wmpSPZvk; spf=pass (google.com: domain of linux-kernel+bounces-2015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e26-20020a170906375a00b00a1ce707af7dsi7804765ejc.634.2023.12.15.19.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:35:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2015-linux.lists.archive=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=wmpSPZvk; spf=pass (google.com: domain of linux-kernel+bounces-2015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2015-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0D7D51F25B80 for ; Sat, 16 Dec 2023 03:35:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D486339AC5; Sat, 16 Dec 2023 03:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="wmpSPZvk" X-Original-To: linux-kernel@vger.kernel.org Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 90F4537D08 for ; Sat, 16 Dec 2023 03:33:26 +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=1702697604; 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=dxw2KqDvlMnMD4Kapv1bIsL/tByrZwT85T/LljRE2HE=; b=wmpSPZvk0q6PpcFET+M+jpSJuPO1rvRf4yekiYZQcySO04+MNinlp+POwwTts/ZKSMA+vd G1nJLMt5WnAM8ceV7UR9qMkJRjc/TkrFKG3Rhg+S893Mr7vpUsk+D8ltIU+aPtti5HYLQ2 HGLpevlfQAM+3lPkaQ5vzJJDZLqfwks= 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 36/50] syscall_user_dispatch.h: split out *_types.h Date: Fri, 15 Dec 2023 22:32:42 -0500 Message-ID: <20231216033300.3553457-4-kent.overstreet@linux.dev> In-Reply-To: <20231216033300.3553457-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216033300.3553457-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 thread_info.h pulls in a lot of junk that sched.h that we don't need; in particular, this helps to kill the printk.h dependency. Signed-off-by: Kent Overstreet --- include/linux/sched.h | 2 +- include/linux/syscall_user_dispatch.h | 9 +-------- include/linux/syscall_user_dispatch_types.h | 22 +++++++++++++++++++++ 3 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 include/linux/syscall_user_dispatch_types.h diff --git a/include/linux/sched.h b/include/linux/sched.h index d799427f6d1b..fea6d913e004 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/linux/syscall_user_dispatch.h b/include/linux/syscall_user_dispatch.h index 641ca8880995..3858a6ffdd5c 100644 --- a/include/linux/syscall_user_dispatch.h +++ b/include/linux/syscall_user_dispatch.h @@ -6,16 +6,10 @@ #define _SYSCALL_USER_DISPATCH_H #include +#include #ifdef CONFIG_GENERIC_ENTRY -struct syscall_user_dispatch { - char __user *selector; - unsigned long offset; - unsigned long len; - bool on_dispatch; -}; - int set_syscall_user_dispatch(unsigned long mode, unsigned long offset, unsigned long len, char __user *selector); @@ -29,7 +23,6 @@ int syscall_user_dispatch_set_config(struct task_struct *task, unsigned long siz void __user *data); #else -struct syscall_user_dispatch {}; static inline int set_syscall_user_dispatch(unsigned long mode, unsigned long offset, unsigned long len, char __user *selector) diff --git a/include/linux/syscall_user_dispatch_types.h b/include/linux/syscall_user_dispatch_types.h new file mode 100644 index 000000000000..3be36b06c7d7 --- /dev/null +++ b/include/linux/syscall_user_dispatch_types.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _SYSCALL_USER_DISPATCH_TYPES_H +#define _SYSCALL_USER_DISPATCH_TYPES_H + +#include + +#ifdef CONFIG_GENERIC_ENTRY + +struct syscall_user_dispatch { + char __user *selector; + unsigned long offset; + unsigned long len; + bool on_dispatch; +}; + +#else + +struct syscall_user_dispatch {}; + +#endif + +#endif /* _SYSCALL_USER_DISPATCH_TYPES_H */ -- 2.43.0