Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1354176ybn; Wed, 2 Oct 2019 14:56:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwFIOQnMKvpsaAEDcouDFonBMrKN924nEVVUIkhmKN6q7cIj2R8GVl5P+KiiO/kNZCbMzM X-Received: by 2002:aa7:dcd7:: with SMTP id w23mr6161688edu.170.1570053396533; Wed, 02 Oct 2019 14:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570053396; cv=none; d=google.com; s=arc-20160816; b=Vq8ebpD9lpFF/FlxH9XSfoo+0QDVJW8P54cXrpQ9tkVAvU15jqlVUEwMbf+vxDBNO6 TSxiEHxowj220jIFy4PLMMeYPF/8w9qGjBBSTdrzqQ8emH87isdOc6vIZjYNQVN8zyKk 6ET4tTy1OtMfFKV0cPqbRyT9KJHr5q901sBKeeGkEApc6yTM9qMHGbj1LRvXoB7EAMRG f/a9bs9hK3u1JnJa0NEzvnRZehAlXreX1t6Qs55XuHSAUQZ/eGLJCphXqQyDxgv1mtl2 9g756gnZ4fOdeiV1ysx3UzY81zgAeZ3EluW+eSxUduOEhYEuPEdNfVf0OhXRndY1z/q2 gQmg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=wkrltQtvM3ERlwb2By221YlM40W6JQFQ7lekmmQ0nXU=; b=g0TqGbQl9RP5e/qJNLC7Fbz2HTMj61jsZZynohtYaP9LJGsYc/HSlTtxlWRtCGIZY8 sSZfqCnSA6pG88MVBEM2bjjYTdoALte65c0Pu2pefg8vDuMD8unjZBV8fJMqUfWO/mQu l/5xEvh/0JhDHHsLQrIM6vYb8O5E27EgeUbHP7BanPloYqtaalLUzgR+zgo9WmVBcE3n LUA8bTRTV3rZTSUEySpFgTjcT32FHca+i3AHCO+4/1ErnQc5EZ0YsWhKzY8+mgTVTUXk iNwABG+qIvDA6kVgK0XJb4f6RdLjwzQL3IV6mSJVHvoY1tVQgNfz/Uh7lW6gTpQJ85I6 fetg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i18si243030ejb.145.2019.10.02.14.56.12; Wed, 02 Oct 2019 14:56:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729094AbfJBVGq (ORCPT + 99 others); Wed, 2 Oct 2019 17:06:46 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59720 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbfJBVGq (ORCPT ); Wed, 2 Oct 2019 17:06:46 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id ED8DE289EE6 Subject: Re: [PATCH 1/1] blk-mq: fill header with kernel-doc To: Bart Van Assche , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel@collabora.com, krisman@collabora.com References: <20190930194846.23141-1-andrealmeid@collabora.com> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= Message-ID: Date: Wed, 2 Oct 2019 18:05:26 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Bart, On 10/2/19 5:27 PM, Bart Van Assche wrote: > On 10/1/19 8:33 PM, Jens Axboe wrote: >> On 9/30/19 1:48 PM, André Almeida wrote: >>> - >>> +/** >>> + * struct blk_mq_ops - list of callback functions for blk-mq drivers >>> + */ >>>    struct blk_mq_ops { >>> -    /* >>> -     * Queue request >>> +    /** >>> +     * @queue_rq: Queue a new request from block IO. >>>         */ >>>        queue_rq_fn        *queue_rq; >>>    -    /* >>> -     * If a driver uses bd->last to judge when to submit requests to >>> -     * hardware, it must define this function. In case of errors that >>> -     * make us stop issuing further requests, this hook serves the >>> +    /** >>> +     * @commit_rqs: If a driver uses bd->last to judge when to submit >>> +     * requests to hardware, it must define this function. In case >>> of errors >>> +     * that make us stop issuing further requests, this hook serves the >>>         * purpose of kicking the hardware (which the last request >>> otherwise >>>         * would have done). >>>         */ >>>        commit_rqs_fn        *commit_rqs; >> >> Stuff like this is MUCH better. Why isn't all of it done like this? > > Hi Jens, > > If you prefer this style you may want to update > Documentation/doc-guide/kernel-doc.rst. I think that document recommends > another style for documenting struct members, maybe because that style > requires less vertical space: The same documentation also suggests that one can use inline comments: In-line member documentation comments ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The structure members may also be documented in-line within the definition. There are two styles, single-line comments where both the opening ``/**`` and closing ``*/`` are on the same line, and multi-line comments where they are each on a line of their own, like all other kernel-doc comments:: /** * struct foo - Brief description. * @foo: The Foo member. */ struct foo { int foo; /** * @bar: The Bar member. */ ... You can also check this here: https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#in-line-member-documentation-comments Thanks, André