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>] [day] [month] [year] [list]
Message-ID: <202207151149.LpjeqJyt-lkp@intel.com>
Date:   Fri, 15 Jul 2022 11:28:34 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alexei Starovoitov <ast@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [ast-bpf:memalloc 1/7] kernel/bpf/memalloc.c:158:24: warning:
 returning 'int' from a function with return type 'struct mem_cgroup *' makes
 pointer from integer without a cast

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git memalloc
head:   02e9f2eaae15bfdbc6ab59716ec63c471daa8822
commit: a4e9a79dc137aa2436d0217a0ac415e884cfa862 [1/7] bpf: Introduce any context BPF specific memory allocator.
config: x86_64-randconfig-a015
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git/commit/?id=a4e9a79dc137aa2436d0217a0ac415e884cfa862
        git remote add ast-bpf https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git
        git fetch --no-tags ast-bpf memalloc
        git checkout a4e9a79dc137aa2436d0217a0ac415e884cfa862
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/bpf/

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

All warnings (new ones prefixed by >>):

   kernel/bpf/memalloc.c: In function 'get_memcg':
   kernel/bpf/memalloc.c:158:24: error: implicit declaration of function 'get_mem_cgroup_from_objcg'; did you mean 'get_mem_cgroup_from_mm'? [-Werror=implicit-function-declaration]
     158 |                 return get_mem_cgroup_from_objcg(c->objcg);
         |                        ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                        get_mem_cgroup_from_mm
>> kernel/bpf/memalloc.c:158:24: warning: returning 'int' from a function with return type 'struct mem_cgroup *' makes pointer from integer without a cast [-Wint-conversion]
     158 |                 return get_mem_cgroup_from_objcg(c->objcg);
         |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +158 kernel/bpf/memalloc.c

   154	
   155	static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c)
   156	{
   157		if (c->objcg)
 > 158			return get_mem_cgroup_from_objcg(c->objcg);
   159	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ