From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88D51ECAAA1 for ; Fri, 2 Sep 2022 05:20:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0E7F7800B4; Fri, 2 Sep 2022 01:20:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0988A8008D; Fri, 2 Sep 2022 01:20:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA292800B4; Fri, 2 Sep 2022 01:20:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id DC0778008D for ; Fri, 2 Sep 2022 01:20:08 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id B05081C654D for ; Fri, 2 Sep 2022 05:20:08 +0000 (UTC) X-FDA: 79865994096.21.72085CB Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf26.hostedemail.com (Postfix) with ESMTP id 2C7F0140058 for ; Fri, 2 Sep 2022 05:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662096007; x=1693632007; h=date:from:to:cc:subject:message-id:mime-version; bh=tbBfqeAC/wUPVtsv+lKGU/sC5fne0g9q2Hy7YK6JkmI=; b=Nes6TPsgYZ/MS+Axn6kTtpYby3wwHnOL5QctOdzaRWDv0oNxaFi4vLE2 F7LURTsyh9FeKyIZn4Pb2bf11q5iodVA3yRCv67dfQWTlIE5cJnQRrM6B vYs0lp0qwmUMyFkgj8lb0Tb6ibXyUA1rfioZRugTR8HF+gGbsz4vSTcIP ULxbwmKN0d09QrdcoKU9xosco87PDlfJJFUfxuuQ7KtnHfhPAxTil0Lpc NP2ugtiVBYPI/LdZH2i0/JRnQ9JuvOndaHlxUvu/+f85s3Xezy71kgsCv OaCaRQ2esAarnGRfeYD/c7L21O3rjixncvHKSdI/px+28JmI8bFtFjOLD g==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="293473630" X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="293473630" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 22:20:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="589933412" Received: from lkp-server02.sh.intel.com (HELO fccc941c3034) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 01 Sep 2022 22:20:02 -0700 Received: from kbuild by fccc941c3034 with local (Exim 4.96) (envelope-from ) id 1oTz61-0000C3-2t; Fri, 02 Sep 2022 05:20:01 +0000 Date: Fri, 2 Sep 2022 13:19:34 +0800 From: kernel test robot To: Zach O'Keefe Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton , Yang Shi Subject: [linux-next:master 4278/4736] arch/mips/include/asm/pgtable.h:238:39: error: missing binary operator before token "(" Message-ID: <202209021349.F73i5d6X-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662096007; a=rsa-sha256; cv=none; b=A3GcBI+1jVZEP5dVYTJ1p38C3+ugo1URhwKrPhBgWSg3sfVQpXpfiNqW0ElXN3mGpqFCne ZuBQAT2z22UYdcCFdTv5Xh/VYyy8CFYaGje9BuZvVtwV5x/aTI48ysgDgZRHArPvKi7AYM GI7Ydu27DWqUnQora34Xk6NwbWEfUQ0= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Nes6TPsg; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662096007; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=rhpVj3hMQjAtttaEnJ9JqskYxsRR2/swhmT+KRKkAvc=; b=eAedFEQknbslXJlQPV5AA0qm9kNXHLH2evavUa9tMCEcU5lqMnzMnz0lMDH0H5SgaF9DO7 pY7tl4OqmBUJhxd3RKONaS7XshXGC4aWgPftieEjKOa5SxZi18FNqfis+QJUs70sxCUvXs 8vd9cqeGY/eOml/w9ltpiBINUY51ojo= Authentication-Results: imf26.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Nes6TPsg; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 2C7F0140058 X-Stat-Signature: x8mi65wtazxpadaqpk8ri1an11d141qt X-HE-Tag: 1662096006-20802 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e47eb90a0a9ae20b82635b9b99a8d0979b757ad8 commit: 2abbc27432878c26759d2913a22a7a15a66b96fd [4278/4736] mm/khugepaged: use minimal bits to store num page < HPAGE_PMD_NR config: mips-randconfig-r013-20220901 (https://download.01.org/0day-ci/archive/20220902/202209021349.F73i5d6X-lkp@intel.com/config) compiler: mips-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/next/linux-next.git/commit/?id=2abbc27432878c26759d2913a22a7a15a66b96fd git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 2abbc27432878c26759d2913a22a7a15a66b96fd # 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=mips SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from include/linux/pgtable.h:6, from include/linux/mm.h:29, from mm/khugepaged.c:4: >> arch/mips/include/asm/pgtable.h:238:26: warning: "__builtin_ffs" is not defined, evaluates to 0 [-Wundef] 238 | #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) | ^~~~~~~~~~~~~ arch/mips/include/asm/pgtable-32.h:65:43: note: in expansion of macro 'PTE_T_LOG2' 65 | # define PGDIR_SHIFT (2 * PAGE_SHIFT - PTE_T_LOG2 - 1) | ^~~~~~~~~~ include/asm-generic/pgtable-nop4d.h:11:33: note: in expansion of macro 'PGDIR_SHIFT' 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ include/asm-generic/pgtable-nopmd.h:20:25: note: in expansion of macro 'PUD_SHIFT' 20 | #define PMD_SHIFT PUD_SHIFT | ^~~~~~~~~ include/linux/huge_mm.h:109:25: note: in expansion of macro 'PMD_SHIFT' 109 | #define HPAGE_PMD_SHIFT PMD_SHIFT | ^~~~~~~~~ include/linux/huge_mm.h:105:26: note: in expansion of macro 'HPAGE_PMD_SHIFT' 105 | #define HPAGE_PMD_ORDER (HPAGE_PMD_SHIFT-PAGE_SHIFT) | ^~~~~~~~~~~~~~~ mm/khugepaged.c:90:5: note: in expansion of macro 'HPAGE_PMD_ORDER' 90 | #if HPAGE_PMD_ORDER < 16 | ^~~~~~~~~~~~~~~ >> arch/mips/include/asm/pgtable.h:238:39: error: missing binary operator before token "(" 238 | #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) | ^ arch/mips/include/asm/pgtable-32.h:65:43: note: in expansion of macro 'PTE_T_LOG2' 65 | # define PGDIR_SHIFT (2 * PAGE_SHIFT - PTE_T_LOG2 - 1) | ^~~~~~~~~~ include/asm-generic/pgtable-nop4d.h:11:33: note: in expansion of macro 'PGDIR_SHIFT' 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ include/asm-generic/pgtable-nopmd.h:20:25: note: in expansion of macro 'PUD_SHIFT' 20 | #define PMD_SHIFT PUD_SHIFT | ^~~~~~~~~ include/linux/huge_mm.h:109:25: note: in expansion of macro 'PMD_SHIFT' 109 | #define HPAGE_PMD_SHIFT PMD_SHIFT | ^~~~~~~~~ include/linux/huge_mm.h:105:26: note: in expansion of macro 'HPAGE_PMD_SHIFT' 105 | #define HPAGE_PMD_ORDER (HPAGE_PMD_SHIFT-PAGE_SHIFT) | ^~~~~~~~~~~~~~~ mm/khugepaged.c:90:5: note: in expansion of macro 'HPAGE_PMD_ORDER' 90 | #if HPAGE_PMD_ORDER < 16 | ^~~~~~~~~~~~~~~ vim +238 arch/mips/include/asm/pgtable.h ^1da177e4c3f41 include/asm-mips/pgtable.h Linus Torvalds 2005-04-16 235 5ff974720abec2 include/asm-mips/pgtable.h Ralf Baechle 2007-08-01 236 #define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1) 5ff974720abec2 include/asm-mips/pgtable.h Ralf Baechle 2007-08-01 237 #define PMD_T_LOG2 (__builtin_ffs(sizeof(pmd_t)) - 1) 5ff974720abec2 include/asm-mips/pgtable.h Ralf Baechle 2007-08-01 @238 #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) ^1da177e4c3f41 include/asm-mips/pgtable.h Linus Torvalds 2005-04-16 239 :::::: The code at line 238 was first introduced by commit :::::: 5ff974720abec255c17af6f3732dd410d364e367 [MIPS] Fix computation of {PGD,PMD,PTE}_T_LOG2. :::::: TO: Ralf Baechle :::::: CC: Ralf Baechle -- 0-DAY CI Kernel Test Service https://01.org/lkp