Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp314910pxu; Tue, 6 Oct 2020 07:08:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKAtCG/ql4l5W9JMiIRT2nMbISPAiWKXIOVwU3yRHnqtYrftqQn2z48QG3Ae1amIE8Viql X-Received: by 2002:aa7:c7d7:: with SMTP id o23mr5686555eds.44.1601993321537; Tue, 06 Oct 2020 07:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601993321; cv=none; d=google.com; s=arc-20160816; b=HDOhusHvE80MrlkQ16nPNdujdMWYLGXdhVEM4dJfAzbUQRESvYjo55nwGnnoZShSXZ MgBz5iX9QPYJu+l4xFpAW4ty7ZWAB6F8Xjx5xHs89PexZc2iSvskcQRP2epwht3d8G8c aNoTJllllLq/eoTEm3zKkiqkSBcZuI82zWhpQsnlyDdId8JbQHzqE6hbtBdJrSd0KFKi /91wRFl2saIk4HlSuN/rFf2m9jvGzv1/Kq99oAv7ZV58M8r5V+wZ6FsHL9lcXyZ8KEFk 0pnvUiDZ1yVqciShjS1ymlUh3scfEPODS37V63LjZ/NXCehJtJ+0lcm4FEY8bn6kEwaw ak/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=haPSEhglNxu8rvpT3SPrEQYTCIssMnc+l4eFBOrPP9c=; b=Ld8z9iMELe9GoGCmCYwqjHNclgs/t5qiooLsoSGoVR+wQQe8+HekMnlyLNAfIyvQfV HiTyQ0eW9sz2z+VeYUs5UQa6P70i+nCFBHG2iwjBt7LguiUSaB4uCSgPfJzhIyjC/9kb NrhAWDDm3tYtnFB2B0987dndbzG9HQ0/ax5063xbeG7PdyXQkNAdyDhvzVw1umFSboVo KAI3uOAGGBdyYoL9fGitrrGaP+zS3pj2vOZA8A4pzmyZVvMsMlo5x82Scz1z9K4ggaSd 9R4Pt1vXKT1LqIjSu9Sc868EKcg7qYagnrRXNgh5+GrrWJCbT5dfr0RyGz6Tv9JU+v5O RiSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=svhfwihA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si2669403eda.185.2020.10.06.07.08.13; Tue, 06 Oct 2020 07:08:41 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=svhfwihA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726999AbgJFOGS (ORCPT + 99 others); Tue, 6 Oct 2020 10:06:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:33530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbgJFOD4 (ORCPT ); Tue, 6 Oct 2020 10:03:56 -0400 Received: from mail.kernel.org (ip5f5ad5bd.dynamic.kabel-deutschland.de [95.90.213.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD53B2226A; Tue, 6 Oct 2020 14:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601993035; bh=78BG9Iu2yAlND/COH/HKK6//gm3h8RbYRE58LCuOyj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=svhfwihAjLuruTbK6MWBRvuq1rTft/Sm7MfsmPdLu7gQJ+qO5Lv3oXZrSPnPSlEOb XSUh3Ov79m7rjubijWfJ/7oarjQXa4WiytH4/QVgnl3Of2fDI+UxewPvgFLWSsJLZ4 N9vTVwNGT75Y8cWIvBzqYNTYv+9+rybrPdG8b47o= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kPnZI-0019GH-L7; Tue, 06 Oct 2020 16:03:52 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , Arnd Bergmann , Jaroslav Kysela , Julia Lawall , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai Subject: [PATCH v5 39/52] docs: writing-an-alsa-driver.rst: fix some bad c:func: markups Date: Tue, 6 Oct 2020 16:03:36 +0200 Message-Id: <185686ba69268d7c9fa1996b7a42f9f860757ff2.1601992016.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some such markups are invalid, as reported by Sphinx: ./Documentation/sound/kernel-api/writing-an-alsa-driver.rst:3317: WARNING: Unparseable C cross-reference: 'snd_rawmidi_transmit*' Invalid C declaration: Expected end of definition. [error at 20] snd_rawmidi_transmit* --------------------^ ./Documentation/sound/kernel-api/writing-an-alsa-driver.rst:3917: WARNING: Unparseable C cross-reference: 'copy_from/to_user' Invalid C declaration: Expected end of definition. [error at 9] copy_from/to_user ---------^ The first case seems to be better replaced by a literal. For the second one, let's generate cross-references, by spliting it in two. Reviewed-by: Takashi Iwai Signed-off-by: Mauro Carvalho Chehab --- Documentation/sound/kernel-api/writing-an-alsa-driver.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst index 85d6e9c643ef..73bbd59afc33 100644 --- a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst +++ b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst @@ -3315,8 +3315,7 @@ data and removes them from the buffer at once: } If you know beforehand how many bytes you can accept, you can use a -buffer size greater than one with the -:c:func:`snd_rawmidi_transmit\*()` functions. +buffer size greater than one with the ``snd_rawmidi_transmit*()`` functions. The ``trigger`` callback must not sleep. If the hardware FIFO is full before the substream buffer has been emptied, you have to continue @@ -3916,7 +3915,7 @@ the maximum size of the proc file access. The read/write callbacks of raw mode are more direct than the text mode. You need to use a low-level I/O functions such as -:c:func:`copy_from/to_user()` to transfer the data. +:c:func:`copy_from_user()` and :c:func:`copy_to_user()` to transfer the data. :: -- 2.26.2