1. 30 5月, 2016 20 次提交
  2. 14 5月, 2016 3 次提交
  3. 21 11月, 2015 3 次提交
    • C
      kernel-doc: Fix parsing of DECLARE_BITMAP in struct · b22b5a9e
      Conchúr Navid 提交于
      Some documented structures in the kernel use DECLARE_BITMAP to create
      arrays of unsigned longs to store information using the bitmap functions.
      These have to be replaced with a parsable version for kernel-doc.
      
      For example a simple input like
      
          /**
           * struct something - some test
           * @members: active members
           */
          struct something {
          	DECLARE_BITMAP(members, MAX_MEMBERS);
          };
      
      resulted in parsing warnings like
      
          warning: No description found for parameter 'MAX_MEMBERS)'
          warning: Excess struct/union/enum/typedef member 'members' description in 'something'
      Signed-off-by: NConchúr Navid <conchur@web.de>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      b22b5a9e
    • C
      kernel-doc: Strip #ifdef/#endif in enums · 4468e21e
      Conchúr Navid 提交于
      Some enumerations in the kernel headers use #ifdef to reduce their size
      based on the the configuration. These lines have to be stripped to avoid
      parsing problems.
      
      For example a simple input like
      
          /**
           * enum flags - test flags
           * @flag1: first flag
           * @flag2: second flag
           */
          enum flags {
          	flag1 = BIT(0),
          #ifdef SECOND_FLAG
          	flag2 = BIT(1),
          #endif
          };
      
      resulted in parsing warnings like
      
          warning: Enum value '#ifdef SECOND_FLAG;flag2 = BIT(1)' not described in enum 'flags'
          warning: Enum value '#endif;' not described in enum 'flags'
      Signed-off-by: NConchúr Navid <conchur@web.de>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      4468e21e
    • C
      kernel-doc: Fix stripping of #define in enums · 8a9260aa
      Conchúr Navid 提交于
      The regex to strip single line #define's in enumerations depends on the
      fact that the defines are still stored on separate lines. But the
      surrounding code already removed newlines and replaced them with
      semicolons.
      
      For example a simple input like
      
          /**
           * enum flags - test flags
           * @flag1: first flag
           * @flag2: second flag
           * @flag3: third flag
           * @flag4: fourth flag
           */
          enum flags {
          	flag1 = BIT(0),
          	flag2 = BIT(1),
          #define flags_small (flag1 | flag2)
          	flag3 = BIT(2),
          	flag4 = BIT(3),
          #define flags_big (flag2 | flag3)
          };
      
      resulted in parsing warnings like
      
          warning: Enum value '#define flags_small (flag1 | flag2);flag3 = BIT(2)' not described in enum 'flags'
          warning: Enum value '#define flags_big (flag2 | flag3);' not described in enum 'flags'
      Signed-off-by: NConchúr Navid <conchur@web.de>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      8a9260aa
  4. 18 11月, 2015 1 次提交
  5. 12 10月, 2015 1 次提交
  6. 10 10月, 2015 2 次提交
  7. 14 9月, 2015 3 次提交
  8. 05 9月, 2015 1 次提交
  9. 24 8月, 2015 1 次提交
  10. 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
  11. 11 7月, 2015 2 次提交
  12. 11 12月, 2014 1 次提交
  13. 27 8月, 2014 1 次提交