Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp211791lqz; Fri, 29 Mar 2024 13:55:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXueUtafiXBFZqE6yoAQylnmAAtmWTZ+zgEGCULmQ+0X5sO8WeYUjZCI5v0ymVc41kBxf9khUcquyX9U27cQo+WV/i68tYzcpPUHGsJbw== X-Google-Smtp-Source: AGHT+IHSxw90W98FAsk6RpIMjprPTpHud+FIe0H0P0Ar95zkBArPvz56NK0aivQQYhdub959m/k/ X-Received: by 2002:a05:6830:14c1:b0:6e7:3a:bf39 with SMTP id t1-20020a05683014c100b006e7003abf39mr3513109otq.10.1711745721328; Fri, 29 Mar 2024 13:55:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711745721; cv=pass; d=google.com; s=arc-20160816; b=K37pVuigNOly1yoMEcmGyQA4vDG94l/8BjW8J8fWEqBtw5vAqDiauiNA0cfOa4Wtmm 7d4kS9Q7v9N5q4bg729/t8ViaMbHQw7wOrBbQZpRdfuYNI5og9Wt6fQp7ZKIUHxofZjR GVTnx8kgdHVrYK25qzM9gi4WWBS395D7RF4y1yjVxoqFlHZSivhM7TArMz5XuiXgTFPU 4yxAr1qBM0NF/m0kj4fm39lQMy8E/rnzLQOas9JlLp/6zdAFF2jvkSWCl0ufnVuxiwDz woudr2Ws5xZhYyxOKjVvqrc/g+C8yT8rC19WG0A1y6RuHc0XeA1zjKsgQ71JnMKWqe9+ ZMyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Ue+833K4p53XYC12Y76VM1KE/KNjes2eukV1CgGSvo0=; fh=JMl1w0QyM58QB0gmKBld6lCYg/9Msbtmwd1jpnnobeQ=; b=EXQ0pSvOOh/F/u0lagD0UPRxGtwFbnvE1M4q7xe+xl97/XzGmBYnffgY7NQMvo9xyR /D5TFT3P0ba8VBfQR1ADa9w4XDg/HfVcd+hFmXuXxNszNKHiTVYrJKtICB7/gmTAenjl FnPDnpvPy3cQIja6luxqR1ykflXohphdQhQxNnz3Oy0gqrkl45zOd6vPlSk8umTCSH7j IXSjfbgdjI3Dqw3k5dbJwKQSH5WbEFgf5eW/wH9AXrfcpowSmBT7JD+AcARmj2t73NTT TblwALuR4b+2NHUKc2bKDD3LCsOcsFNE2GmRnGEt9660LamWdrQoDBVN0MziQYP6RzSs LSag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QSFW2LEc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l12-20020ad4424c000000b00696833e8ad6si4368469qvq.158.2024.03.29.13.55.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 13:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QSFW2LEc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ACC651C20B92 for ; Fri, 29 Mar 2024 20:55:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF559137926; Fri, 29 Mar 2024 20:55:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QSFW2LEc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1C3F33BB2A; Fri, 29 Mar 2024 20:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711745713; cv=none; b=ueyVO/zKHylSjrHyEkfJT6lzO1eUfbO9B67TAmx8s61iserNNN3CSVn4tgMbvqB6zrI3iEslvuYlG5dwQR9fRGHSqw/I2V4cYJnlQkR0TZcKB4TR1Xj/gA/uCMOjqG1jVv+Qf+6alSYgcBB2Ofy/TAyI8EkoHUyy892gntqdqjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711745713; c=relaxed/simple; bh=HKGXLL/mwNCR0ODx3vz+BYkjPcnHX2BMF5VH4Qq1tTM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fW7ZEqUfyMFJKbbwbE4/d9xSgV22o6dgYAV/Z2cHctaucjFdZ0LbjyiK+/W3YFFW2DJvxlvSzdjTMDMN/fONe0ya5Siiew8HDSPvE5zQ9pkJP8Cr01j1nTTHo1GXqFGpivIWg0nfnA6QNiHwWFrOQtfedWZQLAvwrda3Mreu8OI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QSFW2LEc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5FB9C433F1; Fri, 29 Mar 2024 20:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711745712; bh=HKGXLL/mwNCR0ODx3vz+BYkjPcnHX2BMF5VH4Qq1tTM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=QSFW2LEc5bfOs10Uto6lO+gYK2r3QFqfbELW8CSNpGb26fmyQkQtf9eIpIY2Liqas IVBmqF1QDTBYTKHPznPSoJV78SY1s3Uvr2PkdZYchg3Hs4roV3xUiFZ8d4b1Qkbq2M UEFQx0b3Jz43UOLn1BuWg2zqyeA6tQdhSHkGxHcMs+URfdLSOJSSHbfdcvP+5d+2Fw xGbt4m7nIzjLNyGAt1cclf4FqxyQCSSV7DIFa9gqdWKR5CVnXvjwxy+TCcHP/dnJTH KzRIcAkXFQTnj4oSWTdSCg4qEJBo4Z/lqkoVYSEcoqDNLdYsLbrr/tLi0JqAqruVIh An+deYpGU2dyA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id B5A5CCE16F0; Fri, 29 Mar 2024 11:48:37 -0700 (PDT) Date: Fri, 29 Mar 2024 11:48:37 -0700 From: "Paul E. McKenney" To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [paulmck-rcu:dev.2024.03.27b 64/69] arch/xtensa/include/asm/cmpxchg.h:77:25: error: implicit declaration of function 'cmpxchg_emu_u8' Message-ID: <0303151f-c12e-4350-804a-11e3b734df91@paulmck-laptop> Reply-To: paulmck@kernel.org References: <202403292321.T55etywH-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202403292321.T55etywH-lkp@intel.com> On Fri, Mar 29, 2024 at 11:08:04PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2024.03.27b > head: 786fab3085d764055a78edb54023420920344333 > commit: b3b1a154281fc97efc4c1d5818a83c29c228dbd5 [64/69] xtensa: Emulate one-byte and two-byte cmpxchg > config: xtensa-allnoconfig (https://download.01.org/0day-ci/archive/20240329/202403292321.T55etywH-lkp@intel.com/config) > compiler: xtensa-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403292321.T55etywH-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/202403292321.T55etywH-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > In file included from arch/xtensa/include/asm/atomic.h:19, > from include/linux/atomic.h:7, > from include/asm-generic/bitops/atomic.h:5, > from arch/xtensa/include/asm/bitops.h:192, > from include/linux/bitops.h:68, > from include/linux/log2.h:12, > from kernel/bounds.c:13: > arch/xtensa/include/asm/cmpxchg.h: In function '__cmpxchg': > >> arch/xtensa/include/asm/cmpxchg.h:77:25: error: implicit declaration of function 'cmpxchg_emu_u8' [-Werror=implicit-function-declaration] > 77 | case 1: return cmpxchg_emu_u8((volatile u8 *)ptr, old, new); > | ^~~~~~~~~~~~~~ Good catch! Does the diff at the end fix this? Thanx, Paul > >> arch/xtensa/include/asm/cmpxchg.h:78:25: error: implicit declaration of function 'cmpxchg_emu_u16' [-Werror=implicit-function-declaration] > 78 | case 2: return cmpxchg_emu_u16((volatile u16 *)ptr, 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 +77 arch/xtensa/include/asm/cmpxchg.h > > 72 > 73 static __inline__ unsigned long > 74 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) > 75 { > 76 switch (size) { > > 77 case 1: return cmpxchg_emu_u8((volatile u8 *)ptr, old, new); > > 78 case 2: return cmpxchg_emu_u16((volatile u16 *)ptr, old, new); > 79 case 4: return __cmpxchg_u32(ptr, old, new); > 80 default: __cmpxchg_called_with_bad_pointer(); > 81 return old; > 82 } > 83 } > 84 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki commit 663161aaa5c3286dcfc9ba2cd9e12170f9354ea7 Author: Paul E. McKenney Date: Fri Mar 29 11:47:13 2024 -0700 squash! xtensa: Emulate one-byte and two-byte cmpxchg [ paulmck: Apply kernel test robot feedback. ] Signed-off-by: Paul E. McKenney diff --git a/arch/xtensa/include/asm/cmpxchg.h b/arch/xtensa/include/asm/cmpxchg.h index bcce915a98e21..a0f9a2070209b 100644 --- a/arch/xtensa/include/asm/cmpxchg.h +++ b/arch/xtensa/include/asm/cmpxchg.h @@ -15,6 +15,7 @@ #include #include +#include /* * cmpxchg