Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7105425rdb; Fri, 15 Dec 2023 19:33:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcKLsi9XVWkgAh6I6XiFRT3KuIRuJt5dsi2U8uXGexv9PlN3IjDBvX2eElndoWvLfb8aGP X-Received: by 2002:a05:6a20:4a27:b0:190:ea14:8cac with SMTP id fr39-20020a056a204a2700b00190ea148cacmr9460439pzb.54.1702697606334; Fri, 15 Dec 2023 19:33:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697606; cv=none; d=google.com; s=arc-20160816; b=qCW3e2ig1IzwER3OR6ifsALmV+JNlFjNXAAzw9NUBX35aJmnwolMNj3E5/c5RxKUf0 uNVxtib9hRlfx5IM615mB5jXWESTSRv33a96MAQs4BjBm9TdSWvij0V3WNzVSUkZBt6C uLmVoIz96VZTMfFZsSCQ35LLhlkDlb5edx6bCjrqdwDt58QsXOKMO2lc+u84Ulg+1Xkk nS2C5kecQwOZQRTlgHaqyKrPPO9r9CxK0rO3y+1RQU1goaPsGWzFeJGrr8VgpbSk3l11 U8pwBuu5csC9q4ZVhTJD2ScPJhds/Ys+eixbeUD7kLSghHbZv3LZYmbbqOG7XsyfH9rQ zgiw== 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=4LN+fvuL5eeNR/VPNkxK0aRm1LVsQsiIk1+jyA5Xy5c=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=1KIOawEGPbXDBBaSEMdlGnBuMCkEEFqWPuICTmX+rWVhokY0Uj75z1jn6OxFoBH+gH 0csvO1RHvA0Q3K/sgIYFr1MU8xzrK5c+5nJWFVQSDTb6otosas5vQzAq7vui6FKACooq wezic6zH0rnhdhxmIDyFfRgfKViGC7hkWiNEJbIzR9jpRMgk1wFg/BvrwC60vaw5iEt4 V8eD1U8MYh4D1Cnbc+gTqfAJ5cZDZCmFSEItemprofNFS5CZG16NrcOnATwBa2qeeI9n fZBZFFHgYUyfrTdKdSf97crg/4hdXQi1k8hpV2fCjkUEIL0dMjQ+kzw2AQDGIzp7FZfb GGwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Xy8STZZD; spf=pass (google.com: domain of linux-kernel+bounces-2009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2009-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 z10-20020a65610a000000b005c6bd30ed48si13822722pgu.20.2023.12.15.19.33.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:33:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2009-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=Xy8STZZD; spf=pass (google.com: domain of linux-kernel+bounces-2009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2009-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 B5920287B42 for ; Sat, 16 Dec 2023 03:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B81833080; Sat, 16 Dec 2023 03:30:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Xy8STZZD" X-Original-To: linux-kernel@vger.kernel.org Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 025A52C6BF for ; Sat, 16 Dec 2023 03:30:24 +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=1702697423; 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=4LN+fvuL5eeNR/VPNkxK0aRm1LVsQsiIk1+jyA5Xy5c=; b=Xy8STZZDVdZuXXrC81y0mDfKavQQ2OsvnlwBdfdk/NBXkbjQnS0aa+hU9xi+XbObTcpPSv QM/BrJstbhqYuJfsOFrrHDTzE/XtnsyxrBYi935HCxJo/kLSk4vECtaGsYgElYOBdmOjz4 S/mWnNfeu0pQbzKb7Sz+7MydM4f0wIM= 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 31/50] shm: Slim down dependencies Date: Fri, 15 Dec 2023 22:29:37 -0500 Message-ID: <20231216032957.3553313-10-kent.overstreet@linux.dev> In-Reply-To: <20231216032957.3553313-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216032957.3553313-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 list_head is in types.h, not list.h., and the uapi header wasn't needed. Signed-off-by: Kent Overstreet --- include/linux/shm.h | 4 ++-- ipc/shm.c | 1 + security/selinux/hooks.c | 1 + security/smack/smack_lsm.c | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/linux/shm.h b/include/linux/shm.h index d8e69aed3d32..c55bef0538e5 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -2,12 +2,12 @@ #ifndef _LINUX_SHM_H_ #define _LINUX_SHM_H_ -#include +#include #include -#include #include struct file; +struct task_struct; #ifdef CONFIG_SYSVIPC struct sysv_shm { diff --git a/ipc/shm.c b/ipc/shm.c index 222aaf035afb..a89f001a8bf0 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index feda711c6b7b..b9ccc98421e9 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -85,6 +85,7 @@ #include #include #include +#include #include #include #include /* for hashlen_string() */ diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 65130a791f57..7a5600834f16 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include -- 2.43.0