Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7779699rwl; Tue, 10 Jan 2023 05:25:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXt35AZIq3L30906TefswseFpXuamqTzKvR6VTAQNjuSxFIKjRnKTT2xMelHEdqljqrZl/Mo X-Received: by 2002:a05:6402:26d5:b0:495:d3fb:a244 with SMTP id x21-20020a05640226d500b00495d3fba244mr18295381edd.3.1673357147326; Tue, 10 Jan 2023 05:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673357147; cv=none; d=google.com; s=arc-20160816; b=zsGwF0nVvCwXT4AQU3mqBUTpsUKnzI8YKLsgVTcl/NOb3XYR0JjfmsWjBBfNTTsIFS CagpPx8VHPnJAooSHfz5V+Wl85VxIH9f8bZXxGAsYIXaVDvG7al/yFz9/fyA8hGQbhls df4SrXU0AWkq+gswN9+CFMdVtssIIR7BTuzEN4WoD9dn7eyc2ZXRF93Lub9nKLxQFzm3 RmRCol8JeMVjEue0SfK+EzxLLnjAMMczGWfN5uLNkXjAemGlbICq18Hp4vsXujaGTDtF 9h0G/WGAb+UKSXdisz19L4aEzNy2zWFLkrd0Xkem1aqdzREJdSJJvtRo7AhY6K8H6MO/ +mIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=4ehCFwkoEkiw+WDml9IeFtgWOApI2Gi6ZWXqobEfgyQ=; b=ccCfx6bV8P5N5FEessVAITsxXnNr41SkBFDP5wyAcrNFJePTJLfHuSgLYtIxzKdvQb JcJBHgkqzDJ34KPXO5Z/FG7qJKe8tf4oNjRUIhN4XXAnlUPQUCkkI1QzfiltzZEDbWuA C/mjN25QaTcEAxvTCiTk48OZEFxkqJxCErmlTBAb4S4nR9eWe/HwXf0suqRETbT+Opr6 Q/aeB2qJsWMm6MjjtiKADuJVgr4TjA3sSiJXszhsW02rasBBXDaFX7ljuSEieomr3rrx Hp0/O2V6trgWLOozGRzAgIEEJhsdlhD9vER6doq1xcw8MtRTN884EG15DteafHkx+Nat tr8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tiscali.it header.s=smtp header.b=q1xJBbZF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tiscali.it Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb44-20020a170907162c00b0084d4707b50bsi5867215ejc.698.2023.01.10.05.25.33; Tue, 10 Jan 2023 05:25:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tiscali.it header.s=smtp header.b=q1xJBbZF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tiscali.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231948AbjAJNVq (ORCPT + 53 others); Tue, 10 Jan 2023 08:21:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232356AbjAJNVo (ORCPT ); Tue, 10 Jan 2023 08:21:44 -0500 Received: from smtp.tiscali.it (michael-notr.mail.tiscali.it [213.205.33.216]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9A4F7BF1 for ; Tue, 10 Jan 2023 05:21:41 -0800 (PST) Received: from localhost.localdomain ([87.5.164.230]) by michael.mail.tiscali.it with id 71Md2900Y4yaPbr011Mdwr; Tue, 10 Jan 2023 13:21:39 +0000 X-Spam-Final-Verdict: clean X-Spam-State: 0 X-Spam-Score: -100 X-Spam-Verdict: clean x-auth-user: fantonifabio@tiscali.it From: Fabio Fantoni To: corbet@lwn.net Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Fabio Fantoni , Sergei Shtepa Subject: [PATCH v2] documentation: fix Generic Block Device Capability Date: Tue, 10 Jan 2023 14:21:04 +0100 Message-Id: <20230110132104.12499-1-fantonifabio@tiscali.it> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tiscali.it; s=smtp; t=1673356899; bh=4ehCFwkoEkiw+WDml9IeFtgWOApI2Gi6ZWXqobEfgyQ=; h=From:To:Cc:Subject:Date; b=q1xJBbZFMLttacksgnTnc2YciRmj6wfcF3zNX1dOzH8rIdh24kiBImpgcCngxdLwx MvaV0gUI3qgOXxFCDikHeh2InMu9Y9Jgr8Ix33bMF0SpV0jvwNp6Mo6K22AkidWo3k AHF4nNcDDOXIpaCmnEswC3/E6jEsGASr/+LYxqgg= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While adding documentation for blkfilter, new lines of documentation was added in the file include/linux/blkdev.h. Sergei Shtepa spotted that this changed Documentation/block/capability.rst output. Checking the documentation of previous versions, for example https://www.kernel.org/doc/html/v5.10/block/capability.html I also saw that the output of recent versions was already "broken" before. This patch restore the output only relate to generic block device capability and also added the hexadecimal values that was removed from doc comment in commit 430cc5d (block: cleanup the GENHD_FL_* definitions). This will make this documentation page return to "documents the sysfs file block//capability" including the printed value in hexadecimal. Co-developed-by: Sergei Shtepa Signed-off-by: Sergei Shtepa Signed-off-by: Fabio Fantoni --- Note: v1 was included in blksnap v2 serie Changes from v1: - Documentation/block/capability.rst: removed other blkdev.h functions and keep only ":DOC: genhd capability flags" - added changes of include/linux/blkdev.h Documentation/block/capability.rst | 1 + include/linux/blkdev.h | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/block/capability.rst b/Documentation/block/capability.rst index 2ae7f064736a..e5d58e0d81ba 100644 --- a/Documentation/block/capability.rst +++ b/Documentation/block/capability.rst @@ -8,3 +8,4 @@ This file documents the sysfs file ``block//capability``. capabilities a specific block device supports: .. kernel-doc:: include/linux/blkdev.h + :DOC: genhd capability flags diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 43d4e073b111..71ca547ab19f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -74,16 +74,16 @@ struct partition_meta_info { /** * DOC: genhd capability flags * - * ``GENHD_FL_REMOVABLE``: indicates that the block device gives access to + * ``GENHD_FL_REMOVABLE`` (0x01): indicates that the block device gives access to * removable media. When set, the device remains present even when media is not * inserted. Shall not be set for devices which are removed entirely when the * media is removed. * - * ``GENHD_FL_HIDDEN``: the block device is hidden; it doesn't produce events, - * doesn't appear in sysfs, and can't be opened from userspace or using - * blkdev_get*. Used for the underlying components of multipath devices. + * ``GENHD_FL_HIDDEN`` (0x02): the block device is hidden; it doesn't produce + * events, doesn't appear in sysfs, and can't be opened from userspace or + * using blkdev_get*. Used for the underlying components of multipath devices. * - * ``GENHD_FL_NO_PART``: partition support is disabled. The kernel will not + * ``GENHD_FL_NO_PART`` (0x04): partition support is disabled. The kernel will not * scan for partitions from add_disk, and users can't add partitions manually. * */ -- 2.25.1