Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp187902lqb; Tue, 28 May 2024 12:27:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWub8PrntIp9Y8WMEBMYxjzSCZ9LSXaAxSeI7QPncWVLdC0WA1WEzKA0NO3n8A5eLYhjUSp6WyBrapfw9idPuEwlaV/dXP5rQyrmL+dYw== X-Google-Smtp-Source: AGHT+IFEfB/3Tb4mgnE8eiIH4Z+iur0j1esRdaWGmbdQdjF6eRAXeNKBndZjas/Wx9/vqH83vpA8 X-Received: by 2002:a17:906:4916:b0:a61:a705:56f3 with SMTP id a640c23a62f3a-a642d80dd98mr2624066b.35.1716924434838; Tue, 28 May 2024 12:27:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716924434; cv=pass; d=google.com; s=arc-20160816; b=tLUjrpjh5+ajtcHp5XXN5qusSM9wnlU6g9SBV/bhrcxGOPy9jZKbBroIm17GC50lIt GHk6s4XQLZQBWwx5FEMsm49WsghPt5DM3XspYt/sYHQYLEc3Tqv51DTRie3DvI2RMZBq YwtmWiyC+gdcdgrHbCtUefjYpC8VYDCiBvLn9vuHpUFpXGXIZ3EyNd3be0blazVjAPUY Yts4AuoQD5vKwdNX85ZAaT6FSza9W2atslHKds56d8/FN9bDDeGLpsOrCuV82rt2zcI4 dWSjZ1uU3smxMMDLYskZ4hAvaZYT1y5V/tAMvotUHJwIdvO0+Lyfkj3ehbhBYGKT94lw 3JEA== 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=CD2+P6P6hNj03OqYmNMK9mIwwoDdR8Y74QWMhxLLoYs=; fh=JMl1w0QyM58QB0gmKBld6lCYg/9Msbtmwd1jpnnobeQ=; b=bS5ouT/HWvU070ev9NXsMeV872jzk81QX1yKnYNsL+nHig93PzbcFxI6imzYq6C/Xq 9INt6D7MgiBqtQnhA5Caa3YPnkrL5opf2sRDtYwC21g1IBJ2r2bNwJrV7Tp2Gaa6r7xG MK6dIqxcX1eLTb1DetPp/TKHhUsz2zMAq9M1PfQg9/QqVvikz/+SFxYkWHpCtcqReENI n6wC73gPvva7JFGCg+m3U6kIptToox1bO5lqP/CdV2guFqYeYCuNrdJ5W8/s4DNsHNlQ WFTw35yjO9HiPg2gM2u8CaNAp4Er7UXvl9nYalU512gRxjuWbQ5L6s5ZTZ5EtFhvrYKP Lrjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pR/sfznw"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc36d8bsi523381166b.469.2024.05.28.12.27.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pR/sfznw"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192937-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 12E011F2809F for ; Tue, 28 May 2024 19:26:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38176172777; Tue, 28 May 2024 19:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pR/sfznw" 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 5BB8D171679; Tue, 28 May 2024 19:26:49 +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=1716924409; cv=none; b=snyfUrxOAlJiIrqIzsQ5rmfX/DV14WOp0SadTYw9aVjAjM3Zmi+VIVjt8RgmmGec9Hi1R08HveowOxioYPljZckJg7EUIC7fnERMqDYAiZkSILOI/csIqr1B8jcZLtj070vGXy8UXKE7CYxwmEqHUo579kyownSHO1dKJSZSDdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716924409; c=relaxed/simple; bh=mWeHmicPyT/nFecLrD5KlpasVv692S7kVYOEr6pzmEA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ObZeiKhpoNcBTaWe+hfPCWHDDsJgjAUEJ6SwVQLzeIjJ74yTBTgNKYQFbHiPUcSHu8OdM+G3ahSgkY75j+iuFDkziyW+zfEdr01+K5HK4LiV1bJ0HlvraHpptmLtl0ijiiR6ZKejPCrcUJa0TP9z653OiItlhZ1HxqV0G2WjWd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pR/sfznw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA5C7C3277B; Tue, 28 May 2024 19:26:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716924409; bh=mWeHmicPyT/nFecLrD5KlpasVv692S7kVYOEr6pzmEA=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=pR/sfznwaK1jUa5P9QrGg2tsmgHS/jB6yWTbHka4JvnqD1DyI08Z8AQtrMyxJvf59 sm9IlDtkHuWu9m4fkRjEUBXe9ubkvK6JBur3hNRN/W0p2UQ0lBq2NzrqRlurUpd4av PU+Etq3UnKpxiKG/BtlKSRmBGD14r60S+yeVl8usnfkY2OiMJoVmGI51J8aUH790kx hibBkk2kMqRmsNmrqEcUcKcod2lWi+2BHEyUEyNkX1fj+sFyvaIv2G62AbUfOblqGM Khgx29M73nC+3lc1jjcYB6qXTOlcdtoBwB9URhlGRdHdsE9rNOIeY1ieYstKugb2oQ 42sAb9TuokOHg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 88353CE0F8F; Tue, 28 May 2024 12:26:43 -0700 (PDT) Date: Tue, 28 May 2024 12:26:43 -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.05.18a 44/51] update.c:undefined reference to `cmpxchg_emu_u8' Message-ID: Reply-To: paulmck@kernel.org References: <202405271352.XYjxKyUi-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: <202405271352.XYjxKyUi-lkp@intel.com> On Mon, May 27, 2024 at 01:25:58PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2024.05.18a > head: 0e3eb8082184e066eb389f5e6f9c7b8c2d452d66 > commit: c48887df74a95090e633a29ffbcef00b71cdab66 [44/51] rcu-tasks: Remove open-coded one-byte cmpxchg() emulation > config: um-allyesconfig (https://download.01.org/0day-ci/archive/20240527/202405271352.XYjxKyUi-lkp@intel.com/config) > compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240527/202405271352.XYjxKyUi-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/202405271352.XYjxKyUi-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > /usr/bin/ld: kernel/rcu/update.o: in function `rcu_trc_cmpxchg_need_qs': > >> update.c:(.text+0x27d5): undefined reference to `cmpxchg_emu_u8' > /usr/bin/ld: kernel/rcu/update.o: in function `trc_read_check_handler': > update.c:(.text+0x2839): undefined reference to `cmpxchg_emu_u8' > >> /usr/bin/ld: update.c:(.text+0x2882): undefined reference to `cmpxchg_emu_u8' > /usr/bin/ld: kernel/rcu/update.o: in function `trc_inspect_reader': > update.c:(.text+0x52ce): undefined reference to `cmpxchg_emu_u8' > /usr/bin/ld: update.c:(.text+0x5330): undefined reference to `cmpxchg_emu_u8' > /usr/bin/ld: kernel/rcu/update.o:update.c:(.text+0x5933): more undefined references to `cmpxchg_emu_u8' follow > >> collect2: error: ld returned 1 exit status Good catch!!! Does the patch below clear this up? Thanx, Paul ------------------------------------------------------------------------ commit 47450c70303a11da1bd650403844ad9e688f05a4 Author: Paul E. McKenney Date: Tue May 28 12:15:06 2024 -0700 um: Emulate one-byte cmpxchg Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on um. Reported-by: kernel test robot Closes: https://lore.kernel.org/all/202405271352.XYjxKyUi-lkp@intel.com/ Signed-off-by: Paul E. McKenney Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: diff --git a/arch/um/Kconfig b/arch/um/Kconfig index 93a5a8999b07e..5fc55e1d71122 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig @@ -11,6 +11,7 @@ config UML select ARCH_HAS_KCOV select ARCH_HAS_STRNCPY_FROM_USER select ARCH_HAS_STRNLEN_USER + select ARCH_NEED_CMPXCHG_1_EMU select ARCH_NO_PREEMPT select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_KASAN if X86_64