[vfs:work.dcache 16/23] include/linux/fs.h:2426:22: error: implicit declaration of function 'kmem_cache_alloc'; did you mean 'prom_early_alloc'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.dcache
head:   f700b37a0dc21ad5e0b5e8e947659f230fd4984c
commit: b609ffae6e69afeb1955526ff06c57795964b362 [16/23] split d_path() and friends into a separate file
config: sparc64-allnoconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b609ffae6e69afeb1955526ff06c57795964b362
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All error/warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/aio_abi.h:31:0,
                    from include/linux/syscalls.h:72,
                    from fs/d_path.c:2:
   fs/d_path.c: In function 'SYSC_getcwd':
>> include/linux/fs.h:2426:22: error: implicit declaration of function 'kmem_cache_alloc'; did you mean 'prom_early_alloc'? [-Werror=implicit-function-declaration]
    #define __getname()  kmem_cache_alloc(names_cachep, GFP_KERNEL)
                         ^
>> fs/d_path.c:426:15: note: in expansion of macro '__getname'
     char *page = __getname();
                  ^~~~~~~~~
>> include/linux/fs.h:2426:22: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
    #define __getname()  kmem_cache_alloc(names_cachep, GFP_KERNEL)
                         ^
>> fs/d_path.c:426:15: note: in expansion of macro '__getname'
     char *page = __getname();
                  ^~~~~~~~~
>> include/linux/fs.h:2427:26: error: implicit declaration of function 'kmem_cache_free'; did you mean 'vmem_altmap_free'? [-Werror=implicit-function-declaration]
    #define __putname(name)  kmem_cache_free(names_cachep, (void *)(name))
                             ^
>> fs/d_path.c:466:2: note: in expansion of macro '__putname'
     __putname(page);
     ^~~~~~~~~
   cc1: some warnings being treated as errors

vim +2426 include/linux/fs.h

b86c089b Christoph Lameter 2006-12-06  2425  
a608ca21 Jeff Layton       2012-10-10 @2426  #define __getname()		kmem_cache_alloc(names_cachep, GFP_KERNEL)
^1da177e Linus Torvalds    2005-04-16 @2427  #define __putname(name)		kmem_cache_free(names_cachep, (void *)(name))
^1da177e Linus Torvalds    2005-04-16  2428  

:::::: The code at line 2426 was first introduced by commit
:::::: a608ca21f58ee44df5a71ba140e98498f3ebc2cd vfs: allocate page instead of names_cache buffer in mount_block_root

:::::: TO: Jeff Layton <jlayton@xxxxxxxxxx>
:::::: CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

---
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 Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux