Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3493205pxf; Mon, 5 Apr 2021 13:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7zTraObQ92i0R4lVpXcViWIB85XKGSlI9XHFMjd2g8+D2Ts0rloXHEqFnxOsVE+DZPzYu X-Received: by 2002:a92:c847:: with SMTP id b7mr1087317ilq.131.1617655297136; Mon, 05 Apr 2021 13:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617655297; cv=none; d=google.com; s=arc-20160816; b=q8qE1sSC7Bn1fwdSJHKgDsbifM9DzkAjEgbrWM5lr/wTJ3T7BX/WcOETQQGYhJSie5 d8coIADUmWp20YRvlnaN/Ggu6ZsdGkWeHZihOzs3VS2+BJcISV9xkybqpadmzRhbRowP /Zd7Dr0o+oASLrettP/7vZc8bDuBczD7Znc8bqPnwx3kSMT8rXk9PzNIZXlG5TbMHxwK OUJTAtBagJdu9GbC6DIAqvj73RXCgIn0WDG5IX9rimqM/swP+OcmbpjKt7pq5YkwRd3b ep4vToEAiDw2uKTYDi9wQhIDLDxSdVKApMUGmBH6cZ+hVTxl3nNstPdGsMoF5qh7T6Q3 JGKw== 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=Ca8KJ/NXs7BsuYWmbt98X4BYHXcz6B8X4xUE+v9BLC4=; b=t32GtJK2UYXFsXASrVaCAhP6OENUohqZcIhje3qvxhpbpkO2l/CMnS4kZwZvqLgtKa JVXQk6yh4EZUbEB0FkFjrM5FqAb+BdNX4GEbAeNutE76FVAc1CL2sptzbX2z+PjkAh+X ZuVSQUNcgtTGTMddLJloS7+RIl4Jz5LaREuMiayXc67O9gEw/WyoYijTejK5XDdK7oBz I4lu5UH0MJBm6o2/E667Dp+NulXXN97TA/JdZu7p5YffNW9i0oikhMNhwvpYfOKpvvO9 yiJHEQCim8iXZTQcizbE68pQl2cw8FBtiJOM9nke6X4HSOW7n3FQXecQUsNo0ACg5BIJ dEOA== 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 i24si16044284jan.109.2021.04.05.13.41.25; Mon, 05 Apr 2021 13:41:37 -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 S237209AbhDEMoM (ORCPT + 99 others); Mon, 5 Apr 2021 08:44:12 -0400 Received: from gate.crashing.org ([63.228.1.57]:41042 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233550AbhDEMoL (ORCPT ); Mon, 5 Apr 2021 08:44:11 -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 135CcSjg014265; Mon, 5 Apr 2021 07:38:28 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 135CcRoo014264; Mon, 5 Apr 2021 07:38:27 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 5 Apr 2021 07:38:27 -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/32: Remove powerpc specific definition of 'ptrdiff_t' Message-ID: <20210405123827.GM13863@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 On Mon, Apr 05, 2021 at 09:57:27AM +0000, Christophe Leroy wrote: > For unknown reason, old commit d27dfd388715 ("Import pre2.0.8") > changed 'ptrdiff_t' from 'int' to 'long'. > > GCC expects it as 'int' really, It isn't actually defined in the ABI as far as I can see (neither the old document or the new one), but GCC has defined it as "int" since forever (which was in 1995), for anything using the SYSV ABI (which includes powerpc-linux). > defines it as 'int', and > defines 'size_t' and 'ssize_t' exactly as powerpc do, so > remove the powerpc specific definitions and fallback on > generic ones. > > Signed-off-by: Christophe Leroy Thanks! Acked-by: Segher Boessenkool Segher