[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205311407.wLMslMvl-lkp@intel.com>
Date: Tue, 31 May 2022 14:42:04 +0800
From: kernel test robot <lkp@...el.com>
To: Chen Lin <chen45464546@....com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, 0day robot <lkp@...el.com>
Subject: mm/page_alloc.c:5662:3: error: unterminated function-like macro
invocation
tree: https://github.com/intel-lab-lkp/linux/commits/UPDATE-20220530-221559/Chen-Lin/mm-page_frag-Warn_on-when-frag_alloc-size-is-bigger-than-PAGE_SIZE/20220528-234129
head: ae1fa085ba9d71fac2969d9cd14a81dbef7bbec4
commit: ae1fa085ba9d71fac2969d9cd14a81dbef7bbec4 mm: page_frag: Warn_on when frag_alloc size is bigger than PAGE_SIZE
date: 16 hours ago
config: hexagon-randconfig-r041-20220531 (https://download.01.org/0day-ci/archive/20220531/202205311407.wLMslMvl-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd)
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/intel-lab-lkp/linux/commit/ae1fa085ba9d71fac2969d9cd14a81dbef7bbec4
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review UPDATE-20220530-221559/Chen-Lin/mm-page_frag-Warn_on-when-frag_alloc-size-is-bigger-than-PAGE_SIZE/20220528-234129
git checkout ae1fa085ba9d71fac2969d9cd14a81dbef7bbec4
# 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 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
mm/page_alloc.c:5662:11: warning: missing terminating '"' character [-Winvalid-pp-token]
WARN(1, "alloc fragsz(%d) > PAGE_SIZE(%ld) not supported,
^
mm/page_alloc.c:5663:16: warning: missing terminating '"' character [-Winvalid-pp-token]
alloc fail\n", fragsz, PAGE_SIZE);
^
>> mm/page_alloc.c:5662:3: error: unterminated function-like macro invocation
WARN(1, "alloc fragsz(%d) > PAGE_SIZE(%ld) not supported,
^
include/asm-generic/bug.h:130:9: note: macro 'WARN' defined here
#define WARN(condition, format...) ({ \
^
>> mm/page_alloc.c:9638:29: error: expected '}'
#endif /* CONFIG_ZONE_DMA */
^
mm/page_alloc.c:5661:36: note: to match this '{'
if (unlikely(fragsz > PAGE_SIZE)) {
^
>> mm/page_alloc.c:9638:29: error: expected '}'
#endif /* CONFIG_ZONE_DMA */
^
mm/page_alloc.c:5653:1: note: to match this '{'
{
^
2 warnings and 3 errors generated.
vim +5662 mm/page_alloc.c
5649
5650 void *page_frag_alloc_align(struct page_frag_cache *nc,
5651 unsigned int fragsz, gfp_t gfp_mask,
5652 unsigned int align_mask)
5653 {
5654 unsigned int size = PAGE_SIZE;
5655 struct page *page;
5656 int offset;
5657
5658 /* frag_alloc is not suitable for memory alloc which fragsz
5659 * is bigger than PAGE_SIZE, use kmalloc or alloc_pages instead.
5660 */
5661 if (unlikely(fragsz > PAGE_SIZE)) {
> 5662 WARN(1, "alloc fragsz(%d) > PAGE_SIZE(%ld) not supported,
5663 alloc fail\n", fragsz, PAGE_SIZE);
5664
5665 return NULL;
5666 }
5667
5668 if (unlikely(!nc->va)) {
5669 refill:
5670 page = __page_frag_cache_refill(nc, gfp_mask);
5671 if (!page)
5672 return NULL;
5673
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists