[mmotm:master 123/250] fs/dcache.c:278:22: error: implicit declaration of function 'kmalloc_index'

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   37ec9d8b887635603a859a06aa0406342b1068d8
commit: 364404b4416a52a9991414b2183f85afb42a5fe8 [123/250] dcache: account external names as indirectly reclaimable memory
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 364404b4416a52a9991414b2183f85afb42a5fe8
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

   fs/dcache.c: In function '__d_free_external':
>> fs/dcache.c:278:22: error: implicit declaration of function 'kmalloc_index' [-Werror=implicit-function-declaration]
           -kmalloc_size(kmalloc_index(bytes)));
                         ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/kmalloc_index +278 fs/dcache.c

   268	
   269	static void __d_free_external(struct rcu_head *head)
   270	{
   271		struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu);
   272		struct external_name *name = external_name(dentry);
   273		unsigned long bytes;
   274	
   275		bytes = dentry->d_name.len + offsetof(struct external_name, name[1]);
   276		mod_node_page_state(page_pgdat(virt_to_page(name)),
   277				    NR_INDIRECTLY_RECLAIMABLE_BYTES,
 > 278				    -kmalloc_size(kmalloc_index(bytes)));
   279	
   280		kfree(name);
   281		kmem_cache_free(dentry_cache, dentry);
   282	}
   283	

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

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