From: kernel test robot <lkp@intel.com>
To: Mike Rapoport <rppt@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Mike Rapoport <rppt@kernel.org>
Subject: [rppt:misc/pfn_valid/v0 1/1] include/linux/mmzone.h:103:56: error: expected expression before ',' token
Date: Mon, 23 Jan 2023 18:38:32 +0800 [thread overview]
Message-ID: <202301231827.2EDBeLCC-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git misc/pfn_valid/v0
head: 2cb3404accfc161b66866cd03c42953f57700677
commit: 2cb3404accfc161b66866cd03c42953f57700677 [1/1] mm, arch: add generic implementation of pfn_valid() for FLATMEM
config: alpha-randconfig-r022-20230123 (https://download.01.org/0day-ci/archive/20230123/202301231827.2EDBeLCC-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id=2cb3404accfc161b66866cd03c42953f57700677
git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
git fetch --no-tags rppt misc/pfn_valid/v0
git checkout 2cb3404accfc161b66866cd03c42953f57700677
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha prepare
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/pid_namespace.h:7,
from include/linux/ptrace.h:10,
from arch/alpha/kernel/asm-offsets.c:11:
include/linux/mm.h: In function 'folio_pfn':
include/linux/mm.h:1632:41: error: expected expression before ';' token
1632 | return page_to_pfn(&folio->page);
| ^
include/linux/mm.h:1632:42: error: expected ';' before '}' token
1632 | return page_to_pfn(&folio->page);
| ^
| ;
1633 | }
| ~
In file included from include/linux/gfp.h:7,
from include/linux/mm.h:7:
include/linux/mm.h: In function 'is_longterm_pinnable_page':
>> include/linux/mmzone.h:103:56: error: expected expression before ',' token
103 | get_pfnblock_flags_mask(page, page_to_pfn(page), MIGRATETYPE_MASK)
| ^
include/linux/mm.h:1714:18: note: in expansion of macro 'get_pageblock_migratetype'
1714 | int mt = get_pageblock_migratetype(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:103:56: warning: left-hand operand of comma expression has no effect [-Wunused-value]
103 | get_pfnblock_flags_mask(page, page_to_pfn(page), MIGRATETYPE_MASK)
| ^
include/linux/mm.h:1714:18: note: in expansion of macro 'get_pageblock_migratetype'
1714 | int mt = get_pageblock_migratetype(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mm.h:1714:49: error: expected ')' before ';' token
1714 | int mt = get_pageblock_migratetype(page);
| ^
include/linux/mmzone.h:103:32: note: to match this '('
103 | get_pfnblock_flags_mask(page, page_to_pfn(page), MIGRATETYPE_MASK)
| ^
include/linux/mm.h:1714:18: note: in expansion of macro 'get_pageblock_migratetype'
1714 | int mt = get_pageblock_migratetype(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/mmzone.h:103:9: error: too few arguments to function 'get_pfnblock_flags_mask'
103 | get_pfnblock_flags_mask(page, page_to_pfn(page), MIGRATETYPE_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/mm.h:1714:18: note: in expansion of macro 'get_pageblock_migratetype'
1714 | int mt = get_pageblock_migratetype(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mmzone.h:18:
include/linux/pageblock-flags.h:64:15: note: declared here
64 | unsigned long get_pfnblock_flags_mask(const struct page *page,
| ^~~~~~~~~~~~~~~~~~~~~~~
>> arch/alpha/kernel/asm-offsets.c:44:1: error: expected declaration or statement at end of input
44 | }
| ^
include/linux/mm.h:1714:13: warning: unused variable 'mt' [-Wunused-variable]
1714 | int mt = get_pageblock_migratetype(page);
| ^~
arch/alpha/kernel/asm-offsets.c:44:1: error: no return statement in function returning non-void [-Werror=return-type]
44 | }
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:114: arch/alpha/kernel/asm-offsets.s] Error 1
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:1298: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:242: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +103 include/linux/mmzone.h
e58469bafd0524 Mel Gorman 2014-06-04 101
dc4b0caff24d9b Mel Gorman 2014-06-04 102 #define get_pageblock_migratetype(page) \
535b81e209219e Wei Yang 2020-08-06 @103 get_pfnblock_flags_mask(page, page_to_pfn(page), MIGRATETYPE_MASK)
dc4b0caff24d9b Mel Gorman 2014-06-04 104
:::::: The code at line 103 was first introduced by commit
:::::: 535b81e209219e03f815379746bfd1eeb82d68e5 mm/page_alloc.c: remove unnecessary end_bitidx for [set|get]_pfnblock_flags_mask()
:::::: TO: Wei Yang <richard.weiyang@linux.alibaba.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-01-23 10:39 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=202301231827.2EDBeLCC-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rppt@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.