From nobody Thu Sep 18 20:20:37 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1F66C4332F for ; Fri, 2 Dec 2022 07:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232311AbiLBHkG (ORCPT ); Fri, 2 Dec 2022 02:40:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230094AbiLBHkB (ORCPT ); Fri, 2 Dec 2022 02:40:01 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FC22B0B60 for ; Thu, 1 Dec 2022 23:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=0dCXOpPa5VcMeZD1JNwijRb+T0fjwW9SfAbX9iBAGDs=; b=qWpfzOGP6CGenY9hd1tqbF8XY/ aCaRmcznYx6ElAWP/AYmb8bTTRKbNiuNfMQkrpH5HTezKxsstTlZI6TixXX5Wb3SRTWTL9cVKugj/ jRDxStqgCfaErZ5F3G3Ypf4uCoqXfhZc7+wf4MEtUFAgpKJDSGSj7KHY3j2j0QZpIFdPOUcZBdNYy vUvglLHmLfysA3ENgKbaupLoomYEeTc4tip3PY2BWslQNEBeEE3wzMXZ9DGH1ebZLh90ed6yqoizG 4Ug0IdQLE2/iqiZoIlnq/sJ40dduw3lJO5UD52eshg4pR+4zdCBaftWonCcMNFQGHzQ+QJmgRxZXI eTtTa6kg==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p10eS-00HW0q-Ro; Fri, 02 Dec 2022 07:40:05 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Kees Cook Subject: [PATCH] seccomp: document the "filter_count" field Date: Thu, 1 Dec 2022 23:39:53 -0800 Message-Id: <20221202073953.14677-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add missing kernel-doc for the 'filter_count' field in struct seccomp. seccomp.h:40: warning: Function parameter or member 'filter_count' not desc= ribed in 'seccomp' Fixes: c818c03b661c ("seccomp: Report number of loaded filters in /proc/$pi= d/status") Signed-off-by: Randy Dunlap Cc: Kees Cook --- include/linux/seccomp.h | 1 + 1 file changed, 1 insertion(+) diff -- a/include/linux/seccomp.h b/include/linux/seccomp.h --- a/include/linux/seccomp.h +++ b/include/linux/seccomp.h @@ -27,6 +27,7 @@ struct seccomp_filter; * * @mode: indicates one of the valid values above for controlled * system calls available to a process. + * @filter_count: number of seccomp filters * @filter: must always point to a valid seccomp-filter or NULL as it is * accessed without locking during system call entry. *