From mboxrd@z Thu Jan 1 00:00:00 1970 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 95E47C46467 for ; Sun, 8 Jan 2023 02:13:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232536AbjAHCMk (ORCPT ); Sat, 7 Jan 2023 21:12:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232110AbjAHCMb (ORCPT ); Sat, 7 Jan 2023 21:12:31 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 215CD15F23 for ; Sat, 7 Jan 2023 18:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=42bzLWQ9Dix8/b44YinH/9gzk5jrFAX5viJfVtORb7Y=; b=jJrXn4kE9TI4GVxUa7eqxiMmz6 G/GXEhFLJO8k+FBDCWYjSdclONjxKcCP8INsWjMTfN49ZfgX4hcNWKdTPNF4znASCLcnxQ1TBEECc 8ch0a5JOYD+vIxg55Q2mnr51mvDe+UCKnjvQqDMIba4FVWh9kFyCwL82ztHGkS1F0TVYM/i2jSUzX FzuTzr9lm+wXFHusbYCraVPhKDrXOVrtqGSwu2S0ETm8C8UBkZeyDi6MAHoBwi1cv/Q8ewXGo97C8 WqcxT0UIln4140QFUw2JiVpQmUO5Y1YJ14IO4dgeV31ufV9fY/XpthhhdOItNPQXEdoAjC0V1wTPj jEypnIlg==; Received: from [2601:1c2:d80:3110::a2e7] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pELAj-00Aq3x-Hr; Sun, 08 Jan 2023 02:12:29 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Kees Cook , Andy Lutomirski , Will Drewry Subject: [PATCH] seccomp: fix kernel-doc function name warning Date: Sat, 7 Jan 2023 18:12:28 -0800 Message-Id: <20230108021228.15975-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the ACTION_ONLY() macro so that it is not between the kernel-doc notation and the function definition for seccomp_run_filters(), eliminating a kernel-doc warning: kernel/seccomp.c:400: warning: expecting prototype for seccomp_run_filters(). Prototype was for ACTION_ONLY() instead Signed-off-by: Randy Dunlap Cc: Kees Cook Cc: Andy Lutomirski Cc: Will Drewry --- kernel/seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/kernel/seccomp.c b/kernel/seccomp.c --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -388,6 +388,7 @@ static inline bool seccomp_cache_check_a } #endif /* SECCOMP_ARCH_NATIVE */ +#define ACTION_ONLY(ret) ((s32)((ret) & (SECCOMP_RET_ACTION_FULL))) /** * seccomp_run_filters - evaluates all seccomp filters against @sd * @sd: optional seccomp data to be passed to filters @@ -397,7 +398,6 @@ static inline bool seccomp_cache_check_a * * Returns valid seccomp BPF response codes. */ -#define ACTION_ONLY(ret) ((s32)((ret) & (SECCOMP_RET_ACTION_FULL))) static u32 seccomp_run_filters(const struct seccomp_data *sd, struct seccomp_filter **match) {