lkml.org 
[lkml]   [2019]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC PATCH] mm, slab_common: all_kmalloc_info[] can be static

    Fixes: 95f3b3d20e9b ("mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE")
    Signed-off-by: kbuild test robot <lkp@intel.com>
    ---
    slab_common.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/mm/slab_common.c b/mm/slab_common.c
    index 2aed30deb0714..bf1cf4ba35f86 100644
    --- a/mm/slab_common.c
    +++ b/mm/slab_common.c
    @@ -1118,7 +1118,7 @@ struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
    * time. kmalloc_index() supports up to 2^26=64MB, so the final entry of the
    * table is kmalloc-67108864.
    */
    -const struct kmalloc_info_struct all_kmalloc_info[] __initconst = {
    +static const struct kmalloc_info_struct all_kmalloc_info[] __initconst = {
    SET_KMALLOC_SIZE( 8, 8), SET_KMALLOC_SIZE( 16, 16),
    SET_KMALLOC_SIZE( 32, 32), SET_KMALLOC_SIZE( 64, 64),
    #if KMALLOC_SIZE_96_EXIST == 1
    \
     
     \ /
      Last update: 2019-09-16 06:55    [W:4.113 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site