From patchwork Sun Jan 8 02:12:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 40468 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1529901wrt; Sat, 7 Jan 2023 18:13:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXu5upYL6a8arU0gkLm7mX0lNNL4wfVJxEM6Ydp+hvICp1tNwbXIzsmVJlEtknaUrd82amSe X-Received: by 2002:a17:903:2341:b0:192:fd1e:a968 with SMTP id c1-20020a170903234100b00192fd1ea968mr17396311plh.46.1673144026274; Sat, 07 Jan 2023 18:13:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673144026; cv=none; d=google.com; s=arc-20160816; b=0CLuwA+3CaDRiqJAA0W2qjbOkjau0x3jT33zgTYNbNaruUiWEB6M6hULp/DMdINuj4 /eZFv1FTMtEsZOQHzm8cFfZNfKckgPCcuj1B43DLPJ0PUM4YpYYesoxhmRLF8th35L+i 2Qn70l6AqZI1M+/DIvC099AiN7Jo2bB1sGXKqlzuCcihJa39Ehj6FKsT+sOVHJCM1kp6 t0FSJgIXINGhRDRPIp1KWGxQdGE7XPNMmPDNk1gv0t10K98T0tEeQN6z3v6V5TVheUl0 lYS2tqU8kvYL+/Zlz1vAZvlBlCsblKJnsoLxhGMjZibR5Q7gTk7+Hy+mEK9umE4D8eUa rRLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=42bzLWQ9Dix8/b44YinH/9gzk5jrFAX5viJfVtORb7Y=; b=uttJf6/OyNxf5G71ETe2kNisQPMikgNN+S9Gw4SR66MLTsYaz2yCG8GGQLgVIJE5Lt Vde+zU5xUpwWAemFftqQezfS9YBSGqwTLY6jhPChWNecKachb2Rnhe5An4vdK+VddLiB w1Jmrnu9bDFDrniVwAOpp70//hb9fv4oXcvWfExf/fvXjj8wUETYNeKwLFuUpMX9Sr07 gv0xpnZ2salVkj5+ODDR1G/K2f6IJlCCuW110ROWaGbreyRIOir4XdmPvHRI56wVdwx0 TMuEfPddhcph+ZB/+5kaCgNM7/B4NCH5JETHjP4Z4g7hwQcDGEm76CB/PNnlmntB12SJ WPJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jJrXn4kE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a170903244600b00182c510591asi6059658pls.246.2023.01.07.18.13.32; Sat, 07 Jan 2023 18:13:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jJrXn4kE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232417AbjAHCMj (ORCPT + 99 others); Sat, 7 Jan 2023 21:12:39 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754418670817403465?= X-GMAIL-MSGID: =?utf-8?q?1754418670817403465?= 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) {