Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1320279pxf; Fri, 19 Mar 2021 04:44:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgZ1ZlKJtI6dHCUf1rVXmnfNS7bnzoAd4bhv8IfgJG0jnKmQY6aBhrlnje5PAFdrBdHccs X-Received: by 2002:a17:906:5e50:: with SMTP id b16mr3937980eju.272.1616154262399; Fri, 19 Mar 2021 04:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616154262; cv=none; d=google.com; s=arc-20160816; b=l10WwXcgWDfKsapEDd88b72sYguhrw+FKTGNA6iVyvaIGnees/mIMGZYJknTJf1K0n +N7uAmeN8kqcZhIJ+YYp3IZx4+IOJzq3jeGiJRfZFJdjY+O3FxxrA7rNiYFd6uCinEkh 0xuXRtmvcfAtubqfTQYq8fE7y4g+FB3XjlUsr1dWFGfKRKW+odLcOuhv4PmWCWmHLQch RUcHh7QgzDvgZqu2VMKwVYBc9QZy6FhyZkuZm9pdJPlrEwCJG/nfD1rU4R7hYb8ngnyl dQHis0gkDKciYdkk2l6F/9jk6rdCN4NpK68WRkrIR4GJMS8IeiAMxjWNOKYJ0NAVXw8L WBUw== 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=vY2ggs2A8ajZ4mRUb85FvBFlLAko9QDY4VMPlZsm8Ec=; b=CXgpbOZSAAd9u0FTi8wRZMVvROS36YO+RNgw+fHOoULa7lZv8BVS1p5Iig5avj+T+g nCJsFeT6e09iSCoCgq8B/ALh07fzF1YzkSTogNKgbRusHuDNPBl7tVjoI4cwnu8wV+/u T0pSokBgt1bZp1mItCZ9iC5KtEt0h/oPNK0fe80xncE27uP3tsqsQCKIIdrd0H2LTtkN sm0NR5A87JjmlJX+3xnBjYrTMLHTrzWNZA/au6qk0Oj5iEZZIg7uEf0Zz7fZ8pouEnsJ benZjWFuMWqpkEHrb7U7B/xnvTETbbhexzup1L3xq98oXeA4bu5ynggL0jKFmzNPS+E5 ce/A== 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 co27si3934070edb.376.2021.03.19.04.43.59; Fri, 19 Mar 2021 04:44: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; 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 S229766AbhCSLmP (ORCPT + 99 others); Fri, 19 Mar 2021 07:42:15 -0400 Received: from gate.crashing.org ([63.228.1.57]:46589 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbhCSLmJ (ORCPT ); Fri, 19 Mar 2021 07:42:09 -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 12JBbiIL004557; Fri, 19 Mar 2021 06:37:44 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 12JBbeiG004554; Fri, 19 Mar 2021 06:37:40 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 19 Mar 2021 06:37:40 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: David Laight , Alexander Potapenko , Marco Elver , Andrew Morton , Dmitriy Vyukov , Andrey Konovalov , Jann Horn , LKML , Linux Memory Management List , kasan-dev Subject: Re: [PATCH mm] kfence: fix printk format for ptrdiff_t Message-ID: <20210319113740.GL16691@gate.crashing.org> References: <20210303121157.3430807-1-elver@google.com> <20210316153320.GF16691@gate.crashing.org> <3f624e5b-567d-70f9-322f-e721b2df508b@csgroup.eu> <6d4b370dc76543f2ba8ad7c6dcdfc7af@AcuMS.aculab.com> <001a139e-d4fa-2fd7-348f-173392210dfd@csgroup.eu> <4f7becfe2b6e4263be83b5ee461b5732@AcuMS.aculab.com> 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 Thu, Mar 18, 2021 at 10:38:43AM +0100, Christophe Leroy wrote: > Yes it seems to be wrong. It was changed by commit d27dfd3887 ("Import > pre2.0.8"), so that's long time ago. Before that it was an 'int' for ppc32. > > gcc provides ptrdiff_t in stddef.h via __PTRDIFF_TYPE__ > gcc defined __PTRDIFF_TYPE__ as 'int' at build time. (On 32-bit PowerPC Linux.) > Should we fix it in arch/powerpc/include/uapi/asm/posix_types.h ? I think so, yes. > Anyway > 'long' and 'int' makes no functionnal difference on 32 bits so there should > be no impact for users if any. Except that long and int are different types, which causes errors like what you have here. There may be similar fallout from changing it back. Segher