Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7106356rdb; Fri, 15 Dec 2023 19:36:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtfzi02IBPI//CDIYkNWt+v6pe/IW7+CrDpahJnh9F7/oTjnrHvnXzj9nQH8SPjiaQbA8S X-Received: by 2002:a50:d650:0:b0:552:9862:42d3 with SMTP id c16-20020a50d650000000b00552986242d3mr1182462edj.80.1702697802904; Fri, 15 Dec 2023 19:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697802; cv=none; d=google.com; s=arc-20160816; b=ORVCUVfXYG9LvQFIe0tCPb/kWjWQrGIGWiKrcaw0KlXTVk3b33xP47tnKxepWgllu4 V+b0WRE0ERSZAfAJGzdsDtzdaorWExtL0Lx4NyFQyxt4ItPGBIpAzaeOa3t2cIkboK9Q 5sJuDLXCuPBDKjaXm2ezTkzo3or3I8iM7l7/Ke7q2lTZLVydwCzt7Y7Wr/m8hXm1s6qZ wuleyG3IjunDqFMH4fqNoDX9Xt9KwrbgiMmlqOrbBnqH9kxEI/pPHjFus3D/NjhONeZh +fvPzOy/HTV9UyvGb69rE+3lW2LVKUGZ3NmYW3OX6t5m0B/2xisa0C35UBR98SwYXwp7 CfZA== 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=X87VjxlUd18l9kDwUL6NaoqByTrZMfLVDHgwYnIbMw0=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=TpATTH9M7qu6eZXn4GtQXHlsNYABN0INtcZ7OirtAcuyAxTNT2as7pn6ZnXRS9JikD L2lscOz1fj/B0GX6vzEja4yQJ3lI+t+L8QObm3BW0iGsuTNhXIslKyGsnP+T56p+eRvN 30gkIt0OQEeWqVvsMAD8y7pYJMV/r9G2FIXwxJqGMRnvKOODaZR8Fg8PLYZTOgCW10JK t6UP8KF1v77BSAleFAGTpWI55oq3jvEqSGP4qL3potsJsJOZ1xLHgeDB7sWK7O6Oe4uh z3vg1t3o0gTWItmdWdqw0ED00jFS0UpU3dWRWe1OgK+QVFk+kERmUv+20e2O8aFR8McG 8aeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=eZB1hQbw; spf=pass (google.com: domain of linux-kernel+bounces-2020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2020-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 f1-20020a50d541000000b0055304ed2186si68732edj.381.2023.12.15.19.36.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:36:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2020-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=eZB1hQbw; spf=pass (google.com: domain of linux-kernel+bounces-2020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2020-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 5304D1F215EA for ; Sat, 16 Dec 2023 03:36:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BDA24175E; Sat, 16 Dec 2023 03:33:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="eZB1hQbw" X-Original-To: linux-kernel@vger.kernel.org Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 54F0440BF4 for ; Sat, 16 Dec 2023 03:33:36 +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=1702697614; 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=X87VjxlUd18l9kDwUL6NaoqByTrZMfLVDHgwYnIbMw0=; b=eZB1hQbwqfmiZUO+79GfWV0LuKKMJ6JKSkbeassQpJlaB2P+Rb0z4HWp9m5kghK/zTCFRw vJRY1U00mr95LX29azmSiTsBvVEZYNGSLwTZ3UuvgDMDz5Oy95eu5Tdx/+nO15FNRWWMvP 5ry/UrjcV1NmicWNvaiu6kQTbR+GEOY= 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 41/50] uidgid: Split out uidgid_types.h Date: Fri, 15 Dec 2023 22:32:47 -0500 Message-ID: <20231216033300.3553457-9-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 More sched.h dependency pruning. Signed-off-by: Kent Overstreet --- include/linux/sched.h | 1 + include/linux/uidgid.h | 11 +---------- include/linux/uidgid_types.h | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 include/linux/uidgid_types.h diff --git a/include/linux/sched.h b/include/linux/sched.h index 9bfa61ab2750..157e7af36bb7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -37,6 +37,7 @@ #include #include #include +#include #include /* task_struct member predeclarations (sorted alphabetically): */ diff --git a/include/linux/uidgid.h b/include/linux/uidgid.h index b0542cd11aeb..ba20b62f13e1 100644 --- a/include/linux/uidgid.h +++ b/include/linux/uidgid.h @@ -12,21 +12,12 @@ * to detect when we overlook these differences. * */ -#include +#include #include struct user_namespace; extern struct user_namespace init_user_ns; -typedef struct { - uid_t val; -} kuid_t; - - -typedef struct { - gid_t val; -} kgid_t; - #define KUIDT_INIT(value) (kuid_t){ value } #define KGIDT_INIT(value) (kgid_t){ value } diff --git a/include/linux/uidgid_types.h b/include/linux/uidgid_types.h new file mode 100644 index 000000000000..b35ac4955a33 --- /dev/null +++ b/include/linux/uidgid_types.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_UIDGID_TYPES_H +#define _LINUX_UIDGID_TYPES_H + +#include + +typedef struct { + uid_t val; +} kuid_t; + +typedef struct { + gid_t val; +} kgid_t; + +#endif /* _LINUX_UIDGID_TYPES_H */ -- 2.43.0