1. 07 Jan, 2022 2 commits
    • Christian Löhle's avatar
      Documentation: kgdb: Replace deprecated remotebaud · 689d8014
      Christian Löhle authored
      Using set remotebaud to set the baud rate was deprecated in
      gdb-7.7 and completely removed from the command parser in gdb-7.8
      (released in 2014). Adopt set serial baud instead.
      Signed-off-by: default avatarChristian Loehle <cloehle@hyperstone.com>
      Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
      Link: https://lore.kernel.org/r/4050689967ed46baaa3bfadda53a0e73@hyperstone.comSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      689d8014
    • James Clark's avatar
      docs: automarkup.py: Fix invalid HTML link output and broken URI fragments · 7cc4c092
      James Clark authored
      Since commit d18b0178 ("docs: Add automatic cross-reference for
      documentation pages"), references that were already explicitly defined
      with "ref:" and referred to other pages with a path have been doubled.
      This is reported as the following error by Firefox:
      
        Start tag "a" seen but an element of the same type was already open.
        End tag "a" violates nesting rules.
      
      As well as the invalid HTML, this also obscures the URI fragment links
      to subsections because the second link overrides the first. For example
      on the page admin-guide/hw-vuln/mds.html the last link should be to the
      "Default Mitigations" subsection using a # URI fragment:
      
        admin-guide/hw-vuln/l1tf.html#default-mitigations
      
      But it is obsured by a second link to the whole page:
      
        admin-guide/hw-vuln/l1tf.html
      
      The full HTML with the double <a> tags looks like this:
      
        <a class="reference internal" href="l1tf.html#default-mitigations">
          <span class="std std-ref">
            <a class="reference internal" href="l1tf.html">
              <span class="doc">L1TF - L1 Terminal Fault</span>
            </a>
          </span>
        </a>
      
      After this commit, there is only a single link:
      
        <a class="reference internal" href="l1tf.html#default-mitigations">
          <span class="std std-ref">Documentation/admin-guide/hw-vuln//l1tf.rst</span>
        </a>
      
      Now that the second link is removed, the browser correctly jumps to the
      default-mitigations subsection when clicking the link.
      
      The fix is to check that nodes in the document to be modified are not
      already references. A reference is counted as any text that is a
      descendant of a reference type node. Only plain text should be converted
      to new references, otherwise the doubling occurs.
      
      Testing
      =======
      
       * Test that the build stdout is the same (ignoring ordering), and that
         no new warnings are printed.
      
       * Diff all .html files and check that the only modifications occur
         to the bad double links.
      
       * The auto linking of bare references to pages without "ref:" is still
         working.
      
      Fixes: d18b0178 ("docs: Add automatic cross-reference for documentation pages")
      Reviewed-by: default avatarNícolas F. R. A. Prado <n@nfraprado.net>
      Signed-off-by: default avatarJames Clark <james.clark@arm.com>
      Link: https://lore.kernel.org/r/20220105143640.330602-2-james.clark@arm.comSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      7cc4c092
  2. 03 Jan, 2022 4 commits
  3. 23 Dec, 2021 11 commits
  4. 16 Dec, 2021 9 commits
  5. 10 Dec, 2021 11 commits
  6. 06 Dec, 2021 3 commits