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 45532CF885A for ; Fri, 4 Oct 2024 19:52:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 565A36B0361; Fri, 4 Oct 2024 15:52:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4ED546B0362; Fri, 4 Oct 2024 15:52:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 367346B0363; Fri, 4 Oct 2024 15:52:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 0EF0E6B0361 for ; Fri, 4 Oct 2024 15:52:47 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 871A212030B for ; Fri, 4 Oct 2024 19:52:46 +0000 (UTC) X-FDA: 82636967532.23.AC13F3E Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf14.hostedemail.com (Postfix) with ESMTP id 07005100005 for ; Fri, 4 Oct 2024 19:52:42 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=R3DgBxeS; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 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=1728071433; 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=Nqj7liyVDU4vtyC4TeFMxGA62Cfbb0fFUJ4Yh7Mn8sM=; b=cVPXcALBr1HNF8Z2DlLzX3nUwGeCUl7vqkuNyUxvO/Tkx0YblJAS7OUitUHDMobU5mtTeW Rq7m0O/EHK0BtEFypsmLFN9WFQBojZG2cyCypZJFccLpDMJRR1GlIkKFCLurzYJQ8o6wAY s+I30Nsj9bLgoRWwaKbcTEA33byTqsQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728071433; a=rsa-sha256; cv=none; b=I3PQvef4/wTmV5JlVOwpY9jhpnWtUdICs52E3gz9wPb6Q6Yxik6aXg7ocI2PFL/v/LkCsn aj9c3cWp7vqVAiD9gdIfpK9Rgl0cvP5DF6zhAh7JUeiSStCNVgkSQWuqjdDVJiFeIfgJl7 gYVKzW+SVnsS+VoZsnJ9Hsqu1jpnrtI= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=R3DgBxeS; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728071563; x=1759607563; h=date:from:to:cc:subject:message-id:mime-version; bh=kl5zg+gZxvsBveSJ/daY/n9vMoJcOJpGPeErC+Fwc7s=; b=R3DgBxeSWEA9P6D4wirHMaoXFZngto1QVH8zKX3b+iY3Xa3HTlB0j0aL 9dHJRdFK5xA/PVPmNe9imsYhkPMQfyR5c3HkJ64N5SMMZzMtk1Q+X6vx2 PduUPrf2i35pFks/oUo9XtQXlw3iONHrdVcPpxb01SIL8sLfN1YONq265 hndEVG0BGyJXedWlpU/b7b4r0KKLlo97/zZED4jdz9kd7qxtkOewCxQTn 9PMfwd75T1BO+ADd359BiJzvNT99ySNXzPF9EFo6vcz9u0M2IEP+oE9TM ojY0Vs/HWu0U0g4kkm6kkKjyDclQraurfkS8dv6KgvtxtRTzUOi8DKzQs A==; X-CSE-ConnectionGUID: cn8xCQHrRRORoT5lbqiAKw== X-CSE-MsgGUID: aOtfhRT+ScKzvAHKM0bZ3g== X-IronPort-AV: E=McAfee;i="6700,10204,11215"; a="27451809" X-IronPort-AV: E=Sophos;i="6.11,178,1725346800"; d="scan'208";a="27451809" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2024 12:52:40 -0700 X-CSE-ConnectionGUID: vJX7WhDNTBSXxVxyLYIYQA== X-CSE-MsgGUID: nXR86yquSLW8/hi5Lbykxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,178,1725346800"; d="scan'208";a="74810912" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa009.fm.intel.com with ESMTP; 04 Oct 2024 12:52:38 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1swoLs-00028n-0u; Fri, 04 Oct 2024 19:52:36 +0000 Date: Sat, 5 Oct 2024 03:51:48 +0800 From: kernel test robot To: Francois Dugast Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Rodrigo Vivi Subject: [linux-next:master 2050/2483] include/linux/fault-inject.h:99:9: error: use of undeclared identifier 'false'; did you mean 'else'? Message-ID: <202410050346.6RA1L1hF-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 07005100005 X-Stat-Signature: s9hrete8oyf85mjtzci6o1gyhhbp34z8 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1728071562-944492 X-HE-Meta: U2FsdGVkX19z6T3h0N31wyHsKwi5qEykYdcxseGcQndjh4V9vMF/Sy+PFMgyjdny7j+wmddGiwkoNqTo7jyZw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PC56tC17oOclyLZqKcyL3k3qMW60Nu6mTr5dv8YU8aYsHrIdWwVmG9kELfKSoaVaRkre9gplL3/6YLB/Le9qFuwQTHc845EzXUXUBOMwlw+5vvNJM+SmVbrhLH1qHhUTtX1A95CLV+9FKzEpsCyc2mPKU3XPpnfDF4pfUQFzLeTrzyngb+TZYGdo2AFqv1/Ub+awbgAJWbQfA0iZN/JEQhNY1xHScYkX7heAbrebR58/dErblCAFbA4r/pVpM9Sv8OFHjpDLoebS3WxmKZdr3MqTldWiea1qk= 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 58ca61c1a866bfdaa5e19fb19a2416764f847d75 commit: 91b2c42c214f570efaff80a666e30b8f6ce4f12b [2050/2483] drm/xe: Use fault injection infrastructure to find issues at probe time config: x86_64-randconfig-003-20241005 (https://download.01.org/0day-ci/archive/20241005/202410050346.6RA1L1hF-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241005/202410050346.6RA1L1hF-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202410050346.6RA1L1hF-lkp@intel.com/ Note: the linux-next/master HEAD 58ca61c1a866bfdaa5e19fb19a2416764f847d75 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): In file included from drivers/gpu/drm/xe/xe_tile.c:6: include/linux/fault-inject.h:97:15: error: unknown type name 'bool' 97 | static inline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) | ^ include/linux/fault-inject.h:97:43: error: unknown type name 'gfp_t' 97 | static inline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) | ^ >> include/linux/fault-inject.h:99:9: error: use of undeclared identifier 'false'; did you mean 'else'? 99 | return false; | ^~~~~ | else >> include/linux/fault-inject.h:99:9: error: expected expression include/linux/fault-inject.h:106:57: error: unknown type name 'gfp_t' 106 | static inline int should_failslab(struct kmem_cache *s, gfp_t gfpflags) | ^ include/linux/fault-inject.h:108:9: error: use of undeclared identifier 'false'; did you mean 'else'? 108 | return false; | ^~~~~ | else include/linux/fault-inject.h:108:9: error: expected expression In file included from drivers/gpu/drm/xe/xe_tile.c:10: In file included from drivers/gpu/drm/xe/xe_device.h:9: In file included from include/drm/drm_util.h:36: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/xe/xe_tile.c:10: In file included from drivers/gpu/drm/xe/xe_device.h:9: In file included from include/drm/drm_util.h:36: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/xe/xe_tile.c:10: In file included from drivers/gpu/drm/xe/xe_device.h:9: In file included from include/drm/drm_util.h:36: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 99 | set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/xe/xe_tile.c:10: In file included from drivers/gpu/drm/xe/xe_device.h:9: In file included from include/drm/drm_util.h:36: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 101 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/xe/xe_tile.c:10: In file included from drivers/gpu/drm/xe/xe_device.h:9: In file included from include/drm/drm_util.h:36: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ vim +99 include/linux/fault-inject.h cc689c5b352d4a Ingo Molnar 2017-02-01 93 0866e82e40fba4 Kefeng Wang 2023-05-16 94 #ifdef CONFIG_FAIL_PAGE_ALLOC 53dabce2652fb8 Vlastimil Babka 2024-07-11 95 bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order); 0866e82e40fba4 Kefeng Wang 2023-05-16 96 #else 53dabce2652fb8 Vlastimil Babka 2024-07-11 97 static inline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) 0866e82e40fba4 Kefeng Wang 2023-05-16 98 { 0866e82e40fba4 Kefeng Wang 2023-05-16 @99 return false; 0866e82e40fba4 Kefeng Wang 2023-05-16 100 } 0866e82e40fba4 Kefeng Wang 2023-05-16 101 #endif /* CONFIG_FAIL_PAGE_ALLOC */ 0866e82e40fba4 Kefeng Wang 2023-05-16 102 :::::: The code at line 99 was first introduced by commit :::::: 0866e82e40fba45dae07e6e8385929b574201752 mm: page_alloc: split out FAIL_PAGE_ALLOC :::::: TO: Kefeng Wang :::::: CC: Andrew Morton -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki