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 959A0CD1284 for ; Tue, 2 Apr 2024 13:15:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2644F6B0099; Tue, 2 Apr 2024 09:15:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 213E66B009B; Tue, 2 Apr 2024 09:15:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0DC6C6B009C; Tue, 2 Apr 2024 09:15:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E49696B0099 for ; Tue, 2 Apr 2024 09:15:54 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 97959406E7 for ; Tue, 2 Apr 2024 13:15:54 +0000 (UTC) X-FDA: 81964639428.22.8A025D7 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by imf26.hostedemail.com (Postfix) with ESMTP id E3E7B140020 for ; Tue, 2 Apr 2024 13:15:50 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=h+xK7rev; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712063751; 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=V0d60p/etE8V7Su/y+9U6KCK56NwXH/9QnOFpd5+a2Y=; b=I7GIi6zLr4qN6s4qaGHUgCosrOx5p7Y7/IdEs8Fk5f7bggeyCjY6IDHfgr/uIZF6DOmlw1 PFQwPyXZEjdUoiM6uJY5vZkGB4c30TvTRw5DcElJKNNdlv6yFVGP5r930SgSD75mZQLEWW Nj2lptXlCf7EvLrkxYwzdlbT9UhisC4= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=h+xK7rev; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712063751; a=rsa-sha256; cv=none; b=W+Y67Mk/QEUYxISnTP8BgU3IAtrN45naLC9Z8iO2MEMYTctIC+O7dh4KdDgEFU/Xzw1Xy/ rmtBnvXS8waL6uc0uSUfogqqdVJWfE2xjOYp555tktzYYCzzB+duI8pcDuWHgFfD3NgpGJ 6Heiu4Cxs1e+LEW/sFhtle6pwARmH5s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712063751; x=1743599751; h=date:from:to:cc:subject:message-id:mime-version; bh=kt3p98lsL93vSzqtqYHdo03/45fovZP9+6WrxafvVp8=; b=h+xK7revBU6umjLHYIwxl8uDm6rmcNUoSolTc6kWRZhKI5As762Z4chr 8uMZWZGeVtDoRuUofLzOuLYBXZ7CKX7H96WQ4dCozYz2EPYVXwTgi5/Ay nnuQ4U5iY//r3nTMKrtEMb44tXl6IaJ/uSw3XVBMY9GYEjKdpB9gZRyV8 r8iEMOv2TWaihMeM44s/fRYuz1WyLkLbckwBsBGjPwc7buVo54B0aY1yT vY8Gh+tVFGyabAybFUEeYooXB1hjXvix5WOgthIm1AHb10dPiVlTWToRK h7z2pNjFSg/x8DajPSlUOP1SDz4CZnQYKbbnn64GwtazXWHn2FsSH9LnI w==; X-CSE-ConnectionGUID: R3pagOTCRLGwFE4RTLWwWQ== X-CSE-MsgGUID: hbFNnTI9QaGJXlc+74R/Sw== X-IronPort-AV: E=McAfee;i="6600,9927,11031"; a="24687897" X-IronPort-AV: E=Sophos;i="6.07,175,1708416000"; d="scan'208";a="24687897" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2024 06:15:50 -0700 X-CSE-ConnectionGUID: XMBRVS4tRXaDgh+D0JEQoA== X-CSE-MsgGUID: +c33UjftTAa5iRQFAz8rZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,175,1708416000"; d="scan'208";a="22537593" Received: from lkp-server02.sh.intel.com (HELO 90ee3aa53dbd) ([10.239.97.151]) by fmviesa003.fm.intel.com with ESMTP; 02 Apr 2024 06:15:48 -0700 Received: from kbuild by 90ee3aa53dbd with local (Exim 4.96) (envelope-from ) id 1rrdzN-0001D3-3B; Tue, 02 Apr 2024 13:15:45 +0000 Date: Tue, 2 Apr 2024 21:15:39 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 2555/3220] arch/csky/include/asm/cmpxchg.h:138:25: error: implicit declaration of function 'cmpxchg_emu_u8' Message-ID: <202404022106.mYwpypit-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: E3E7B140020 X-Stat-Signature: u1ksntqf66wgrw6jqp7dxs9iyco89g5g X-Rspam-User: X-HE-Tag: 1712063750-811818 X-HE-Meta: U2FsdGVkX1/t5UdZsrjQXOG/59gkmhlSlZQo+ZCGo3JHW8/PTx/sE9t2eDyip5R4FGQDbiENpiwD+/oMJVBilOvYEr0Jt6mAfzLkCvh6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MZDXiS0yop2UnCC8s9I+m+MvPVXNY3bRpxoEwEHsVdPjJDyD58aXiphc//dgrtxnU5muebvoCalAQtjfjqudU210u+iSHT7Z3sXzcfHhy5CA6U5ypgFq+jb+nL/T7aR248hDrQLtZR692mY6Wh2wmBLXHmhNYpalVF1lfPlu53WHRAgf/Cf1A3Ms= 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: c0b832517f627ead3388c6f0c74e8ac10ad5774b commit: ea7f9bb7268e89fff8590ab5a360f5b27a0fc19a [2555/3220] csky: Emulate one-byte and two-byte cmpxchg config: csky-randconfig-r012-20230202 (https://download.01.org/0day-ci/archive/20240402/202404022106.mYwpypit-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240402/202404022106.mYwpypit-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/202404022106.mYwpypit-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/csky/include/asm/atomic.h:9, from include/linux/atomic.h:7, from include/asm-generic/bitops/lock.h:5, from arch/csky/include/asm/bitops.h:69, from include/linux/bitops.h:68, from include/linux/log2.h:12, from kernel/bounds.c:13: include/linux/atomic/atomic-arch-fallback.h: In function 'raw_atomic_cmpxchg': >> arch/csky/include/asm/cmpxchg.h:138:25: error: implicit declaration of function 'cmpxchg_emu_u8' [-Werror=implicit-function-declaration] 138 | __ret = cmpxchg_emu_u8((volatile u8 *)__ptr, __old, __new); \ | ^~~~~~~~~~~~~~ arch/csky/include/asm/cmpxchg.h:165:10: note: in expansion of macro '__cmpxchg' 165 | (__cmpxchg((ptr), (o), (n), sizeof(*(ptr)))) | ^~~~~~~~~ include/linux/atomic/atomic-arch-fallback.h:55:21: note: in expansion of macro 'arch_cmpxchg' 55 | #define raw_cmpxchg arch_cmpxchg | ^~~~~~~~~~~~ include/linux/atomic/atomic-arch-fallback.h:2026:16: note: in expansion of macro 'raw_cmpxchg' 2026 | return raw_cmpxchg(&v->counter, old, new); | ^~~~~~~~~~~ >> arch/csky/include/asm/cmpxchg.h:141:25: error: implicit declaration of function 'cmpxchg_emu_u16' [-Werror=implicit-function-declaration] 141 | __ret = cmpxchg_emu_u16((volatile u16 *)__ptr, __old, __new); \ | ^~~~~~~~~~~~~~~ arch/csky/include/asm/cmpxchg.h:165:10: note: in expansion of macro '__cmpxchg' 165 | (__cmpxchg((ptr), (o), (n), sizeof(*(ptr)))) | ^~~~~~~~~ include/linux/atomic/atomic-arch-fallback.h:55:21: note: in expansion of macro 'arch_cmpxchg' 55 | #define raw_cmpxchg arch_cmpxchg | ^~~~~~~~~~~~ include/linux/atomic/atomic-arch-fallback.h:2026:16: note: in expansion of macro 'raw_cmpxchg' 2026 | return raw_cmpxchg(&v->counter, old, new); | ^~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1197: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:240: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:240: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/cmpxchg_emu_u8 +138 arch/csky/include/asm/cmpxchg.h 125 126 #define arch_cmpxchg_acquire(ptr, o, n) \ 127 (__cmpxchg_acquire((ptr), (o), (n), sizeof(*(ptr)))) 128 129 #define __cmpxchg(ptr, old, new, size) \ 130 ({ \ 131 __typeof__(ptr) __ptr = (ptr); \ 132 __typeof__(new) __new = (new); \ 133 __typeof__(new) __tmp; \ 134 __typeof__(old) __old = (old); \ 135 __typeof__(*(ptr)) __ret; \ 136 switch (size) { \ 137 case 1: \ > 138 __ret = cmpxchg_emu_u8((volatile u8 *)__ptr, __old, __new); \ 139 break; \ 140 case 2: \ > 141 __ret = cmpxchg_emu_u16((volatile u16 *)__ptr, __old, __new); \ 142 break; \ 143 case 4: \ 144 asm volatile ( \ 145 RELEASE_FENCE \ 146 "1: ldex.w %0, (%3) \n" \ 147 " cmpne %0, %4 \n" \ 148 " bt 2f \n" \ 149 " mov %1, %2 \n" \ 150 " stex.w %1, (%3) \n" \ 151 " bez %1, 1b \n" \ 152 FULL_FENCE \ 153 "2: \n" \ 154 : "=&r" (__ret), "=&r" (__tmp) \ 155 : "r" (__new), "r"(__ptr), "r"(__old) \ 156 :); \ 157 break; \ 158 default: \ 159 BUILD_BUG(); \ 160 } \ 161 __ret; \ 162 }) 163 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki