Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp562715ybm; Fri, 29 May 2020 06:59:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxacol8CAkfza3aEZLTXTkeUf5wDeZmiXuj7JrwQXwpmmpdjW33Wk+mse/ayNO0Mk6sgFnP X-Received: by 2002:aa7:c30f:: with SMTP id l15mr8120606edq.274.1590760762984; Fri, 29 May 2020 06:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590760762; cv=none; d=google.com; s=arc-20160816; b=Zaota1G8WDxNtxQS8FmUhHmXXGdwxIXZaIyPfeRWfLqChOoFRPH4PP/XS71LxlQJQf 1R+BT5jDtcSR7jJFanNrc6Cf/2hGVNX5w9nVN/pkmYRBCzul2JmfHHRfT6tZWyjjEL4p uqc64Ff7QotQgn6asv/d++LaOs49WrVHrC9uGs8NptguuochOrzaquNThjaIkpI00tIH OzKCxSVeYTDgfJpmQOb01ULAEPWbEEN6CP381KVLcnDpjQUb/RMSVvwrAKWGLjmr3PnL lIzKEz/YLOsxZQT13gvDtCyFInkQgPmYQlxPwnxm4ylyQpnL1ptg/0G1u4iFDLRKYYza 3fHg== 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=AtAxh6+l4vKeZ6dRpUxF/gXJoPUzz6Ib0+wjthPo0To=; b=XU3QAlQr8uWavItQQ1/SR8JWx9LydP1IcyyOIn03X/crKmSw9W74jRBDeKmgS0IPZM O1lmsuCRI4t/OnofL58KrnfNJK4NA+m9yHpfqQF3u2JQrzkIp6p5YIIlZ/po2bMGNImP 49R1NMAHAc6mSkhMwIApq3tI1NQSyJhbMQLuknq1G/Sr6RS6j+E/6d1x+B415SnS9j8j Oe00e73s4gMlLOoTSey+b58pSRh+ZCntIHyrKNEAbNb55jHGNOI5Yn5Rd0rG3Iwqz6bp I9Ftnu6i3hKCn4/ft3YfdITYdsDNVef/gMQi69z3DCMCYoXlsT2FEY/V/2axstbpWz6i MpBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y+vhlNBO; 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 k19si5708541ejv.284.2020.05.29.06.58.58; Fri, 29 May 2020 06:59:22 -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=y+vhlNBO; 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 S1727023AbgE2Nz5 (ORCPT + 99 others); Fri, 29 May 2020 09:55:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:42182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgE2Nz4 (ORCPT ); Fri, 29 May 2020 09:55:56 -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 2FEAF206A1; Fri, 29 May 2020 13:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590760556; bh=Enq4Wi87oreGuApmcECdC9lGbckzzO7dttk0SumdA8I=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=y+vhlNBOERjmS74ytjDE/P3H+GHEsVKlAPSoz794yexAFW2fIJ8C4+hC/l5dMVUO5 eeuabMM1Jvn7XY2oJnBNU+WUW5XCBf12jzL6bQHdkv6PP0HGmzvq1xojIYHq8mandh 9FCrsbDJSwxS/0a4hWdnd+kECgtF2rnkg4XCqO0Q= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 152923522683; Fri, 29 May 2020 06:55:56 -0700 (PDT) Date: Fri, 29 May 2020 06:55:56 -0700 From: "Paul E. McKenney" To: Valdis =?utf-8?Q?Kl=C4=93tnieks?= Cc: 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: <20200529135556.GY2869@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <538911.1590725791@turing-police> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <538911.1590725791@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 12:16:31AM -0400, Valdis Klētnieks wrote: > commit 9088b449814f788d24f35a5840b6b2c2a23cd32a > Author: Paul E. McKenney > Date: Mon May 25 17:22:24 2020 -0700 > > refperf: Provide module parameter to specify number of experiments > > changes this line of code (line 389) > > - reader_tasks[exp].result_avg = 1000 * process_durations(exp) / ((exp + 1) * loops); > + result_avg[exp] = 1000 * process_durations(nreaders) / (nreaders * loops); > > On a 32-bit ARM make allmodconfig with gcc 8.3, this results in: > > ERROR: modpost: "__aeabi_uldivmod" [kernel/rcu/refperf.ko] undefined! > make[1]: *** [scripts/Makefile.modpost:103: __modpost] Error 1 > > I admit not understanding why the original line of code worked and the new one doesn't. > Maybe gcc is smarter/dumber about the ranges of 'exp' and 'nreaders' than we thought? I was surprised by that as well, but yesterday I took the lazy way out by making this module depend on 64BIT. (0day reported a similar issue on m68k.) So this issue should no longer show up. ;-) Thanx, Paul