1. 30 5月, 2016 12 次提交
  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 次提交
  14. 13 7月, 2014 1 次提交
  15. 02 12月, 2013 1 次提交
  16. 13 11月, 2013 1 次提交
  17. 07 11月, 2013 1 次提交
  18. 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
  19. 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
  20. 06 12月, 2012 1 次提交
  21. 28 11月, 2012 1 次提交