From nobody Sun Feb 8 12:14:12 2026 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 983CF37F8C8; Fri, 23 Jan 2026 02:51:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769136706; cv=none; b=Z8/Rjn93r5Rcv3+kIrIB0x0kSzSdYEOhiwxgk1i9hh8AtVfWV0v/VAzPuQU/p9wU0yND36btusXjw/6tRed5hXZkfmlYtZlmCgYPaO7WTxBKyjFGa5QmfnZB1Smss6fZj4070uHWWytRKyMI7wY8ZvpGVZVIsimf8tlqhZkA+FY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769136706; c=relaxed/simple; bh=ijsc2vYRTGvnu+6v0yeMDn19OX3wWsUn3E6YiSydZ0c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=d0ZblIPeJeize1L/Gk3phKwOA1OA1I224B4hSobqBkmhRtk9fFLOooOGKaxGjfWXaT8RG8hlc5mNyYp1/j8eoghy+/T+Pi5BYgMAy7sfpvAshB/HajS5AKjaCC/9f3jnsrx0NLgbSnTBVEQqEx4HXxZ2PRMGxWrXKw9cTEqpw20= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=QAfG5voc; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="QAfG5voc" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=PeeVDlba9WeDqSD+8U9G9g9YRwqxUxNfd6Pm/uxWRtw=; b=QAfG5vocN0o8MnYwPuhQeZ6e94 K3YA9hYxBOWQr0SOAiE9VwFQZVm1IcYBpl056c7OjLVZC9xjxOpGun2dbGozP/B84y6/RguDGTn2p EHUa9bCmFSer1UXep5VcOYZn3WSLTjEAawOK9aLZbWo+xG8pxebb1MGKw79dLnJLtn7GYfxjnobkV m11iDZ7RMj5jXiIr/VS+Yz1x5o54pbuD0OWUMA7H0ulZYRK0Zg7//BQ77a0apxMhaSH6UWJj3fW7G Cj9TozjLIYw45t+Q/2gdqXCpWaQDibUqw+xmbIS8zSs75CvPxH2we1h4zFnfKZQALliRXWubripAg LdY9gV/Q==; Received: from [50.53.43.113] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vj7Gc-000000084Bt-1afB; Fri, 23 Jan 2026 02:51:22 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , =?UTF-8?q?G=C3=BCnther=20Noack?= , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , linux-security-module@vger.kernel.org, Paul Moore , James Morris , "Serge E. Hallyn" Subject: [PATCH] landlock: fix struct layer_access_masks kernel-doc Date: Thu, 22 Jan 2026 18:51:19 -0800 Message-ID: <20260123025121.3713403-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Use the correct struct name and describe the struct member in kernel-doc notation to prevent kernel-doc warnings. WARNING: ../security/landlock/ruleset.h:313 expecting prototype for struct layer_accesses. Prototype was for struct layer_access_masks instead Fixes: 1ebf8e8d3245 ("landlock: Transpose the layer masks data structure") Signed-off-by: Randy Dunlap --- Something like this is needed. Feel free to massage/correct it some. Cc: G=C3=BCnther Noack Cc: Micka=C3=ABl Sala=C3=BCn Cc: linux-security-module@vger.kernel.org Cc: Paul Moore Cc: James Morris Cc: "Serge E. Hallyn" security/landlock/ruleset.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- linux-next-20260121.orig/security/landlock/ruleset.h +++ linux-next-20260121/security/landlock/ruleset.h @@ -302,9 +302,9 @@ landlock_get_scope_mask(const struct lan } =20 /** - * struct layer_accesses - A boolean matrix of layers and access rights - * - * This has a bit for each combination of layer numbers and access rights. + * struct layer_access_masks - A boolean matrix of layers and access rights + * @access: This has a bit for each combination of layer numbers and access + * rights. * During access checks, it is used to represent the access rights for each * layer which still need to be fulfilled. When all bits are 0, the access * request is considered to be fulfilled.