1. 10 10月, 2015 2 次提交
  2. 05 9月, 2015 1 次提交
  3. 24 8月, 2015 1 次提交
  4. 07 8月, 2015 1 次提交
    • D
      scripts/kernel-doc Allow struct arguments documentation in struct body · a4c6ebed
      Danilo Cesar Lemes de Paula 提交于
      Describing arguments at top of a struct definition works fine
      for small/medium size structs, but it definitely doesn't work well
      for struct with a huge list of elements.
      
      Keeping the arguments list inside the struct body makes it easier
      to maintain the documentation.
      ie:
      /**
       * struct my_struct - short description
       * @a: first member
       * @b: second member
       *
       * Longer description
       */
      struct my_struct {
          int a;
          int b;
          /**
           * @c: This is longer description of C
           *
           * You can use paragraphs to describe arguments
           * using this method.
           */
          int c;
      };
      
      This patch allows the use of this kind of syntax. Only one argument
      per comment and user can use how many paragraphs he needs. It should
      start with /**, which is already being used by kernel-doc. If those
      comment doesn't follow those rules, it will be ignored.
      Signed-off-by: NDanilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Stephan Mueller <smueller@chronox.de>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-doc@vger.kernel.org
      Cc: intel-gfx <intel-gfx@lists.freedesktop.org>
      Cc: dri-devel <dri-devel@lists.freedesktop.org>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      a4c6ebed
  5. 11 7月, 2015 2 次提交
  6. 11 12月, 2014 1 次提交
  7. 27 8月, 2014 1 次提交
  8. 13 7月, 2014 1 次提交
  9. 02 12月, 2013 1 次提交
  10. 13 11月, 2013 1 次提交
  11. 07 11月, 2013 1 次提交
  12. 28 2月, 2013 1 次提交
    • N
      scripts/kernel-doc: handle struct member __aligned without numbers · 9dc30918
      Nishanth Menon 提交于
      Commit ef5da59f ("scripts/kernel-doc: handle struct member
      __aligned") permits "char something [123] __aligned(8);".
      
      However, by using \d we constraint ourselves with integers.  This is not
      always the case.  In fact, it might be better to do char something[123]
      __aligned(sizeof(u16));
      
      For example, With wireless_dev defining:
      
          u8 address[ETH_ALEN] __aligned(sizeof(u16));
      
      With \d, scripts/kernel-doc erroneously says:
      
          Warning(include/net/cfg80211.h:2618): Excess struct/union/enum/typedef member 'address' description in 'wireless_dev'
      
      This is because the regex __aligned\s*\(\d+\) fails match at \d as
      sizeof is used.
      
      So replace \d with .  to indicate "something" in kernel-doc to ignore
      __aligned(SOMETHING) in structs.  With this change, we can use integers
      OR sizeof() or macros as we please.
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Cc: Fengguang Wu <fengguang.wu@intel.com>
      Cc: Johannes Berg <johannes.berg@intel.com>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Michal Marek <mmarek@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9dc30918
  13. 04 1月, 2013 1 次提交
    • G
      misc: remove __dev* attributes. · 6ae14171
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the last of the __dev* markings from the kernel from
      a variety of different, tiny, places.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6ae14171
  14. 06 12月, 2012 1 次提交
  15. 28 11月, 2012 1 次提交
  16. 06 10月, 2012 3 次提交
    • D
      kernel-doc: don't mangle whitespace in Example section · 12ae6779
      Daniel Santos 提交于
      A section with the name "Example" (case-insensitive) has a special meaning
      to kernel-doc.  These sections are output using mono-type fonts.  However,
      leading whitespace is stripped, thus robbing a lot of meaning from this,
      as indented code examples will be mangled.
      
      This patch preserves the leading whitespace for "Example" sections.  More
      accurately, it preserves it for all sections, but removes it later if the
      section isn't an "Example" section.
      Signed-off-by: NDaniel Santos <daniel.santos@pobox.com>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Michal Marek <mmarek@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      12ae6779
    • D
      kernel-doc: bugfix - empty line in Example section · e314ba31
      Daniel Santos 提交于
      If you have a section named "Example" that contains an empty line,
      attempting to generate htmldocs give you the error:
      
      /path/Documentation/DocBook/kernel-api.xml:3455: parser error : Opening and ending tag mismatch: programlisting line 3449 and para
         </para><para>
                ^
      /path/Documentation/DocBook/kernel-api.xml:3473: parser error : Opening and ending tag mismatch: para line 3467 and programlisting
      </programlisting></informalexample>
                       ^
      /path/Documentation/DocBook/kernel-api.xml:3678: parser error : Opening and ending tag mismatch: programlisting line 3672 and para
         </para><para>
                ^
      /path/Documentation/DocBook/kernel-api.xml:3701: parser error : Opening and ending tag mismatch: para line 3690 and programlisting
      </programlisting></informalexample>
                       ^
      unable to parse
      /path/Documentation/DocBook/kernel-api.xml
      
      Essentially, the script attempts to close a <programlisting> with a
      closing tag for a <para> block.  This patch corrects the problem by
      simply not outputting anything extra when we're dumping pre-formatted
      text, since the empty line will be rendered correctly anyway.
      Signed-off-by: NDaniel Santos <daniel.santos@pobox.com>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Michal Marek <mmarek@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e314ba31
    • D
      kernel-doc: bugfix - multi-line macros · 65478428
      Daniel Santos 提交于
      Prior to this patch the following code breaks:
      
      /**
       * multiline_example - this breaks kernel-doc
       */
       #define multiline_example( \
      myparam)
      
      Producing this error:
      
      Error(somefile.h:983): cannot understand prototype: 'multiline_example( \ '
      
      This patch fixes the issue by appending all lines ending in a blackslash
      (optionally followed by whitespace), removing the backslash and any
      whitespace after it prior to appending (just like the C pre-processor
      would).
      
      This fixes a break in kerel-doc introduced by the additions to rbtree.h.
      Signed-off-by: NDaniel Santos <daniel.santos@pobox.com>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Michal Marek <mmarek@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      65478428
  17. 31 8月, 2012 1 次提交
  18. 18 8月, 2012 1 次提交
  19. 24 1月, 2012 1 次提交
  20. 31 3月, 2011 1 次提交
  21. 07 1月, 2011 1 次提交
    • R
      kernel-doc: code reorganization · 8484baaa
      Randy Dunlap 提交于
      Move 'main' code vs. subroutines around so that they are not so
      intermixed, for better readability/understanding (relative to Perl).
      It was messy to follow the primary flow of code execution with the
      code being mixed.  Now the code begins with data initialization,
      followed by all subroutines, then ends with the main code execution.
      
      This is almost totally source code movement, with a few changes as
      needed for forward declarations.
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8484baaa
  22. 19 11月, 2010 1 次提交
    • R
      kernel-doc: escape xml for structs · 2b35f4d9
      Randy Dunlap 提交于
      scripts/kernel-doc was leaving unescaped '<', '>', and '&' in
      generated xml output for structs.  This causes xml parser errors.
      Convert these characters to "&lt;", "&gt;", and "&amp;" as needed
      to prevent errors.
      
      Most of the conversion was already done; complete it just before
      output.
      
      Documentation/DocBook/device-drivers.xml:41883: parser error : StartTag: invalid element name
      #define INPUT_KEYMAP_BY_INDEX	(1 << 0)
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2b35f4d9
  23. 12 9月, 2010 2 次提交
  24. 11 8月, 2010 2 次提交
    • R
      mtd/nand_base: fix kernel-doc warnings & typos · b6d676db
      Randy Dunlap 提交于
      Fix mtd/nand_base.c kernel-doc warnings and typos.
      
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'mtd'
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'ofs'
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'len'
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'invert'
      Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'mtd'
      Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'ofs'
      Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'len'
      Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'mtd'
      Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'ofs'
      Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'len'
      Warning(drivers/mtd/nand/nand_base.c:2087): No description found for parameter 'len'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b6d676db
    • R
      mtd/nand_base: fix kernel-doc warnings & typos · db9ebb7c
      Randy Dunlap 提交于
      Fix mtd/nand_base.c kernel-doc warnings and typos.
      
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'mtd'
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'ofs'
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'len'
      Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'invert'
      Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'mtd'
      Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'ofs'
      Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'len'
      Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'mtd'
      Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'ofs'
      Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'len'
      Warning(drivers/mtd/nand/nand_base.c:2087): No description found for parameter 'len'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      db9ebb7c
  25. 25 3月, 2010 2 次提交
  26. 13 3月, 2010 1 次提交
  27. 27 2月, 2010 2 次提交
  28. 02 12月, 2009 1 次提交
    • J
      tracing: Add DEFINE_EVENT(), DEFINE_SINGLE_EVENT() support to docbook · 3a9089fd
      Jason Baron 提交于
      The introduction of the new 'DECLARE_EVENT_CLASS()' obviates the
      need for the 'TRACE_EVENT()' macro in some cases. Thus, docbook
      style comments that used to live with 'TRACE_EVENT()' are now
      moved to 'DEFINE_EVENT()'. Thus, we need to make the docbook
      system understand the new 'DEFINE_EVENT()' macro. In addition
      I've tried to futureproof the patch, by also adding support for
      'DEFINE_SINGLE_EVENT()', since there has been discussion about
      renaming: TRACE_EVENT() -> DEFINE_SINGLE_EVENT().
      
      Without this patch the tracepoint docbook fails to build.
      
      I've verified that this patch correctly builds the tracepoint
      docbook which currently covers signals, and irqs.
      
      Changes in v2:
       - properly indent perl 'if' statements
      Signed-off-by: NJason Baron <jbaron@redhat.com>
      Acked-by: NSteven Rostedt <rostedt@goodmis.org>
      Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: William Cohen <wcohen@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Masami Hiramatsu <mhiramat@redhat.com>
      LKML-Reference: <200912011718.nB1HIn7t011371@int-mx04.intmail.prod.int.phx2.redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      3a9089fd
  29. 19 9月, 2009 1 次提交
  30. 02 7月, 2009 1 次提交
  31. 20 6月, 2009 2 次提交