From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A764120FC for ; Tue, 31 May 2022 06:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653979381; x=1685515381; h=date:from:to:cc:subject:message-id:mime-version; bh=dG/uD1VrE1+qp1nFF3MDQDPg5XOEJSDsifAYe+DaPFs=; b=cBgrxQj1kAK/prGA0Vp1EJRs9nheBPh9raSv4KGtrp3242V52xVffYyo gBvWgIKAjkXEczsSEUsATLbo0bamUaOiD/THR6uNhdlxU+H2xSdwVKIVn G/mgT/sy98xDkNfW+mOGAPlfgtHE64gP3QHbM5j6RJmBjDPOT9HcZvdBg 04/L9PaoYAxpr7TSFOb5MuFUqQi36S5up8tWReeEAJM7NQFC0iMGOUWUM bf071iLVaiJip2XhqQYNmC8tac6GUTRvSNLUxtDM2mdwW4JdghmEa405m gEYd1Mj2AeScSeWR+CLD1tRGEqrsV/+KzFj5EiCxJE2EdNxuxi/IAJeXb A==; X-IronPort-AV: E=McAfee;i="6400,9594,10363"; a="257223472" X-IronPort-AV: E=Sophos;i="5.91,264,1647327600"; d="scan'208";a="257223472" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2022 23:43:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,264,1647327600"; d="scan'208";a="720173473" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 30 May 2022 23:42:59 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nvvak-0002Qq-Rs; Tue, 31 May 2022 06:42:58 +0000 Date: Tue, 31 May 2022 14:42:04 +0800 From: kernel test robot To: Chen Lin Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, 0day robot Subject: mm/page_alloc.c:5662:3: error: unterminated function-like macro invocation Message-ID: <202205311407.wLMslMvl-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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