From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE321EBE2; Wed, 9 Nov 2022 15:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1668006059; bh=Ts+sgdlB5+C6h7IQKtl88MwbuV2YmEIivE+EtogLjZU=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=V86lZ59Mld67mazxAY924nJ/Tzhmr9sDGOyEVFPVw2LqY0obZtC2epmXYy/0KFhXn 5kFYcaznOkhF5V4E6DA6hEjPSl7cRxh8dynujy856UYgydUbj9xmSgBzEfZj/2LDyn zm8OWtjs01LIDFXG4aqVOW5RnDyNdppWas/XpsDA= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via ip-206.mailobj.net [213.182.55.206] Wed, 9 Nov 2022 16:00:58 +0100 (CET) X-EA-Auth: IHS1m4BGBcqLRC6EvgRMlCBBHxdqtIlIEmILytXZcdrnvm64GTGqUxKeqKzxga8JJnscIH8mf8odZik6JpxuviqZNAX3tdRA Date: Wed, 9 Nov 2022 20:30:52 +0530 From: Deepak R Varma To: Julia Lawall , Greg Kroah-Hartman Cc: outreachy@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: fbtft: Use ARRAY_SIZE() to get argument count Message-ID: References: <7dc9b4d2-413-3f65-1381-b164d810c3ee@inria.fr> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Nov 04, 2022 at 08:12:11PM +0530, Deepak R Varma wrote: > On Fri, Nov 04, 2022 at 05:31:24PM +0530, Deepak R Varma wrote: > > On Mon, Oct 31, 2022 at 01:05:32PM +0100, Julia Lawall wrote: > > > > > > > > > I took a look, but it's pretty complex. You could take the code and > > > reorganize it so that it is more readable, and then take the definition of > > > the ARRAY_SIZE macro, to better see what is going on. > > > > > > julia > > > > > > > Hello Greg, Julia, > > I was able to successfully build the fbtft object file for arm architecture as > > well. I used gcc 6.5.0 and 9.5.0 tool chains. It was successful using both. I > > have attached the build log from my machine for your reference. > > > > I am also looking at the .i file and rearrange the expanded macro to understand > > it. However, since it is built successfully, I am not sure if that is truly the > > problem area. > > > > Should I resend the patch and check if it still errors the kernel build bot? > > Anything else I can try? > > Looks like the change I proposed is causing nesting inside the write_reg > function due to additional set of { & } brackets for the __VA_ARGS__ symbol. > > Am I understanding it right? Hello Julia, Greg, I am unable to reproduce this build failure on my local machine. I tried the X86 and arm based build. I am unable to troubleshoot this further. Do you have any other suggestions? If not, I will drop this patch from my watch list. Thank you, ./drv > > > > > Thank you, > > ./drv > > > >