From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (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 26C05134B3; Fri, 4 Aug 2023 15:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691162986; x=1722698986; h=date:from:to:cc:subject:message-id:mime-version; bh=VzXt7Z7eMo8qbFrIzQm83Cf7+kKWSuq0TCW2k5TVG1w=; b=eLukJC1te9UFvUkkbUq0oorJYOTjAQjtunSk9BVk7kZJXZ/GGVKXxdYR mozlmn9Z83AaLoDLW0ZRYOjD03tnxv0kzy3db4RB/ek0TYy24I2d3OF4S zegFn8X04/hCELYDazktxEl4cB8KGzrMlpY08NbFG3oNHH04fySAZfrlQ /dzCXJKGN/V2uLlrom+XTQTYlnlNLHsuZlJ32NbfU5Ze3Os3+ZWZuWyac heA0QE3wvGL9OPSxAy0ejT8RJHWG3wfMOrcyTzwrg+pC2eWDszbPPt9pX 5osS7oPDRpJ+sQ9oLa0oW0ooVK2YdO6Eqi10R8JV5YEOsmhAGke9tG7Q6 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="367639328" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="367639328" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 08:29:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="795454136" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="795454136" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 04 Aug 2023 08:29:38 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qRwkD-0002vJ-0k; Fri, 04 Aug 2023 15:29:37 +0000 Date: Fri, 4 Aug 2023 23:28:42 +0800 From: kernel test robot To: Thomas Gleixner Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [tglx-devel:x86/topo-full 146/149] arch/x86/include/asm/topology.h:222:19: error: conflicting types for 'topology_max_dies_per_package' Message-ID: <202308042359.aBTHB2ad-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 Hi Thomas, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/topo-full head: 5aae6a70fa86fdf5e16adebb719d826e7cca486d commit: 2c5be4884ee9aa9511aecce73e1240c27261a65e [146/149] x86/cpu/topology: Rename topology_max_die_per_package() config: x86_64-randconfig-x003-20230731 (https://download.01.org/0day-ci/archive/20230804/202308042359.aBTHB2ad-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230804/202308042359.aBTHB2ad-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/202308042359.aBTHB2ad-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/x86/kernel/asm-offsets.c:9: In file included from include/linux/crypto.h:17: In file included from include/linux/slab.h:16: In file included from include/linux/gfp.h:8: In file included from include/linux/topology.h:36: >> arch/x86/include/asm/topology.h:222:19: error: conflicting types for 'topology_max_dies_per_package' static inline int topology_max_dies_per_package(void) { return 1; } ^ arch/x86/include/asm/topology.h:155:28: note: previous definition is here static inline unsigned int topology_max_dies_per_package(void) ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: 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 (that has type 'unsigned long[1]') [-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: 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 (that has type 'unsigned long[1]') [-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: 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:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] set->sig[1] | set->sig[0]) == 0; ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: 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:100:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] return (set->sig[1] | set->sig[0]) == 0; ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: 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 (that has type 'const unsigned long[1]') [-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: 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 (that has type 'const unsigned long[1]') [-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: vim +/topology_max_dies_per_package +222 arch/x86/include/asm/topology.h 219 220 #else /* CONFIG_SMP */ 221 static inline int topology_phys_to_logical_pkg(unsigned int pkg) { return 0; } > 222 static inline int topology_max_dies_per_package(void) { return 1; } 223 static inline int topology_max_smt_threads(void) { return 1; } 224 static inline bool topology_is_primary_thread(unsigned int cpu) { return true; } 225 static inline bool topology_smt_supported(void) { return false; } 226 static inline unsigned int topology_amd_nodes_per_pkg(void) { return 0; }; 227 static inline void topology_apply_cmdline_limits_early(void) { } 228 #endif /* !CONFIG_SMP */ 229 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki