lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202211301736.iH7A4KHf-lkp@intel.com>
Date:   Wed, 30 Nov 2022 17:31:17 +0800
From:   kernel test robot <lkp@...el.com>
To:     chengkaitao <pilgrimtao@...il.com>, tj@...nel.org,
        lizefan.x@...edance.com, hannes@...xchg.org, corbet@....net,
        mhocko@...nel.org, roman.gushchin@...ux.dev, shakeelb@...gle.com,
        akpm@...ux-foundation.org, songmuchun@...edance.com
Cc:     oe-kbuild-all@...ts.linux.dev, cgel.zte@...il.com,
        ran.xiaokai@....com.cn, viro@...iv.linux.org.uk,
        zhengqi.arch@...edance.com, ebiederm@...ssion.com,
        Liam.Howlett@...cle.com, chengzhihao1@...wei.com,
        pilgrimtao@...il.com, haolee.swjtu@...il.com, yuzhao@...gle.com,
        willy@...radead.org, vasily.averin@...ux.dev, vbabka@...e.cz,
        surenb@...gle.com, sfr@...b.auug.org.au, mcgrof@...nel.org,
        sujiaxun@...ontech.com, feng.tang@...el.com,
        cgroups@...r.kernel.org, linux-doc@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: memcontrol: protect the memory in cgroup from being
 oom killed

Hi chengkaitao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on akpm-mm/mm-everything]

url:    https://github.com/intel-lab-lkp/linux/commits/chengkaitao/mm-memcontrol-protect-the-memory-in-cgroup-from-being-oom-killed/20221130-150440
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20221130070158.44221-1-chengkaitao%40didiglobal.com
patch subject: [PATCH] mm: memcontrol: protect the memory in cgroup from being oom killed
config: i386-tinyconfig
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/d2e2f936cb254b6976abddb53b9f46dfc9c9a134
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review chengkaitao/mm-memcontrol-protect-the-memory-in-cgroup-from-being-oom-killed/20221130-150440
        git checkout d2e2f936cb254b6976abddb53b9f46dfc9c9a134
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

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

   ld: init/do_mounts.o: in function `update_parent_oom_protection':
>> do_mounts.c:(.text+0x5): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: init/do_mounts.o: in function `get_task_eoom_protect':
>> do_mounts.c:(.text+0x6): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: init/do_mounts.o: in function `is_root_oom_protect':
>> do_mounts.c:(.text+0x9): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: init/do_mounts.o: in function `mem_cgroup_scan_tasks_update_eoom':
>> do_mounts.c:(.text+0xc): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/entry/vdso/vma.o: in function `update_parent_oom_protection':
   vma.c:(.text+0x1db): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/entry/vdso/vma.o: in function `get_task_eoom_protect':
   vma.c:(.text+0x1dc): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/entry/vdso/vma.o: in function `is_root_oom_protect':
   vma.c:(.text+0x1df): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/entry/vdso/vma.o: in function `mem_cgroup_scan_tasks_update_eoom':
   vma.c:(.text+0x1e2): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/kernel/setup.o: in function `update_parent_oom_protection':
   setup.c:(.text+0x3): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/kernel/setup.o: in function `get_task_eoom_protect':
   setup.c:(.text+0x4): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/kernel/setup.o: in function `is_root_oom_protect':
   setup.c:(.text+0x7): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/kernel/setup.o: in function `mem_cgroup_scan_tasks_update_eoom':
   setup.c:(.text+0xa): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/kernel/e820.o: in function `update_parent_oom_protection':
   e820.c:(.text+0x134): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/kernel/e820.o: in function `get_task_eoom_protect':
   e820.c:(.text+0x135): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/kernel/e820.o: in function `is_root_oom_protect':
   e820.c:(.text+0x138): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/kernel/e820.o: in function `mem_cgroup_scan_tasks_update_eoom':
   e820.c:(.text+0x13b): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/kernel/cpu/umwait.o: in function `update_parent_oom_protection':
   umwait.c:(.text+0x2d): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/kernel/cpu/umwait.o: in function `get_task_eoom_protect':
   umwait.c:(.text+0x2e): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/kernel/cpu/umwait.o: in function `is_root_oom_protect':
   umwait.c:(.text+0x31): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/kernel/cpu/umwait.o: in function `mem_cgroup_scan_tasks_update_eoom':
   umwait.c:(.text+0x34): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/kernel/reboot.o: in function `update_parent_oom_protection':
   reboot.c:(.text+0x1a): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/kernel/reboot.o: in function `get_task_eoom_protect':
   reboot.c:(.text+0x1b): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/kernel/reboot.o: in function `is_root_oom_protect':
   reboot.c:(.text+0x1e): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/kernel/reboot.o: in function `mem_cgroup_scan_tasks_update_eoom':
   reboot.c:(.text+0x21): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/mm/init.o: in function `update_parent_oom_protection':
   init.c:(.text+0x0): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/mm/init.o: in function `get_task_eoom_protect':
   init.c:(.text+0x1): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/mm/init.o: in function `is_root_oom_protect':
   init.c:(.text+0x4): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/mm/init.o: in function `mem_cgroup_scan_tasks_update_eoom':
   init.c:(.text+0x7): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/mm/init_32.o: in function `update_parent_oom_protection':
   init_32.c:(.text+0x0): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/mm/init_32.o: in function `get_task_eoom_protect':
   init_32.c:(.text+0x1): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/mm/init_32.o: in function `is_root_oom_protect':
   init_32.c:(.text+0x4): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/mm/init_32.o: in function `mem_cgroup_scan_tasks_update_eoom':
   init_32.c:(.text+0x7): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/mm/fault.o: in function `update_parent_oom_protection':
   fault.c:(.text+0x8cd): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/mm/fault.o: in function `get_task_eoom_protect':
   fault.c:(.text+0x8ce): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/mm/fault.o: in function `is_root_oom_protect':
   fault.c:(.text+0x8d1): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/mm/fault.o: in function `mem_cgroup_scan_tasks_update_eoom':
   fault.c:(.text+0x8d4): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/mm/ioremap.o: in function `update_parent_oom_protection':
   ioremap.c:(.text+0x25c): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/mm/ioremap.o: in function `get_task_eoom_protect':
   ioremap.c:(.text+0x25d): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/mm/ioremap.o: in function `is_root_oom_protect':
   ioremap.c:(.text+0x260): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/mm/ioremap.o: in function `mem_cgroup_scan_tasks_update_eoom':
   ioremap.c:(.text+0x263): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/mm/pgtable.o: in function `update_parent_oom_protection':
   pgtable.c:(.text+0x4): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/mm/pgtable.o: in function `get_task_eoom_protect':
   pgtable.c:(.text+0x5): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/mm/pgtable.o: in function `is_root_oom_protect':
   pgtable.c:(.text+0x8): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/mm/pgtable.o: in function `mem_cgroup_scan_tasks_update_eoom':
   pgtable.c:(.text+0xb): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: arch/x86/mm/pgtable_32.o: in function `update_parent_oom_protection':
   pgtable_32.c:(.text+0x0): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: arch/x86/mm/pgtable_32.o: in function `get_task_eoom_protect':
   pgtable_32.c:(.text+0x1): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: arch/x86/mm/pgtable_32.o: in function `is_root_oom_protect':
   pgtable_32.c:(.text+0x4): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: arch/x86/mm/pgtable_32.o: in function `mem_cgroup_scan_tasks_update_eoom':
   pgtable_32.c:(.text+0x7): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: kernel/fork.o: in function `update_parent_oom_protection':
   fork.c:(.text+0x5bb): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: kernel/fork.o: in function `get_task_eoom_protect':
   fork.c:(.text+0x5bc): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
   ld: kernel/fork.o: in function `is_root_oom_protect':
   fork.c:(.text+0x5bf): multiple definition of `is_root_oom_protect'; init/main.o:main.c:(.text+0x36): first defined here
   ld: kernel/fork.o: in function `mem_cgroup_scan_tasks_update_eoom':
   fork.c:(.text+0x5c2): multiple definition of `mem_cgroup_scan_tasks_update_eoom'; init/main.o:main.c:(.text+0x39): first defined here
   ld: kernel/cpu.o: in function `update_parent_oom_protection':
   cpu.c:(.text+0x161): multiple definition of `update_parent_oom_protection'; init/main.o:main.c:(.text+0x32): first defined here
   ld: kernel/cpu.o: in function `get_task_eoom_protect':
   cpu.c:(.text+0x162): multiple definition of `get_task_eoom_protect'; init/main.o:main.c:(.text+0x33): first defined here
--
   In file included from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from arch/x86/kernel/asm-offsets.c:13:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/rmap.h:12,
                    from init/main.c:62:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   init/main.c:775:20: warning: no previous prototype for 'arch_post_acpi_subsys_init' [-Wmissing-prototypes]
     775 | void __init __weak arch_post_acpi_subsys_init(void) { }
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/swap.h:9,
                    from mm/shmem.c:36:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/shmem.c:4148:13: warning: no previous prototype for 'shmem_init' [-Wmissing-prototypes]
    4148 | void __init shmem_init(void)
         |             ^~~~~~~~~~
   mm/shmem.c:4156:5: warning: no previous prototype for 'shmem_unuse' [-Wmissing-prototypes]
    4156 | int shmem_unuse(unsigned int type)
         |     ^~~~~~~~~~~
   mm/shmem.c:4161:5: warning: no previous prototype for 'shmem_lock' [-Wmissing-prototypes]
    4161 | int shmem_lock(struct file *file, int lock, struct ucounts *ucounts)
         |     ^~~~~~~~~~
   mm/shmem.c:4166:6: warning: no previous prototype for 'shmem_unlock_mapping' [-Wmissing-prototypes]
    4166 | void shmem_unlock_mapping(struct address_space *mapping)
         |      ^~~~~~~~~~~~~~~~~~~~
   mm/shmem.c:4171:15: warning: no previous prototype for 'shmem_get_unmapped_area' [-Wmissing-prototypes]
    4171 | unsigned long shmem_get_unmapped_area(struct file *file,
         |               ^~~~~~~~~~~~~~~~~~~~~~~
   mm/shmem.c:4179:6: warning: no previous prototype for 'shmem_truncate_range' [-Wmissing-prototypes]
    4179 | void shmem_truncate_range(struct inode *inode, loff_t lstart, loff_t lend)
         |      ^~~~~~~~~~~~~~~~~~~~
   mm/shmem.c:4239:14: warning: no previous prototype for 'shmem_kernel_file_setup' [-Wmissing-prototypes]
    4239 | struct file *shmem_kernel_file_setup(const char *name, loff_t size, unsigned long flags)
         |              ^~~~~~~~~~~~~~~~~~~~~~~
   mm/shmem.c:4250:14: warning: no previous prototype for 'shmem_file_setup' [-Wmissing-prototypes]
    4250 | struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags)
         |              ^~~~~~~~~~~~~~~~
   mm/shmem.c:4263:14: warning: no previous prototype for 'shmem_file_setup_with_mnt' [-Wmissing-prototypes]
    4263 | struct file *shmem_file_setup_with_mnt(struct vfsmount *mnt, const char *name,
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~
   mm/shmem.c:4274:5: warning: no previous prototype for 'shmem_zero_setup' [-Wmissing-prototypes]
    4274 | int shmem_zero_setup(struct vm_area_struct *vma)
         |     ^~~~~~~~~~~~~~~~
   mm/shmem.c:4312:14: warning: no previous prototype for 'shmem_read_mapping_page_gfp' [-Wmissing-prototypes]
    4312 | struct page *shmem_read_mapping_page_gfp(struct address_space *mapping,
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from fs/pipe.c:26:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:757:15: warning: no previous prototype for 'account_pipe_buffers' [-Wmissing-prototypes]
     757 | unsigned long account_pipe_buffers(struct user_struct *user,
         |               ^~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:763:6: warning: no previous prototype for 'too_many_pipe_buffers_soft' [-Wmissing-prototypes]
     763 | bool too_many_pipe_buffers_soft(unsigned long user_bufs)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:770:6: warning: no previous prototype for 'too_many_pipe_buffers_hard' [-Wmissing-prototypes]
     770 | bool too_many_pipe_buffers_hard(unsigned long user_bufs)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:777:6: warning: no previous prototype for 'pipe_is_unprivileged_user' [-Wmissing-prototypes]
     777 | bool pipe_is_unprivileged_user(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:1253:5: warning: no previous prototype for 'pipe_resize_ring' [-Wmissing-prototypes]
    1253 | int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots)
         |     ^~~~~~~~~~~~~~~~
--
   In file included from include/net/sock.h:53,
                    from include/linux/tcp.h:19,
                    from include/linux/ipv6.h:93,
                    from include/net/addrconf.h:52,
                    from lib/vsprintf.c:40:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   lib/vsprintf.c: In function 'va_format':
   lib/vsprintf.c:1685:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
    1685 |         buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
         |         ^~~
--
   In file included from include/linux/swap.h:9,
                    from include/asm-generic/tlb.h:15,
                    from arch/x86/include/asm/tlb.h:8,
                    from arch/x86/entry/vdso/vma.c:24:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/entry/vdso/vma.c:35:19: warning: no previous prototype for 'arch_get_vdso_data' [-Wmissing-prototypes]
      35 | struct vdso_data *arch_get_vdso_data(void *vvar_page)
         |                   ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from kernel/sched/build_policy.c:28:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/sched/build_policy.c:45:
   kernel/sched/rt.c:9:18: warning: 'max_rt_runtime' defined but not used [-Wunused-const-variable=]
       9 | static const u64 max_rt_runtime = MAX_BW;
         |                  ^~~~~~~~~~~~~~
--
   In file included from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from arch/x86/kernel/asm-offsets.c:13:
>> include/linux/memcontrol.h:1228:6: warning: no previous prototype for 'update_parent_oom_protection' [-Wmissing-prototypes]
    1228 | void update_parent_oom_protection(struct mem_cgroup *root,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1243:15: warning: no previous prototype for 'get_task_eoom_protect' [-Wmissing-prototypes]
    1243 | unsigned long get_task_eoom_protect(struct task_struct *p, long points)
         |               ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1248:6: warning: no previous prototype for 'is_root_oom_protect' [-Wmissing-prototypes]
    1248 | bool is_root_oom_protect(void)
         |      ^~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:1372:5: warning: no previous prototype for 'mem_cgroup_scan_tasks_update_eoom' [-Wmissing-prototypes]
    1372 | int mem_cgroup_scan_tasks_update_eoom(struct mem_cgroup *memcg,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (29476 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ