From patchwork Tue Sep 12 06:08:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 138229 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp461754vqx; Tue, 12 Sep 2023 07:53:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPkq3iSsxj86R5Vhi4a4ZDprzYg1tNSVKdfadYl+MMSdzNrI9xJmiyBORK5uDarOwdkwG9 X-Received: by 2002:a17:902:db09:b0:1bf:8132:d1a5 with SMTP id m9-20020a170902db0900b001bf8132d1a5mr13407577plx.26.1694530380578; Tue, 12 Sep 2023 07:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694530380; cv=none; d=google.com; s=arc-20160816; b=WCO9mqWMYHiWpEYRbh0O70W1QSNv1+nerHAvOdR3fIvjcuO/IHuAzy9PFjhQAtLWpb ydjOIeB0SZXPxjOPx5e++YQRzl8t+cpiPF6Go6okDeS/R8nPjNS1i7LTjb5Z6nEQZyIi pPOQORB/hAJm5TAVmWzECTnc7JDUcXw7HLdQjtXPfLMFd+MxDoRsnunKuZjvo0iGMEJK TVzCc2SU16CwU/OeFVBLfaFQBac1P9Jv/TkREghxtEx5YI/Ny83zWDWNsQ1P/UnEYGO5 IPDWUtgaciY+pEjHoJ1Qq4QnTEbdAKi3ZWXMNX/bm4jdMu6yAH3gKqkakINGQ3Djdwb2 /Nbw== 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=zbrCXhzd7dlCdPFOGh4V6OMqKmmy+kOxT9jov+gCma0=; fh=xQ9gwvSXei3CQcWxYm/wnWutm4w5pVFzH0m5bg2HT8E=; b=LC6cFy8jl5CAcxfpbcl2ZJ3edkVSVFBTLFn9vLzTTlGok/LBUaTfFgskKxGDQCEZmW 9dX3TX81niG9Z/RLGk+FrjmD4F7Z5Dg0uQIv/r8C/wwg8jdHOADVGjBKzH/DWHJQImXl gnot4GFGjeWU/yyutTF/pExaxqvKKF/CwsCZz2JYZf5aDzuygFx53Vc6IIO7CduEQwy0 sMU4yfPalCmrX7pYxFkRGXvpbM5dgndC0Yjt0yyz4LhwHqlnf5vKF7nc3BBxkt8UQwn0 lQ0xsd6vNGhJ3MJ9Ughic/glXXjk3qqKex73K6RJrGqeiOcfbNjkXKtT5431O4sZyU+S XAGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ywyBmmXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bc7-20020a170902930700b001c3bf27a480si2867510plb.155.2023.09.12.07.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 07:53:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ywyBmmXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 89550803D5B2; Mon, 11 Sep 2023 23:08:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbjILGI2 (ORCPT + 39 others); Tue, 12 Sep 2023 02:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjILGI1 (ORCPT ); Tue, 12 Sep 2023 02:08:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84CBE79 for ; Mon, 11 Sep 2023 23:08:23 -0700 (PDT) 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=zbrCXhzd7dlCdPFOGh4V6OMqKmmy+kOxT9jov+gCma0=; b=ywyBmmXwKLgz3qQ5pPKg/H/4xA U/xnt1ZJiixSHgnC98pN5zrrATpjZEwC+HL8qOXw6pNH4rPeliD1oLFQRel6rpa6Iwl4u6+78VAnO eQiWx2l5zTZRdcN/1pIaLc3lNgmX9QHoWUSO3c9H6KCmqKaSi16H0O73FZ3q7nr95fI9ys+f0fxUO YoNOmNHOywvtoXMUwxtn+FNCRqgqAcWRPO/tBq7qcaYaavmqzkjDs2jgDII7EME3cHt/JWUlIiG8q eZrNmsqGZNP0bSfyEFkxK1gyjkXGBKuE6QbigSHs7jEmw3cL0p2Cal6bwKk+SdHgiFSVlRF8esrov z9Pu1khQ==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qfwZT-002Fgt-1s; Tue, 12 Sep 2023 06:08:23 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Christian Brauner , Andrew Morton Subject: [PATCH] pidfd: prevent a kernel-doc warning Date: Mon, 11 Sep 2023 23:08:22 -0700 Message-ID: <20230912060822.2500-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 11 Sep 2023 23:08:38 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776843888552189337 X-GMAIL-MSGID: 1776843888552189337 Change the comment to match the function name that the SYSCALL_DEFINE() macros generate to prevent a kernel-doc warning. kernel/pid.c:628: warning: expecting prototype for pidfd_open(). Prototype was for sys_pidfd_open() instead Signed-off-by: Randy Dunlap Cc: Christian Brauner Cc: Andrew Morton --- kernel/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/kernel/pid.c b/kernel/pid.c --- a/kernel/pid.c +++ b/kernel/pid.c @@ -609,7 +609,7 @@ int pidfd_create(struct pid *pid, unsign } /** - * pidfd_open() - Open new pid file descriptor. + * sys_pidfd_open() - Open new pid file descriptor. * * @pid: pid for which to retrieve a pidfd * @flags: flags to pass