public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* mm/page_alloc.c:5662:3: error: unterminated function-like macro invocation
@ 2022-05-31  6:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-31  6:42 UTC (permalink / raw)
  To: Chen Lin; +Cc: llvm, kbuild-all, linux-kernel, 0day robot

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@intel.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-31  6:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-31  6:42 mm/page_alloc.c:5662:3: error: unterminated function-like macro invocation kernel test robot

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