[linux-next:master 5068/5074] mm/kasan/common.c:89:14: warning: no previous prototype for '__kasan_never_merge'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3e14f70c05cda4794901ed8f976de3a88deebcc0
commit: 622c9ff2b804a1de896e757f8fe3a71fcef2941b [5068/5074] kasan, mm: allow cache merging with no metadata
config: riscv-randconfig-p001-20201111 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=622c9ff2b804a1de896e757f8fe3a71fcef2941b
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 622c9ff2b804a1de896e757f8fe3a71fcef2941b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from include/linux/kasan.h:15,
                    from mm/kasan/common.c:14:
   arch/riscv/include/asm/kasan.h:21:11: error: expected ';' before 'void'
      21 | asmlinkage void kasan_early_init(void);
         |           ^~~~~
         |           ;
>> mm/kasan/common.c:89:14: warning: no previous prototype for '__kasan_never_merge' [-Wmissing-prototypes]
      89 | slab_flags_t __kasan_never_merge(slab_flags_t flags)
         |              ^~~~~~~~~~~~~~~~~~~

vim +/__kasan_never_merge +89 mm/kasan/common.c

    84	
    85	/*
    86	 * Only allow cache merging when stack collection is disabled and no metadata
    87	 * is present.
    88	 */
  > 89	slab_flags_t __kasan_never_merge(slab_flags_t flags)
    90	{
    91		if (kasan_stack_collection_enabled())
    92			return flags;
    93		return flags & ~SLAB_KASAN;
    94	}
    95	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


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

  Powered by Linux