Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2236172pxb; Fri, 29 Jan 2021 17:55:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsh+TeT9e2qj3cBsC5gBQ5h1iWcQ7lSLxynMDb0IfkSrboyXtLWxFyHaIYW9A5v4h7Riuw X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr7110242ejc.408.1611971730509; Fri, 29 Jan 2021 17:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611971730; cv=none; d=google.com; s=arc-20160816; b=NRm7ER4pTjuphPky9wmNJJ3SJbK7Ky8/JzAOvV15Zik8fn2ipn33FojAqF4jy+OcCT saRkLfWDIXP+ncbus+bKWk3ewUz/Mm04MJagTwRezh1K1iGhkTdINTm5DV2kTHTy3YlK ip7g4xkj4iUGYQVcbwpCrTJ1mbkYknYuYPXUCj3McanbWGWParMfRtfZbvMNTbiGZ1UO KVu2bw1K5tURN9BMH/A9/lNpi/BJJV/Ejpda+cLyadRm5mbgqt4AVgQ1xW3k949ONqVR PDbzvwkxbis1CtJcw0OuH6aV2B788dJm6YkfBqbslthFrUJB3XrLTspwOYxobTxmGEtY 7icg== 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; bh=23cmDCwWkSr9YEgYzNoy2odXKBM54h874SFKl+8KIkU=; b=I/1J7VDtxXIvn8PF95ZEmE8cBUm0/ozMbPio4NkNY93A8EoCpnGRvSeA6gwB5jXGA4 Z+KL4bSL70Zs0UemSdtHZCqfZ7Ra1EzRYwmLDGLAuSw3qywesSjF+MK8gs+JUQETKiNK O1g1ooUOWPQ1PiXPBzxLDGd7BU7AyrpRFo8YA1gCbvBr9C705/p+8ErZyIqWOOoHtS3x A69inf3jiQ2UEVk+b7g4rW1PnJxPfy6AR54InzK3sSct1Mwqb+x6xrgig6188daV9AHt mLwCHNyyt6F8X4nitlXnOmaL8/TsR0t5k9HKaZp0IWhWoaAmNM3J+v65EJvaOLEzSVQk nRXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si6615268edp.3.2021.01.29.17.55.05; Fri, 29 Jan 2021 17:55:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231716AbhA3Bwo (ORCPT + 99 others); Fri, 29 Jan 2021 20:52:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232016AbhA3Bro (ORCPT ); Fri, 29 Jan 2021 20:47:44 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2C4AC061573; Fri, 29 Jan 2021 17:46:10 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id 565531F45F7F From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: corbet@lwn.net Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Andr=C3=A9=20Almeida?= , Dominik Brodowski Subject: [PATCH 1/2] docs: Make syscalls' helpers naming consistent Date: Fri, 29 Jan 2021 22:45:46 -0300 Message-Id: <20210130014547.123006-1-andrealmeid@collabora.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The documentation explains the need to create internal syscalls' helpers, and that they should be called `kern_xyzzy()`. However, the comment at include/linux/syscall.h says that they should be named as `ksys_xyzzy()`, and so are all the helpers declared bellow it. Change the documentation to reflect this. Cc: Dominik Brodowski Fixes: 819671ff849b ("syscalls: define and explain goal to not call syscalls in the kernel") Signed-off-by: André Almeida --- Documentation/process/adding-syscalls.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/process/adding-syscalls.rst b/Documentation/process/adding-syscalls.rst index a3ecb236576c..61bdaec188ea 100644 --- a/Documentation/process/adding-syscalls.rst +++ b/Documentation/process/adding-syscalls.rst @@ -501,7 +501,7 @@ table, but not from elsewhere in the kernel. If the syscall functionality is useful to be used within the kernel, needs to be shared between an old and a new syscall, or needs to be shared between a syscall and its compatibility variant, it should be implemented by means of a "helper" function (such as -``kern_xyzzy()``). This kernel function may then be called within the +``ksys_xyzzy()``). This kernel function may then be called within the syscall stub (``sys_xyzzy()``), the compatibility syscall stub (``compat_sys_xyzzy()``), and/or other kernel code. -- 2.30.0