From: Nhat Pham <nphamcs@gmail.com>
To: kernel test robot <yujie.liu@intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [akpm-mm:mm-hotfixes-unstable 25/30] mm/zsmalloc.c:940:13: warning: unused function 'obj_allocated'
Date: Thu, 19 Jan 2023 08:09:13 -0800 [thread overview]
Message-ID: <CAKEwX=PVR3HCBtWkhichkyFKRiPGYD_9xHJEWA8-5mwVRY0aWw@mail.gmail.com> (raw)
In-Reply-To: <Y8kJ/BhadFcTkSxr@yujie-X299>
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
prev parent reply other threads:[~2023-01-19 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 9:14 kernel test robot
2023-01-19 16:09 ` Nhat Pham [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKEwX=PVR3HCBtWkhichkyFKRiPGYD_9xHJEWA8-5mwVRY0aWw@mail.gmail.com' \
--to=nphamcs@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yujie.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox