Re: [PATCH v3 3/7] mm, kasan: Added GFP flags to KASAN API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexander,

[auto build test ERROR on tip/x86/core]
[also build test ERROR on v4.5-rc5]
[cannot apply to next-20160226]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Alexander-Potapenko/SLAB-support-for-KASAN/20160226-213301
config: alpha-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All errors (new ones prefixed by >>):

   In file included from lib/parser.c:12:0:
   include/linux/slab.h: In function 'kmem_cache_alloc_trace':
>> include/linux/slab.h:370:2: error: too few arguments to function 'kasan_kmalloc'
     kasan_kmalloc(s, ret, size);
     ^
   In file included from include/linux/slab.h:118:0,
                    from lib/parser.c:12:
   include/linux/kasan.h:97:20: note: declared here
    static inline void kasan_kmalloc(struct kmem_cache *s, const void *object,
                       ^
   In file included from lib/parser.c:12:0:
   include/linux/slab.h: In function 'kmem_cache_alloc_node_trace':
   include/linux/slab.h:381:2: error: too few arguments to function 'kasan_kmalloc'
     kasan_kmalloc(s, ret, size);
     ^
   In file included from include/linux/slab.h:118:0,
                    from lib/parser.c:12:
   include/linux/kasan.h:97:20: note: declared here
    static inline void kasan_kmalloc(struct kmem_cache *s, const void *object,
                       ^

vim +/kasan_kmalloc +370 include/linux/slab.h

f1b6eb6e6 Christoph Lameter 2013-09-04  364  #else /* CONFIG_TRACING */
f1b6eb6e6 Christoph Lameter 2013-09-04  365  static __always_inline void *kmem_cache_alloc_trace(struct kmem_cache *s,
f1b6eb6e6 Christoph Lameter 2013-09-04  366  		gfp_t flags, size_t size)
f1b6eb6e6 Christoph Lameter 2013-09-04  367  {
0316bec22 Andrey Ryabinin   2015-02-13  368  	void *ret = kmem_cache_alloc(s, flags);
0316bec22 Andrey Ryabinin   2015-02-13  369  
0316bec22 Andrey Ryabinin   2015-02-13 @370  	kasan_kmalloc(s, ret, size);
0316bec22 Andrey Ryabinin   2015-02-13  371  	return ret;
f1b6eb6e6 Christoph Lameter 2013-09-04  372  }
f1b6eb6e6 Christoph Lameter 2013-09-04  373  

:::::: The code at line 370 was first introduced by commit
:::::: 0316bec22ec95ea2faca6406437b0b5950553b7c mm: slub: add kernel address sanitizer support for slub allocator

:::::: TO: Andrey Ryabinin <a.ryabinin@xxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]