From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [norov:demotion 4/6] mm/vmscan.c:528:12: error: use of undeclared identifier 'PG_demote'
Date: Sun, 8 Aug 2021 23:19:12 +0800 [thread overview]
Message-ID: <202108082304.UpaaRWhH-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3366 bytes --]
tree: https://github.com/norov/linux demotion
head: 78c3964952da24c07f2e34dc2d485fd2e6d5ba82
commit: e71fae18b9c6ad0f0f71a1f80cff17fdb03bfc3b [4/6] mm/demotion: enable per-page demotion
config: hexagon-randconfig-r021-20210808 (attached as .config)
compiler: clang version 12.0.0
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://github.com/norov/linux/commit/e71fae18b9c6ad0f0f71a1f80cff17fdb03bfc3b
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov demotion
git checkout e71fae18b9c6ad0f0f71a1f80cff17fdb03bfc3b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
mm/vmscan.c:524:35: error: cannot take the address of an rvalue of type 'int'
if (test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags))
^~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/bitops.h:175:43: note: expanded from macro 'test_bit'
#define test_bit(nr, addr) __test_bit(nr, addr)
^~~~
mm/vmscan.c:527:44: error: cannot take the address of an rvalue of type 'int'
if (test_bit(NUMA_DEMOTION_REQ_MADV_FLAG, &numa_demotion_flags) &&
^~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/bitops.h:175:43: note: expanded from macro 'test_bit'
#define test_bit(nr, addr) __test_bit(nr, addr)
^~~~
>> mm/vmscan.c:528:12: error: use of undeclared identifier 'PG_demote'
test_bit(PG_demote, &page->flags))
^
mm/vmscan.c:536:36: error: cannot take the address of an rvalue of type 'int'
if (!test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags) &&
^~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/bitops.h:175:43: note: expanded from macro 'test_bit'
#define test_bit(nr, addr) __test_bit(nr, addr)
^~~~
mm/vmscan.c:537:42: error: cannot take the address of an rvalue of type 'int'
!test_bit(NUMA_DEMOTION_REQ_MADV_FLAG, &numa_demotion_flags))
^~~~~~~~~~~~~~~~~~~~
arch/hexagon/include/asm/bitops.h:175:43: note: expanded from macro 'test_bit'
#define test_bit(nr, addr) __test_bit(nr, addr)
^~~~
5 errors generated.
vim +/PG_demote +528 mm/vmscan.c
521
522 static bool can_demote_page(struct page *page)
523 {
524 if (test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags))
525 return true;
526
527 if (test_bit(NUMA_DEMOTION_REQ_MADV_FLAG, &numa_demotion_flags) &&
> 528 test_bit(PG_demote, &page->flags))
529 return true;
530
531 return false;
532 }
533
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 23314 bytes --]
reply other threads:[~2021-08-08 15:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202108082304.UpaaRWhH-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yury.norov@gmail.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
all inboxes | Powered by JetHome®