linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-hotfixes-unstable 25/30] mm/zsmalloc.c:940:13: warning: unused function 'obj_allocated'
@ 2023-01-19  9:14 kernel test robot
  2023-01-19 16:09 ` Nhat Pham
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-01-19  9:14 UTC (permalink / raw)
  To: Nhat Pham; +Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-hotfixes-unstable
head:   4de77094279d6b179bab4314bdca80e6694cfcf0
commit: f950c3c5d55be15a74d250edde93e404c6ecd409 [25/30] zsmalloc: fix a race with deferred_handles storing
config: hexagon-buildonly-randconfig-r001-20230118 (https://download.01.org/0day-ci/archive/20230119/202301190830.4tstTsgZ-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=f950c3c5d55be15a74d250edde93e404c6ecd409
        git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
        git fetch --no-tags akpm-mm mm-hotfixes-unstable
        git checkout f950c3c5d55be15a74d250edde93e404c6ecd409
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> mm/zsmalloc.c:940:13: warning: unused function 'obj_allocated' [-Wunused-function]
   static bool obj_allocated(struct page *page, void *obj, unsigned long *phandle)
               ^

Please check if it needs to be guarded with a config.


vim +/obj_allocated +940 mm/zsmalloc.c

312fcae22703761 Minchan Kim 2015-04-15  939  
f950c3c5d55be15 Nhat Pham   2023-01-10 @940  static bool obj_allocated(struct page *page, void *obj, unsigned long *phandle)
f950c3c5d55be15 Nhat Pham   2023-01-10  941  {
f950c3c5d55be15 Nhat Pham   2023-01-10  942  	return obj_tagged(page, obj, phandle, OBJ_ALLOCATED_TAG);
f950c3c5d55be15 Nhat Pham   2023-01-10  943  }
f950c3c5d55be15 Nhat Pham   2023-01-10  944  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [akpm-mm:mm-hotfixes-unstable 25/30] mm/zsmalloc.c:940:13: warning: unused function 'obj_allocated'
  2023-01-19  9:14 [akpm-mm:mm-hotfixes-unstable 25/30] mm/zsmalloc.c:940:13: warning: unused function 'obj_allocated' kernel test robot
@ 2023-01-19 16:09 ` Nhat Pham
  0 siblings, 0 replies; 2+ messages in thread
From: Nhat Pham @ 2023-01-19 16:09 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List

This bug was detected and fix by Arnd Bergmann:

https://lore.kernel.org/lkml/CAKEwX=OTpY9Wg6YPfADDqeu7FFzciY9o_nNE5dRR3cu_-2ntaw@mail.gmail.com/T/

It is triggered when neither CONFIG_ZPOOL nor CONFIG_COMPACTION is set.

On Thu, Jan 19, 2023 at 1:16 AM kernel test robot <yujie.liu@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-hotfixes-unstable
> head:   4de77094279d6b179bab4314bdca80e6694cfcf0
> commit: f950c3c5d55be15a74d250edde93e404c6ecd409 [25/30] zsmalloc: fix a race with deferred_handles storing
> config: hexagon-buildonly-randconfig-r001-20230118 (https://download.01.org/0day-ci/archive/20230119/202301190830.4tstTsgZ-lkp@intel.com/config)
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=f950c3c5d55be15a74d250edde93e404c6ecd409
>         git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
>         git fetch --no-tags akpm-mm mm-hotfixes-unstable
>         git checkout f950c3c5d55be15a74d250edde93e404c6ecd409
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <yujie.liu@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> mm/zsmalloc.c:940:13: warning: unused function 'obj_allocated' [-Wunused-function]
>    static bool obj_allocated(struct page *page, void *obj, unsigned long *phandle)
>                ^
>
> Please check if it needs to be guarded with a config.
>
>
> vim +/obj_allocated +940 mm/zsmalloc.c
>
> 312fcae22703761 Minchan Kim 2015-04-15  939
> f950c3c5d55be15 Nhat Pham   2023-01-10 @940  static bool obj_allocated(struct page *page, void *obj, unsigned long *phandle)
> f950c3c5d55be15 Nhat Pham   2023-01-10  941  {
> f950c3c5d55be15 Nhat Pham   2023-01-10  942     return obj_tagged(page, obj, phandle, OBJ_ALLOCATED_TAG);
> f950c3c5d55be15 Nhat Pham   2023-01-10  943  }
> f950c3c5d55be15 Nhat Pham   2023-01-10  944
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-19 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19  9:14 [akpm-mm:mm-hotfixes-unstable 25/30] mm/zsmalloc.c:940:13: warning: unused function 'obj_allocated' kernel test robot
2023-01-19 16:09 ` Nhat Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox