Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4570665pxk; Wed, 30 Sep 2020 06:31:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ1fbaaI0zohwAVH84gns2Bs3Y2eaeQ5QN9Nxhu/aXzvxuxGHzHizsgNIkiLxKr/O7CraZ X-Received: by 2002:a17:906:8690:: with SMTP id g16mr2716151ejx.187.1601472660381; Wed, 30 Sep 2020 06:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601472660; cv=none; d=google.com; s=arc-20160816; b=HprnoCShjoolu2YmdGP5kJdgRcWj7P2FyBkUpgofRgI8BvU+XSmqixIOpnk2xwoTPr pELsw+8u3whcziEWgDaTuZHTp/xoGYaF7g0mxdvEoPPDskdRbWCRv6BVVtS9VQ+SN8D1 KyItoS18t/OaWp03By/qgBXNogCgUAYAwEnIVB9bblB78CTAFsWsBC3OEVx77cgd+XbO YQ+UvgZ/8p8WkMBSnndx88XfsGyk3XPuSJblRB8s3/DW3l6IkpCtHe+3HEBSit+kUlmz OcRzRcl+U2EICJpOvs0h0A3VSsIRxlG2pyu84IQbmRLwJTkx0BaozWw56AIVDyH290G3 F0Lg== 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=LPcBwoeeChatJ77bHbxlGHvT2ACqsvE+v8IbsXVdhnE=; b=kqzft2LCI40eWI9eMh076pZC78W96YsTxjpRQyyO9Xwk3FN2gYapGjRzUWQZjSUipz WKoOO343lKJuGZK2G8hdbIwqTI5e0/X0I7HaygJSZGxzl2Cw6y/5jUnuqKgxqSiwDa1f MMKBEu/vOPcoXqwe9XkQX25jVNr0A+wvFbQa/Uisd/tgsdxbTgMEWtnAX0Ufsu+v3WTD AUDHsfKWDlLlxklLAfdor7X40sv/MkjRUOl50eefLqptXTGbWOfLPnFAWcI7oZj8ZTVr V7U+uMu6rzMbUI72PsDVIdqftt9RUQz3/GjfBj14S8kVN+vaNjN6mhpSwwaJ7r2BIWDS 6KpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SoZX0js5; 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 i10si1052836edr.13.2020.09.30.06.30.37; Wed, 30 Sep 2020 06:31:00 -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=SoZX0js5; 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 S1730643AbgI3N1S (ORCPT + 99 others); Wed, 30 Sep 2020 09:27:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:38786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730243AbgI3NZW (ORCPT ); Wed, 30 Sep 2020 09:25:22 -0400 Received: from mail.kernel.org (unknown [95.90.213.196]) (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 5F5CA23A52; Wed, 30 Sep 2020 13:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601472321; bh=BA0rUNfQv2vTH4SLnc/FqbEBD7kAUkAlpsHlup8dym8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SoZX0js5gUXgcROd/wYy5mIzlvUKaoE8hTeskV/UPb/swsJr3psniP3jvJRXjaOgw t9YYCe/tq2Tjiphika3JjZD7BZL/y93nz668ZTqdpoJJGSLxGLICR31gqeWtesTQ5A o1p2bGl7hBSP/a27mck8xIA9+CDenCO4TW904dhI= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kNc6h-001XKf-Eh; Wed, 30 Sep 2020 15:25:19 +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 Subject: [PATCH v4 39/52] docs: writing-an-alsa-driver.rst: fix some bad c:func: markups Date: Wed, 30 Sep 2020 15:25:02 +0200 Message-Id: <9c68c182ae5aa978d68b64695b1e3292fcf58e76.1601467849.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. 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