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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 314CBC46CD4 for ; Wed, 27 Dec 2023 20:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iVXF5UCRqU2jVI0KedwERA7ZlQ6cYNONOQJ8eeSlXKA=; b=ek+YMaPTvH5ZbU ReylfORwoM744xJypWLQF3U81h2ovgIPcwxjO+mY6E27K+1N2JycgRUtypYsXGB5LPrvyxJm/kAQz f9lzkuxXKnpV8k1Jl9ECJJ+qmHkG2Tmf3pa1ADdRsYjw0ecRi7dA3MB/KCGVnseYYigbRx1sX4HA8 qZoNasvRPIochKrKmI80vRaNgeQj9XCKcnzftBgxNPE2Ee9MXjWY4SmXaADqN86e/agstuEiDkQxx gbHosjr19E74LSrCVGTiD8UWIL1Rzzx4YN1YoJv5RsVbOwgfL0kniPqnZvtKnaxB9maTkLx/AfrdP Z1DvtrIwt2WxkLznuqpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIanh-00FTgB-03; Wed, 27 Dec 2023 20:46:49 +0000 Received: from mgamail.intel.com ([198.175.65.13]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rIanb-00FTeF-1A for kexec@lists.infradead.org; Wed, 27 Dec 2023 20:46:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703710004; x=1735246004; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WlZslcJTLUSFPtfxC7Fw+lCqv8h0iz3VyjcE6pSLkRA=; b=mLiU4lcooknuVJWHsQS8NxG8SeLqHgye7gVVEg87qw49W17bixXl57oo eFsangInJEKVRwHOM1Gtpql0VcRsF1G/UPv/6DgKFQhU0u1ZSoS+zzzXB TAy391Mih3J47xXbikrrpeIOC6a4gpkDZXafAuKowXZRAzZ+fZPG1UyNh gGzjksMWiAbHDlyl30kngxDHF0dvrXTAXGFChupxb1NY14K6NhRiOZip4 OSjo/x9AVQYLL9QSdKniEy/LOa1mCZxj63c4tF00qrPg26qlhGGP7piK9 mRO7vpF/qP9hdtOeqrhKTglBtUcD7tZ9exSC9bAR3OEogSro9r9fregLQ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="3566740" X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="3566740" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 12:46:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="868949895" X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="868949895" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 27 Dec 2023 12:46:38 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rIanT-000FkS-2l; Wed, 27 Dec 2023 20:46:35 +0000 Date: Thu, 28 Dec 2023 04:45:56 +0800 From: kernel test robot To: Pingfan Liu , linuxppc-dev@lists.ozlabs.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Baoquan He , Pingfan Liu , kexec@lists.infradead.org, Mahesh Salgaonkar , Ming Lei , Nicholas Piggin , Sourabh Jain , Hari Bathini , Wen Xiong Subject: Re: [PATCHv10 3/3] powerpc/smp: Allow hole in paca_ptrs to accommodate boot_cpu Message-ID: <202312280454.Et1Ovm5u-lkp@intel.com> References: <20231227024147.12485-1-kernelfans@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231227024147.12485-1-kernelfans@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231227_124643_522403_94DE09A0 X-CRM114-Status: GOOD ( 11.09 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org Hi Pingfan, kernel test robot noticed the following build errors: [auto build test ERROR on powerpc/next] [also build test ERROR on powerpc/fixes linus/master v6.7-rc7 next-20231222] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Pingfan-Liu/powerpc-kernel-Remove-check-on-paca_ptrs_size/20231227-104412 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next patch link: https://lore.kernel.org/r/20231227024147.12485-1-kernelfans%40gmail.com patch subject: [PATCHv10 3/3] powerpc/smp: Allow hole in paca_ptrs to accommodate boot_cpu config: powerpc64-randconfig-001-20231227 (https://download.01.org/0day-ci/archive/20231228/202312280454.Et1Ovm5u-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231228/202312280454.Et1Ovm5u-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/202312280454.Et1Ovm5u-lkp@intel.com/ All error/warnings (new ones prefixed by >>): >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:56:40: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__is_constexpr((x) - (y)), \ ^ include/linux/compiler.h:236:48: note: expanded from macro '__is_constexpr' (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:56:40: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__is_constexpr((x) - (y)), \ ~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:236:48: note: expanded from macro '__is_constexpr' (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:56:40: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__is_constexpr((x) - (y)), \ ^ include/linux/compiler.h:236:48: note: expanded from macro '__is_constexpr' (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:56:40: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__is_constexpr((x) - (y)), \ ~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:236:48: note: expanded from macro '__is_constexpr' (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ^ include/linux/minmax.h:46:27: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ~~~~~~~~~~^~~~~ include/linux/minmax.h:46:27: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ^ include/linux/minmax.h:46:27: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ~~~~~~~~~~^~~~~ include/linux/minmax.h:46:27: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ^ include/linux/minmax.h:46:51: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ~~~~~~~~~~^~~~~ include/linux/minmax.h:46:51: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ^ include/linux/minmax.h:46:51: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:57:13: note: expanded from macro '__careful_cmp' __cmp(op, x, y), \ ~~~~~~~~~~^~~~~ include/linux/minmax.h:46:51: note: expanded from macro '__cmp' #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y)) ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ^ include/linux/minmax.h:49:9: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:49:9: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ^ include/linux/minmax.h:49:9: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:49:9: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ^ include/linux/minmax.h:49:24: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:49:24: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ >> arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ^ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ^ include/linux/minmax.h:49:24: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ >> arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ include/linux/minmax.h:92:38: note: expanded from macro 'max' #define max(x, y) __careful_cmp(max, x, y) ~~~~~~~~~~~~~~~~~~~^~~~~ include/linux/minmax.h:58:18: note: expanded from macro '__careful_cmp' __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:49:24: note: expanded from macro '__cmp_once' typeof(x) unique_x = (x); \ ^ arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler.h:236:48: note: expanded from macro '__is_constexpr' (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) ^ include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) ^ include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:54: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:47: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler.h:236:48: note: expanded from macro '__is_constexpr' (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) ^ include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) ^~~~ arch/powerpc/kernel/paca.c:248:48: error: use of undeclared identifier 'threads_in_core'; did you mean 'cpu_thread_in_core'? cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ^~~~~~~~~~~~~~~ cpu_thread_in_core include/linux/align.h:8:43: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ include/uapi/linux/const.h:31:70: note: expanded from macro '__ALIGN_KERNEL' #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) ^ include/uapi/linux/const.h:32:58: note: expanded from macro '__ALIGN_KERNEL_MASK' #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) ^ note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler.h:236:48: note: expanded from macro '__is_constexpr' (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) ^ include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) ^ include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) ^ arch/powerpc/include/asm/cputhreads.h:48:19: note: 'cpu_thread_in_core' declared here static inline int cpu_thread_in_core(int cpu) ^ arch/powerpc/kernel/paca.c:248:26: warning: cast to smaller integer type 'typeof ((0 + 1))' (aka 'int') from 'int (*)(int)' [-Wpointer-to-int-cast] cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/align.h:8:22: note: expanded from macro 'ALIGN' #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) ^ vim +248 arch/powerpc/kernel/paca.c 242 243 void __init allocate_paca_ptrs(void) 244 { 245 unsigned int cnt; 246 247 /* paca_ptrs should be big enough to hold boot cpu */ > 248 cnt = max((unsigned int)ALIGN(boot_cpuid + 1, threads_in_core), nr_cpu_ids); 249 paca_last_cpu_num = cnt; 250 paca_ptrs_size = sizeof(struct paca_struct *) * cnt; 251 paca_ptrs = memblock_alloc_raw(paca_ptrs_size, SMP_CACHE_BYTES); 252 if (!paca_ptrs) 253 panic("Failed to allocate %d bytes for paca pointers\n", 254 paca_ptrs_size); 255 256 memset(paca_ptrs, 0x88, paca_ptrs_size); 257 } 258 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec