Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752150AbdHMOly (ORCPT ); Sun, 13 Aug 2017 10:41:54 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:12993 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974AbdHMOlx (ORCPT ); Sun, 13 Aug 2017 10:41:53 -0400 X-IronPort-AV: E=Sophos;i="5.41,368,1498514400"; d="scan'208";a="234302714" Date: Sun, 13 Aug 2017 16:41:51 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Joe Perches cc: Benjamin Herrenschmidt , kernel-janitors@vger.kernel.org, Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: store the intended structure In-Reply-To: <1502635063.8295.1.camel@perches.com> Message-ID: References: <1502630663-18599-1-git-send-email-Julia.Lawall@lip6.fr> <1502635063.8295.1.camel@perches.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 683 Lines: 18 On Sun, 13 Aug 2017, Joe Perches wrote: > 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? A script that was looking for something else. But I wrote a script for this specific issue and this was the only match. I am currently checking in a more general way. julia