Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp711263rwb; Wed, 9 Nov 2022 07:49:10 -0800 (PST) X-Google-Smtp-Source: AMsMyM4WYCwth06hD2U65RY/wexSpqRiYMHW/VcWBq3KxUnlvlHjxkR3nAFXkS2ZGUcle9b1eEev X-Received: by 2002:a05:6a00:10cf:b0:528:48c3:79e0 with SMTP id d15-20020a056a0010cf00b0052848c379e0mr61037348pfu.18.1668008950364; Wed, 09 Nov 2022 07:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668008950; cv=none; d=google.com; s=arc-20160816; b=a01FPqSPQ1grU0tf1/LKFKD0VSAR20e9Xr/wDb6c/PaoEQWUzM6i+lyqYnU1cqyPeA EcaK92EL+mCOkcEvxbxRYLD8emkIAXQX6ywmHfxgFgpBPhtcnVJ/EAAY2vzXTIZWRQbZ nmBi89/nn4K9CBf2c5jYx/A4txrkgLhfRRvV9TjteNW1Da7YTIBbFqajtINI/TyBjowR jALY9f0OYtpzUJvSd2UnjYbLGOeNOl6g+nbInCA3bLz5JFPj4z3tykcF8zGcG9mkXjwq jJ6n2RiMwqavvwbvAgFlaeCNMu9kVsgSn9uXT34X2yIfRwTiXii4CSGvp36XqK9L801Q UgDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2NypC69kybaWUJzWWMkI68/CFPw5EFLIIS5wQZCx/Ik=; b=Jm/GMsilsvI5uNM41uG3bwK9VjuizhLDRCJg0hwxcEh0mM7XzkANsO9cuo4uz3I2+9 bQbWSA6b0fmkUxE7FpLufUWHUZQAMbg0HSOegOZuyL5rS7pekXWkIVrqqZMLCQiJZK6K Kjft1/0S/E2FPv98pLEZawERoEJZ2V7EIXczA0svpe0jSyIyfaYjFOubTTuECQ+/FY0a z1rWNONtWIkeAaZmJOn5deKLHNQYugtKlqBjfMfLrQ2rHXihwisq21MQKnVexFwH7d+8 sab4RIVi5n1Ie846cS10wyykZLN7CM9L6LXHXlLe8VsR/p0TbRBzUF65OLYvZrbDueM6 4xCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=V86lZ59M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a17090ad80f00b0020cedba54fcsi1457628pjv.55.2022.11.09.07.48.58; Wed, 09 Nov 2022 07:49:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=V86lZ59M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231734AbiKIPBV (ORCPT + 92 others); Wed, 9 Nov 2022 10:01:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231737AbiKIPBT (ORCPT ); Wed, 9 Nov 2022 10:01:19 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A8A713EA2; Wed, 9 Nov 2022 07:01:12 -0800 (PST) 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > >