Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp469177pxj; Wed, 16 Jun 2021 06:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLxakIVmiQJhwXu3STiBT6zWNdvi4Q2qq7BBLPCv0qIAQTw3emorL4HeAQ3WDH1h54UrEx X-Received: by 2002:a92:cb91:: with SMTP id z17mr4116444ilo.31.1623850842310; Wed, 16 Jun 2021 06:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623850842; cv=none; d=google.com; s=arc-20160816; b=iVgQmik7EB/wiNOnhkhGm9MhgrbGo7Rf/gtsJL3EX36kIpzUG7gTCDTjF2Yn/smkxa S24mm3tijgX+v7RHd/nyA3LVOoSPQ5nvtTiHtHKxSW3C7iwWeRou9hpZ4+p8JGrerKpK ZylGlqUM/TBcbm6AXIr0Zv8OCg6+PPNJHK04sOE4I8YNJSQrYeQKN6vVWN1pZvYvo2Ph abT4Zp86tbHPcvUEf9bRl0eKtjz9yuxy0EKaVAZtACOC3KWRYfJVaqn+l+1bfCYn9mGT 1Ytld1hUBQYUre/JNetlC+z1Rd7rgSnM7CYvqByHmZOi/lkUZOn3UCl7dGPyQq4fACZc +6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=32+NpGgu8WipadP+MIdPGsq6RjRcWDCP1ZmI2iSTa6M=; b=X1zEVMstpvllCOSzTKCrqBBf+X4lXg9zq1pnWgATdnknm75oHrrUJ3PlRBo+3z6BkN cwuhtX0Y8BJxPhQDpXOrOfJmQ4QKQ7jCGhbk8y0PRjnMt2pcL1q/Tp0foywdU2ialwHv YvtF98zPA1MvxEWE7Q70rc4uWvCzeB2pXvagC2/hCh3xpMT8WcxHsVUPLOwQFpsyduFE sBmKab4sk+/BxVwPkLLNNFCLbguWGCyOuqZO+w4AtEPsMcpqY9BT78PBdz5FaaY7FLvN vAusSxiKTPy1lTkD6BfaS+VthrgKvv+YDYIEACLXdeVTWmORdWYC1sClZMNz23fSpFrT VuNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="Qj438s/E"; 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 g7si2447953jaq.75.2021.06.16.06.40.28; Wed, 16 Jun 2021 06:40:42 -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=@ellerman.id.au header.s=201909 header.b="Qj438s/E"; 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 S233184AbhFPNIA (ORCPT + 99 others); Wed, 16 Jun 2021 09:08:00 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:48199 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232389AbhFPNH7 (ORCPT ); Wed, 16 Jun 2021 09:07:59 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4G4lmb4k9Cz9sWF; Wed, 16 Jun 2021 23:05:51 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1623848752; bh=32+NpGgu8WipadP+MIdPGsq6RjRcWDCP1ZmI2iSTa6M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Qj438s/EvGlaqyPz3IXIGaa507+ewXJtgfQcTlMmg3N+YqNZeozZO2po00HKxn7yk S1p4Rf0eyU1x66K93nmCl1JnZn5dguWdv/F/Cn0AQ8N2n9SkAxnvj9xP5SttFQlPTh pqyrBOSyOM/yIZTXDEFjkv2bYc4cSq5hzIdgkwdfvxmVeMCMhOl8M77wLenr3BBX7u Zr+kZinASd7NGDPAwbdwsuymihoQ8j0xYMAhbeWy3VfR1RarFmIq93zMdCSWIRCDBP Nda8YKiB97VzDE2f0YYfNz4Venl4FwIl2n0ANUVtJEBPSo47+HzTWiBOKHPrwPATH+ cIXj19dUdAeQg== From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , naveen.n.rao@linux.vnet.ibm.com, jniethe5@gmail.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 00/12] powerpc: Cleanup use of 'struct ppc_inst' In-Reply-To: <0c2b2eb4-f58d-9ec3-4b98-af22cef188e2@csgroup.eu> References: <87r1h3tx3a.fsf@mpe.ellerman.id.au> <0c2b2eb4-f58d-9ec3-4b98-af22cef188e2@csgroup.eu> Date: Wed, 16 Jun 2021 23:05:46 +1000 Message-ID: <87eed2rmc5.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > Le 15/06/2021 =C3=A0 09:18, Michael Ellerman a =C3=A9crit=C2=A0: >> Christophe Leroy writes: >>> This series is a cleanup of the use of 'struct ppc_inst'. >>> >>> A confusion is made between internal representation of powerpc >>> instructions with 'struct ppc_inst' and in-memory code which is >>> and will always be an array of 'unsigned int'. >>=20 >> Why don't we use u32 *, to make it even more explicit what the expected >> size is? >>=20 > > I guess that's historical, we could use u32 * Yeah I think it is historical, we just never thought about it much. > We can convert it incrementaly maybe ? I've still got this series in next-test, so I'll go through it and change any uses of unsigned int * to u32 *, and then we can do another pass later to change the remaining cases. cheers