From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.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 D19321879; Sun, 23 Jul 2023 16:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690128442; x=1721664442; h=date:from:to:cc:subject:message-id:mime-version; bh=v5G05P/S5W2A6FKEOwylZgddwqxLSmwh88KbpiyypYU=; b=CfRo8M+e77vFnCDNEmaD8tXR3wSn3ZY0iQWjjNdNMzNM79eLQRWR2Mik 0Gxf2oNMasks/lqaeoLvnAN3BbsjetgeFnOvfnV2e8gbBGEIvm6Q3QvlA Vfz5IQGcTGyad4fT8rWD98AZ0vENTvzjsczHzkT18o6ga+4Rm/L0CP+pf w8ZFDFy+bzMqJdeRTrc3dkt5hCCGpe5uiGlWGFNphvLpOvX5iQxTzRi0z zkIpZc2kcEF4lz1mNZB1L+By655MyifOXvu3Frht1o3jR97v2CKHB1Ckw SiQiF6aZQv/hzsS7V4DzKNCiUGJIfSMIkpHn5ra+o+acZ01jN2V83Mrq/ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="364748186" X-IronPort-AV: E=Sophos;i="6.01,227,1684825200"; d="scan'208";a="364748186" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2023 09:07:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="815560610" X-IronPort-AV: E=Sophos;i="6.01,227,1684825200"; d="scan'208";a="815560610" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 23 Jul 2023 09:07:20 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qNbc7-00096b-2w; Sun, 23 Jul 2023 16:07:19 +0000 Date: Mon, 24 Jul 2023 00:07:09 +0800 From: kernel test robot To: Thomas Gleixner Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [tglx-devel:x86/topology 77/87] arch/x86/include/asm/topology.h:192:71: error: expected ';' after return statement Message-ID: <202307240033.a9TbbmRh-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/tglx/devel.git x86/topology head: 509d85a7567c105935a9080b84883f135451d3b0 commit: 97f82a5edca7bd876a8715ac3f1533e7ffabd7ad [77/87] x86/cpu/amd: Provide a separate acessor for Node ID config: x86_64-buildonly-randconfig-r001-20230723 (https://download.01.org/0day-ci/archive/20230724/202307240033.a9TbbmRh-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce: (https://download.01.org/0day-ci/archive/20230724/202307240033.a9TbbmRh-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/202307240033.a9TbbmRh-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:192:71: error: expected ';' after return statement static inline unsigned int topology_amd_nodes_per_pkg(void) { return 0 }; ^ ; 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 (which contains 1 element) [-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 (which contains 1 element) [-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 (which contains 1 element) [-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 (which contains 1 element) [-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 (which contains 1 element) [-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 (which contains 1 element) [-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: vim +192 arch/x86/include/asm/topology.h 172 173 /** 174 * topology_is_primary_thread - Check whether CPU is the primary SMT thread 175 * @cpu: CPU to check 176 */ 177 static inline bool topology_is_primary_thread(unsigned int cpu) 178 { 179 return cpumask_test_cpu(cpu, cpu_primary_thread_mask); 180 } 181 #else /* CONFIG_SMP */ 182 #define topology_max_packages() (1) 183 static inline int 184 topology_update_package_map(unsigned int apicid, unsigned int cpu) { return 0; } 185 static inline int 186 topology_update_die_map(unsigned int dieid, unsigned int cpu) { return 0; } 187 static inline int topology_phys_to_logical_pkg(unsigned int pkg) { return 0; } 188 static inline int topology_max_die_per_package(void) { return 1; } 189 static inline int topology_max_smt_threads(void) { return 1; } 190 static inline bool topology_is_primary_thread(unsigned int cpu) { return true; } 191 static inline bool topology_smt_supported(void) { return false; } > 192 static inline unsigned int topology_amd_nodes_per_pkg(void) { return 0 }; 193 #endif /* !CONFIG_SMP */ 194 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki