Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Sep 04, 2018
  2. Aug 30, 2018
  3. Aug 23, 2018
  4. Aug 22, 2018
  5. Aug 21, 2018
  6. Aug 20, 2018
  7. Aug 18, 2018
    • Linus Torvalds's avatar
      deprecate the '__deprecated' attribute warnings entirely and for good · 771c0353
      Linus Torvalds authored
      
      We haven't had lots of deprecation warnings lately, but the rdma use of
      it made them flare up again.
      
      They are not useful.  They annoy everybody, and nobody ever does
      anything about them, because it's always "somebody elses problem".  And
      when people start thinking that warnings are normal, they stop looking
      at them, and the real warnings that mean something go unnoticed.
      
      If you want to get rid of a function, just get rid of it.  Convert every
      user to the new world order.
      
      And if you can't do that, then don't annoy everybody else with your
      marking that says "I couldn't be bothered to fix this, so I'll just spam
      everybody elses build logs with warnings about my laziness".
      
      Make a kernelnewbies wiki page about things that could be cleaned up,
      write a blog post about it, or talk to people on the mailing lists.  But
      don't add warnings to the kernel build about cleanup that you think
      should happen but you aren't doing yourself.
      
      Don't.  Just don't.
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      771c0353
  8. Aug 16, 2018
    • Cong Wang's avatar
      ila: make lockdep happy again · ff93bca7
      Cong Wang authored
      Previously, alloc_ila_locks() and bucket_table_alloc() call
      spin_lock_init() separately, therefore they have two different
      lock names and lock class keys. However, after commit b8932817
      ("ila: Call library function alloc_bucket_locks") they both call
      helper alloc_bucket_spinlocks() which now only has one lock
      name and lock class key. This causes a few bogus lockdep warnings
      as reported by syzbot.
      
      Fix this by making alloc_bucket_locks() a macro and pass declaration
      name as lock name and a static lock class key inside the macro.
      
      Fixes: b8932817
      
       ("ila: Call library function alloc_bucket_locks")
      Reported-by: default avatar <syzbot+b66a5a554991a8ed027c@syzkaller.appspotmail.com>
      Cc: Tom Herbert <tom@quantonium.net>
      Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ff93bca7
  9. Aug 10, 2018
  10. Aug 08, 2018
  11. Aug 07, 2018
  12. Aug 02, 2018
  13. Aug 01, 2018
  14. Jul 30, 2018
  15. Jul 27, 2018
  16. Jul 26, 2018
    • Arnd Bergmann's avatar
      kasan: only select SLUB_DEBUG with SYSFS=y · 03758dbb
      Arnd Bergmann authored
      Building with KASAN and SLUB but without sysfs now results in a
      build-time error:
      
        WARNING: unmet direct dependencies detected for SLUB_DEBUG
          Depends on [n]: SLUB [=y] && SYSFS [=n]
          Selected by [y]:
          - KASAN [=y] && HAVE_ARCH_KASAN [=y] && (SLUB [=y] || SLAB [=n] && !DEBUG_SLAB [=n]) && SLUB [=y]
        mm/slub.c:4565:12: error: 'list_locations' defined but not used [-Werror=unused-function]
         static int list_locations(struct kmem_cache *s, char *buf,
                    ^~~~~~~~~~~~~~
        mm/slub.c:4406:13: error: 'validate_slab_cache' defined but not used [-Werror=unused-function]
         static long validate_slab_cache(struct kmem_cache *s)
      
      This disallows that broken configuration in Kconfig.
      
      Link: http://lkml.kernel.org/r/20180709154019.1693026-1-arnd@arndb.de
      Fixes: dd275caf
      
       ("kasan: depend on CONFIG_SLUB_DEBUG")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Shakeel Butt <shake...
      03758dbb
  17. Jul 23, 2018
  18. Jul 21, 2018
  19. Jul 18, 2018