From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (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 2B67E47F5C; Wed, 6 Dec 2023 22:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Zd6lJ6SK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701902290; x=1733438290; h=date:from:to:cc:subject:message-id:mime-version; bh=GcC6wJ3LE/3oPqIUHPprnMz0OcVjjVB4BvxT/DNaPlk=; b=Zd6lJ6SKZy+BcGNYLtW+xt3lHm3v777mot7wCoiRTuOmiwdtJ19NuViE 25Y5oevIa8ldM6gc35lJV1aFbZPeTjGUfROLHYx1Fs/GIT1NghznYrqCp kY2zyyn/YBtbSfI/eHwdwnEv86lJcOlLOFyPqiGJdl3i/DfFa6A6viYPl d6YNm1eXYBr+aV963bwA6UNi/oHlL4Y9Uuo/mvoMWdLnwwM83FCZob0FU YqWQ5S2SmsKegLXEf7Nr1sQ0HCbufuKbocOE0rzfLosISFs2UNlAVyg5A 8tnVo8nb8saBq6OQR+A60CaSzEOjRuTQbiobYi6tISoIqxlMXMivUiC4B Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="425288994" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="425288994" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2023 14:38:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="1102973740" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="1102973740" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 06 Dec 2023 14:38:06 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rB0Wp-000BWE-25; Wed, 06 Dec 2023 22:38:03 +0000 Date: Thu, 7 Dec 2023 06:37:26 +0800 From: kernel test robot To: Alexandre Ghiti Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Palmer Dabbelt Subject: [palmer:for-next 2/8] include/linux/pgtable.h:302:29: error: function cannot return array type 'pgd_t' (aka 'unsigned int[2]') Message-ID: <202312070639.zaV2SHvs-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://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git for-next head: f95bc0e118cb852a3419f92be510be7356688632 commit: b9f2de9b90f016ce08fdaa3cba88a806dcbfd604 [2/8] mm: Introduce pudp/p4dp/pgdp_get() functions config: arm-defconfig (https://download.01.org/0day-ci/archive/20231207/202312070639.zaV2SHvs-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231207/202312070639.zaV2SHvs-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/202312070639.zaV2SHvs-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:29: >> include/linux/pgtable.h:302:29: error: function cannot return array type 'pgd_t' (aka 'unsigned int[2]') static inline pgd_t pgdp_get(pgd_t *pgdp) ^ >> include/linux/pgtable.h:304:9: warning: incompatible pointer to integer conversion returning 'const volatile pmdval_t *' (aka 'const volatile unsigned int *') from a function with result type 'int' [-Wint-conversion] return READ_ONCE(*pgdp); ^~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE' #define READ_ONCE(x) \ ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:97:11: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:97:25: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:113:11: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:113:27: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:5: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds] (set1->sig[2] == set2->sig[2]) && ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:21: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds] (set1->sig[2] == set2->sig[2]) && ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:156:1: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds] _SIG_SET_BINOP(sigorsets, _sig_or) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:137:8: note: expanded from macro '_SIG_SET_BINOP' a3 = a->sig[3]; a2 = a->sig[2]; \ ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/arm/kernel/asm-offsets.c:12: vim +302 include/linux/pgtable.h 300 301 #ifndef pgdp_get > 302 static inline pgd_t pgdp_get(pgd_t *pgdp) 303 { > 304 return READ_ONCE(*pgdp); 305 } 306 #endif 307 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki