Skip to content
  1. Nov 07, 2011
  2. Nov 04, 2011
  3. Nov 02, 2011
  4. Nov 01, 2011
    • Linus Torvalds's avatar
      Merge branch 'akpm' (Andrew's incoming) · 094803e0
      Linus Torvalds authored
      Quoth Andrew:
      
       - Most of MM.  Still waiting for the poweroc guys to get off their
         butts and review some threaded hugepages patches.
      
       - alpha
      
       - vfs bits
      
       - drivers/misc
      
       - a few core kerenl tweaks
      
       - printk() features
      
       - MAINTAINERS updates
      
       - backlight merge
      
       - leds merge
      
       - various lib/ updates
      
       - checkpatch updates
      
      * akpm: (127 commits)
        epoll: fix spurious lockdep warnings
        checkpatch: add a --strict check for utf-8 in commit logs
        kernel.h/checkpatch: mark strict_strto<foo> and simple_strto<foo> as obsolete
        llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
        wireless: at76c50x: follow rename pack_hex_byte to hex_byte_pack
        fat: follow rename pack_hex_byte() to hex_byte_pack()
        security: follow rename pack_hex_byte() to hex_byte_pack()
        kgdb: follow rename pack_hex_byte() to hex_byte_pack()
        lib: rename pack_hex_byte() to hex_byte_pack()
        lib/string.c: fix strim() semantics for strings that have only blanks
        lib/idr.c: fix comment for ida_get_new_above()
        lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef
        lib/bitmap.c: quiet sparse noise about address space
        lib/spinlock_debug.c: print owner on spinlock lockup
        lib/kstrtox: common code between kstrto*() and simple_strto*() functions
        drivers/leds/leds-lp5521.c: check if reset is successful
        leds: turn the blink_timer off before starting to blink
        leds: save the delay values after a successful call to blink_set()
        drivers/leds/leds-gpio.c: use gpio_get_value_cansleep() when initializing
        drivers/leds/leds-lm3530.c: add __devexit_p where needed
        ...
      094803e0
    • Nelson Elhage's avatar
      epoll: fix spurious lockdep warnings · d8805e63
      Nelson Elhage authored
      
      
      epoll can acquire recursively acquire ep->mtx on multiple "struct
      eventpoll"s at once in the case where one epoll fd is monitoring another
      epoll fd.  This is perfectly OK, since we're careful about the lock
      ordering, but it causes spurious lockdep warnings.  Annotate the recursion
      using mutex_lock_nested, and add a comment explaining the nesting rules
      for good measure.
      
      Recent versions of systemd are triggering this, and it can also be
      demonstrated with the following trivial test program:
      
      --------------------8<--------------------
      
      int main(void) {
         int e1, e2;
         struct epoll_event evt = {
             .events = EPOLLIN
         };
      
         e1 = epoll_create1(0);
         e2 = epoll_create1(0);
         epoll_ctl(e1, EPOLL_CTL_ADD, e2, &evt);
         return 0;
      }
      --------------------8<--------------------
      
      Reported-by: default avatarPaul Bolle <pebolle@tiscali.nl>
      Tested-by: default avatarPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: default avatarNelson Elhage <nelhage@nelhage.com>
      Acked-by: default avatarJason Baron <jbaron@redhat.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Davide Libenzi <davidel@xmailserver.org>
      Cc: <stable@kernel.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d8805e63
    • Joe Perches's avatar
      checkpatch: add a --strict check for utf-8 in commit logs · 15662b3e
      Joe Perches authored
      
      
      Some find using utf-8 in commit logs inappropriate.
      
      Some patch commit logs contain unintended utf-8 characters when doing
      things like copy/pasting compilation output.
      
      Look for the start of any commit log by skipping initial lines that look
      like email headers and "From: " lines.
      
      Stop looking for utf-8 at the first signature line.
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Suggested-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Cc: Andy Whitcroft <apw@shadowen.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      15662b3e
    • Joe Perches's avatar
      kernel.h/checkpatch: mark strict_strto<foo> and simple_strto<foo> as obsolete · 67d0a075
      Joe Perches authored
      
      
      Mark obsolete/deprecated strict_strto<foo> and simple_strto<foo> functions
      and macros as obsolete.
      
      Update checkpatch to warn about their use.
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      67d0a075
    • Andrew Morton's avatar
      llist-return-whether-list-is-empty-before-adding-in-llist_add-fix · fc23af34
      Andrew Morton authored
      
      
      clarify comment
      
      Cc: Huang Ying <ying.huang@intel.com>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fc23af34