From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Date: Sun, 13 Aug 2017 14:37:43 +0000 Subject: Re: [PATCH] powerpc: store the intended structure Message-Id: <1502635063.8295.1.camel@perches.com> List-Id: References: <1502630663-18599-1-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1502630663-18599-1-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall , Benjamin Herrenschmidt Cc: kernel-janitors@vger.kernel.org, Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org On Sun, 2017-08-13 at 15:24 +0200, Julia Lawall wrote: > Normally the values in the resource field and the argument to ARRAY_SIZE > in the num_resources are the same. In this case, the value in the reousrce > field is the same as the one in the previous platform_device structure, and > appears to be a copy-paste error. Replace the value in the resource field > with the argument to the local call to ARRAY_SIZE. found by a script or eyeballs? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtprelay.hostedemail.com (smtprelay0171.hostedemail.com [216.40.44.171]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xVhDG2NcpzDrFw for ; Mon, 14 Aug 2017 00:37:49 +1000 (AEST) Message-ID: <1502635063.8295.1.camel@perches.com> Subject: Re: [PATCH] powerpc: store the intended structure From: Joe Perches To: Julia Lawall , Benjamin Herrenschmidt Cc: kernel-janitors@vger.kernel.org, Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Sun, 13 Aug 2017 07:37:43 -0700 In-Reply-To: <1502630663-18599-1-git-send-email-Julia.Lawall@lip6.fr> References: <1502630663-18599-1-git-send-email-Julia.Lawall@lip6.fr> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2017-08-13 at 15:24 +0200, Julia Lawall wrote: > Normally the values in the resource field and the argument to ARRAY_SIZE > in the num_resources are the same. In this case, the value in the reousrce > field is the same as the one in the previous platform_device structure, and > appears to be a copy-paste error. Replace the value in the resource field > with the argument to the local call to ARRAY_SIZE. found by a script or eyeballs?