16 Apr, 2020

1 commit

  • If execute ./scripts/documentation-file-ref-check in a directory which is
    not a git tree, it will exit without a line break, fix it.

    Without this patch:

    [loongson@localhost linux-5.7-rc1]$ ./scripts/documentation-file-ref-check
    Warning: can't check if file exists, as this is not a git tree[loongson@localhost linux-5.7-rc1]$

    With this patch:

    [loongson@localhost linux-5.7-rc1]$ ./scripts/documentation-file-ref-check
    Warning: can't check if file exists, as this is not a git tree
    [loongson@localhost linux-5.7-rc1]$

    Signed-off-by: Tiezhu Yang
    Reviewed-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/1586857308-2040-1-git-send-email-yangtiezhu@loongson.cn
    Signed-off-by: Jonathan Corbet

    Tiezhu Yang
     

03 Apr, 2020

1 commit

  • Pull SCSI updates from James Bottomley:
    "This series has a huge amount of churn because it pulls in Mauro's doc
    update changing all our txt files to rst ones.

    Excluding that, we have the usual driver updates (qla2xxx, ufs, lpfc,
    zfcp, ibmvfc, pm80xx, aacraid), a treewide update for scnprintf and
    some other minor updates.

    The major core change is Hannes moving functions out of the aacraid
    driver and into the core"

    * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (223 commits)
    scsi: aic7xxx: aic97xx: Remove FreeBSD-specific code
    scsi: ufs: Do not rely on prefetched data
    scsi: dc395x: remove dc395x_bios_param
    scsi: libiscsi: Fix error count for active session
    scsi: hpsa: correct race condition in offload enabled
    scsi: message: fusion: Replace zero-length array with flexible-array member
    scsi: qedi: Add PCI shutdown handler support
    scsi: qedi: Add MFW error recovery process
    scsi: ufs: Enable block layer runtime PM for well-known logical units
    scsi: ufs-qcom: Override devfreq parameters
    scsi: ufshcd: Let vendor override devfreq parameters
    scsi: ufshcd: Update the set frequency to devfreq
    scsi: ufs: Resume ufs host before accessing ufs device
    scsi: ufs-mediatek: customize the delay for enabling host
    scsi: ufs: make HCE polling more compact to improve initialization latency
    scsi: ufs: allow custom delay prior to host enabling
    scsi: ufs-mediatek: use common delay function
    scsi: ufs: introduce common and flexible delay function
    scsi: ufs: use an enum for host capabilities
    scsi: ufs: fix uninitialized tx_lanes in ufshcd_disable_tx_lcc()
    ...

    Linus Torvalds
     

12 Mar, 2020

1 commit


25 Feb, 2020

1 commit

  • There are some issues at the script with regards to :doc:
    tags:

    - It doesn't escape files under Documentation/sphinx,
    leading to false positives;
    - It doesn't handle root URLs, like :doc:`/x86/boot`;
    - It doesn't output the file with a bad reference.

    Address those things, in order to remove false positives
    from the list of problems.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

15 Jun, 2019

2 commits

  • When there's no Documentation/output directory, the script will
    complain about those missing references:

    Documentation/doc-guide/sphinx.rst: Documentation/output
    Documentation/doc-guide/sphinx.rst: Documentation/output
    Documentation/process/howto.rst: Documentation/output
    Documentation/translations/it_IT/doc-guide/sphinx.rst: Documentation/output
    Documentation/translations/it_IT/doc-guide/sphinx.rst: Documentation/output
    Documentation/translations/it_IT/process/howto.rst: Documentation/output
    Documentation/translations/ja_JP/howto.rst: Documentation/output
    Documentation/translations/ko_KR/howto.rst: Documentation/output

    Those are false positives, so add an ignore rule for them.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     
  • Convert the TCM docs to ReST format and add them to the
    bookset.

    This has a mix of userspace-faced and Kernelspace faced
    docs. Still, it sounds a better candidate to be added at
    the kernel API set of docs.

    The conversion is actually:
    - add blank lines and identation in order to identify paragraphs;
    - fix tables markups;
    - add some lists markups;
    - mark literal blocks;
    - adjust title markups.

    At its new index.rst, let's add a :orphan: while this is not linked to
    the main index.rst file, in order to avoid build warnings.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

08 Jun, 2019

1 commit


31 May, 2019

4 commits


03 May, 2019

2 commits


03 Jul, 2018

2 commits

  • When Documentation/scheduler/sched-pelt.c is compiled, it generates
    a file called Documentation/scheduler/sched-pelt. As this only
    exists after building such tool, we need an explict check
    to remove the false-positive.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     
  • There are several false positives at tcm_mod_builder.txt:

    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_base.h
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../include/target/target_core_fabric_ops.h
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.c
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.h
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_configfs.c
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/Kbuild
    Documentation/target/tcm_mod_builder.txt: mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/Kconfig

    Ignore them.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

16 Jun, 2018

6 commits


11 May, 2018

1 commit

  • The original shell script works, but:
    1) it is too slow;
    2) it is hard to exclude rejex patterns

    Convert it to perl.

    Here, the new version is able to check the entire tree in
    less than a second (after cached):

    real 0m0,284s
    user 0m0,668s
    sys 0m0,778s

    The old version takes more than a minute to complete (also
    after cached):
    real 1m17,905s
    user 0m25,583s
    sys 0m55,334s

    It also produce less false-positives (if any).

    The new script also contains an auto-fix mode.

    Usually, file references get lost when they're moved to some other
    place and/or renamed to .rst.

    Add an experimental mode to auto-fix those.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

13 Oct, 2017

1 commit

  • Add a simple script and build target to do a treewide grep for
    references to files under Documentation, and report the non-existing
    file in stderr. It tries to take into account punctuation not part of
    the filename, and wildcards, but there are bound to be false positives
    too. Mostly seems accurate though.

    We've moved files around enough to make having this worthwhile.

    Signed-off-by: Jani Nikula
    Signed-off-by: Jonathan Corbet

    Jani Nikula