Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp388447pxu; Thu, 15 Oct 2020 06:36:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrGePlrfR5d8Qw2AQVrALOFx3zKjMIgOwa2rVBnfQpnWWwiHSFrsPknP5neWZx1ly+if1S X-Received: by 2002:a05:6402:6ca:: with SMTP id n10mr821403edy.273.1602768975808; Thu, 15 Oct 2020 06:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602768975; cv=none; d=google.com; s=arc-20160816; b=bEqExImx0fPezgOoHExE3Pe2+vz4psBJ99Fh6vT0kXoR0ojOIUKozh/A9GdKWYAxOG vG2Xp9Z9phxq7XqLwQf5VkmMcFtmFhBkOvhNzuN9dLK1aawtFt+XX+hAhdggpIIGhRQR NVZPiOR0Py/5VcCfsZ/Zxz29r9mLPD9tRe1JEKreArK7CImZZNNJr8MsOLAEdFnQ7fFy DP3pUdN++q7AAmu2XTQz6+3at/8mlEF3LDaLAgFN+6AjRNMUCWt8nkR9HpM9TieNGEaC cfysRP9KfR03apUA8PFgNKFtmDM1pU9hOALm6vbNG+nflnEr7n2OFbrMjGcSMf9Tk6NC 9X9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=b25Pmt8d4G5/5CGfUg4em+ipMKnZeJsalHUG+J5jamI=; b=aGKltNe1WEKHbatJYRSRrc/nZTS/5RMC7gNgL8lBOdTaaY1XQcOalYiBqqOd9QQkR/ bqgWg2eYcdCShtBVOqy+CKK88ppkSpb8HQnD2gm5e8hGMXptaiT0NG1udcx0dGxLGD5u cj4XjekesQSJ/D4Ekiz9RZWj4qGfE+iKBx+SRU0YWb+6idxrB9ACTudwGIjeaeRJlwOh KfeU04dpmtWTdiZzo7Qf2n9HXd58FYz07/pVzoR7W4/kYMLVCNdCX81v91vmuvQDqa7N heUYIiZOmHkdlWtjDxTL3CFiaKyrM//2gdPebmB5JoblbM7nqoS0wpzC0gJhSwKJEehC onoA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt1si2049036ejc.566.2020.10.15.06.35.46; Thu, 15 Oct 2020 06:36:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729327AbgJONat (ORCPT + 99 others); Thu, 15 Oct 2020 09:30:49 -0400 Received: from gate.crashing.org ([63.228.1.57]:40932 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726924AbgJONat (ORCPT ); Thu, 15 Oct 2020 09:30:49 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 09FDPETm032241; Thu, 15 Oct 2020 08:25:14 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 09FDPDfF032230; Thu, 15 Oct 2020 08:25:13 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 15 Oct 2020 08:25:12 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: force inlining of csum_partial() to avoid multiple csum_partial() with GCC10 Message-ID: <20201015132512.GG2672@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Thu, Oct 15, 2020 at 10:52:20AM +0000, Christophe Leroy wrote: > With gcc9 I get: > With gcc10 I get: > gcc10 defines multiple versions of csum_partial() which are just > an unconditionnal branch to __csum_partial(). It doesn't inline it, yes. Could you open a GCC PR for this please? > To enforce inlining of that branch to __csum_partial(), > mark csum_partial() as __always_inline. That should be fine of course, but it would be good if we could fix this in the compiler :-) Reviewed-by: Segher Boessenkool Segher