[mmotm:master 72/152] fs/notify/group.c:41:3: error: implicit declaration of function 'mem_cgroup_put'

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   745388a34645dd2b69f5e7115ad47fea7a218726
commit: a12bdbf3bbc771ba3df7edf3bdc07c29b6587a23 [72/152] fs: fsnotify: account fsnotify metadata to kmemcg
config: x86_64-randconfig-u0-02240046 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
        git checkout a12bdbf3bbc771ba3df7edf3bdc07c29b6587a23
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the mmotm/master HEAD 745388a34645dd2b69f5e7115ad47fea7a218726 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   fs/notify/group.c: In function 'fsnotify_final_destroy_group':
>> fs/notify/group.c:41:3: error: implicit declaration of function 'mem_cgroup_put' [-Werror=implicit-function-declaration]
      mem_cgroup_put(group->memcg);
      ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_set
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock
   Cyclomatic Complexity 56 include/linux/slab.h:kmalloc_index
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large_memcg
   Cyclomatic Complexity 9 include/linux/slab.h:kmalloc_memcg
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/refcount.h:refcount_set
   Cyclomatic Complexity 5 fs/notify/group.c:fsnotify_final_destroy_group
   Cyclomatic Complexity 1 fs/notify/group.c:fsnotify_group_stop_queueing
   Cyclomatic Complexity 1 fs/notify/group.c:fsnotify_get_group
   Cyclomatic Complexity 2 fs/notify/group.c:fsnotify_put_group
   Cyclomatic Complexity 5 fs/notify/group.c:fsnotify_destroy_group
   Cyclomatic Complexity 3 fs/notify/group.c:fsnotify_alloc_group
   Cyclomatic Complexity 2 fs/notify/group.c:fsnotify_fasync
   cc1: some warnings being treated as errors

vim +/mem_cgroup_put +41 fs/notify/group.c

    31	
    32	/*
    33	 * Final freeing of a group
    34	 */
    35	static void fsnotify_final_destroy_group(struct fsnotify_group *group)
    36	{
    37		if (group->ops->free_group_priv)
    38			group->ops->free_group_priv(group);
    39	
    40		if (group->memcg)
  > 41			mem_cgroup_put(group->memcg);
    42	
    43		kfree(group);
    44	}
    45	

---
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