Skip to content
Snippets Groups Projects
  1. Sep 12, 2022
  2. Apr 16, 2021
    • Randy Dunlap's avatar
      lib: remove "expecting prototype" kernel-doc warnings · c95c2d32
      Randy Dunlap authored
      Fix various kernel-doc warnings in lib/ due to missing or erroneous
      function names.
      
      Add kernel-doc for some function parameters that was missing.  Use
      kernel-doc "Return:" notation in earlycpio.c.
      
      Quietens the following warnings:
      
        lib/earlycpio.c:61: warning: expecting prototype for cpio_data find_cpio_data(). Prototype was for find_cpio_data() instead
      
        lib/lru_cache.c:640: warning: expecting prototype for lc_dump(). Prototype was for lc_seq_dump_details() instead
        lru_cache.c:90: warning: Function parameter or member 'cache' not described in 'lc_create'
      
        lib/parman.c:368: warning: expecting prototype for parman_item_del(). Prototype was for parman_item_remove() instead
        parman.c:309: warning: Excess function parameter 'prority' description in 'parman_prio_init'
      
        lib/radix-tree.c:703: warning: expecting prototype for __radix_tree_insert(). Prototype was for radix_tree_insert() instead
        radix-tree.c:180: warning: Excess function parameter 'addr' description in 'radix_tree_find_next_bit'
        radix-tree.c:180: warning: Excess function parameter 'size' description in 'radix_tree_find_next_bit'
        radix-tree.c:931: warning: Function parameter or member 'iter' not described in 'radix_tree_iter_replace'
      
      Link: https://lkml.kernel.org/r/20210411221756.15461-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Philipp Reisner <philipp.reisner@linbit.com>
      Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
      Cc: Jiri Pirko <jiri@nvidia.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c95c2d32
  3. Oct 16, 2020
  4. Jun 05, 2019
  5. Jun 08, 2016
  6. Aug 14, 2013
  7. Jul 14, 2013
    • Paul Gortmaker's avatar
      kernel: delete __cpuinit usage from all core kernel files · 0db0628d
      Paul Gortmaker authored
      The __cpuinit type of throwaway sections might have made sense
      some time ago when RAM was more constrained, but now the savings
      do not offset the cost and complications.  For example, the fix in
      commit 5e427ec2 ("x86: Fix bit corruption at CPU resume time")
      is a good example of the nasty type of bugs that can be created
      with improper use of the various __init prefixes.
      
      After a discussion on LKML[1] it was decided that cpuinit should go
      the way of devinit and be phased out.  Once all the users are gone,
      we can then finally remove the macros themselves from linux/init.h.
      
      This removes all the uses of the __cpuinit macros from C files in
      the core kernel directories (kernel, init, lib, mm, and include)
      that don't really have a specific maintainer.
      
      [1] https://lkml.org/lkml/2013/5/20/589
      
      
      
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      0db0628d
  8. Oct 01, 2012
Loading