Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp568085ybm; Fri, 29 May 2020 07:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlG8Pdf94kX23sMCMTTFup6GLrKQBoKrXjiWDVbGUavfYqjPGr/B/gYbix6mHVvK8Q5Hoc X-Received: by 2002:aa7:d5c7:: with SMTP id d7mr8561826eds.11.1590761117463; Fri, 29 May 2020 07:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590761117; cv=none; d=google.com; s=arc-20160816; b=FF2+4MAxudBLPJMyW1qIyUPqiNSjyl4T76mPDjs+gaa3+aQXFU0OQKsXVYa2Ezyf8f XdIP6kHH3dnZKqoJDCmNun7KYoDasNwM88iEKu5KTYTXRzvh7nLGimcjrpsL/9pWW/HZ 7Yf9ye++GE65PCG1lSnIJsbHkhWHUVjVNbJaUwibeTKTb+3HgQTx/TuKZ+mPy0dIvnMn HS9vop9VlTqeW7rGFRqLpAHoXQwQrw+jqGK6UznYkBc7E3edZtvsMQt3qd6BMJBPysy6 gFF18zWgH8p+xZkjMI/CBSNe18NQsMvt17GWAkYyCB+sjkJhZYNresuPsmKqJvbBja/c ta/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Gl4FMpWbeDfP7ee+H1B6HCIY4zgP5rfb0QEYoOH8E5Y=; b=w8lCjaSiz4TCMHzFYuD61X5pXnszabpbKAISR/JEZeeZVw24LfHPCxFIXYt8akLy4H 8VEuBVzehZnKKwyclZOtPobmgUAH/iu6pOXP6fZ0S6z3DK1ThAdCblLgpg1DIJ8VUtwv TrdDM27wDhA3mJZWGwNKNKhYfqheAD49hbrpq//R/pm+mipoDFQtFysBkdE2OK8jYwEk /GLPGxHyap/w8p+WwT4fuK/neddn8Oa2FPZyZjoki28xChQlxa29zBI2saof3gY5d1kK m5fPUJ6mK9kG39pLo4ArQZvi1gt6aOwIESTO44G8RG+ipfUhXYuugYAwED/CZaLxRg8e ydTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AwerKJm7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si3349427ejq.198.2020.05.29.07.04.52; Fri, 29 May 2020 07:05:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AwerKJm7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726849AbgE2OC3 (ORCPT + 99 others); Fri, 29 May 2020 10:02:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:44656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgE2OC3 (ORCPT ); Fri, 29 May 2020 10:02:29 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBBC620707; Fri, 29 May 2020 14:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590760949; bh=jboWdieI7iFp1rpneZBaX90NHx5TQzh4MghY5RexMJE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=AwerKJm7rYuen+5zU+J2jkZzKnPY1dzfpRGir1cVzkNId9Cf5o1CZKeP95vv3++Gr rq02zr9oxYbVdIRUeWe7pkX7b5nmrv0dcj6RDgVFF/mqHAY0bYG8mGZghGpHlEPkJQ OTqMNjbeiZJ2PHNELZxMjVhzHO6AyfSmFUmUFhjM= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id C62183522683; Fri, 29 May 2020 07:02:28 -0700 (PDT) Date: Fri, 29 May 2020 07:02:28 -0700 From: "Paul E. McKenney" To: Valdis =?utf-8?Q?Kl=C4=93tnieks?= Cc: Randy Dunlap , Josh Triplett , Steven Rostedt , rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: next-20200528 - build error in kernel/rcu/refperf.c Message-ID: <20200529140228.GZ2869@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <538911.1590725791@turing-police> <9d8b13db-9d77-416d-e283-9ea509ce43d1@infradead.org> <543040.1590729879@turing-police> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <543040.1590729879@turing-police> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 29, 2020 at 01:24:39AM -0400, Valdis Klētnieks wrote: > On Thu, 28 May 2020 21:48:18 -0700, Randy Dunlap said: > > > > ERROR: modpost: "__aeabi_uldivmod" [kernel/rcu/refperf.ko] undefined! > > Gaah. And the reason I didn't spot Paul's post while grepping my linux-kernel > mailbox is because *that* thread had a different undefined reference: > > > > > > > > m68k-linux-ld: kernel/rcu/refperf.o: in function `main_func': > > > > > > > >> refperf.c:(.text+0x762): undefined reference to `__umoddi3' > > > Paul has already responded: (unfortunately) > > > > "So I am restricting to 64BIT for the time being. Yeah, I know, lazy of > > me. ;-)" > > It's the sort of issue that's well into "as long as it gets mostly fixed before > it hits Linus's tree" territory. I've seen lots of far worse work-arounds in > the years since the 2.5.47 kernel. :) Fair enough! Also as noted on the other thread, in this case, doing this 64-bit division the hard way shouldn't be a problem: The performance test is finished and nothing else is happening. So I have to wonder whether it would be possible to detect this based on some sort of link-time checking, presumably in conjunction with -O0 to avoid confusing the whitelist with compiler optimizations. That would allow use of C-language "/" and "%" while still allowing gratuitous uses to be questioned. Hey, I can dream, can't I? ;-) Thanx, Paul