Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6D6BC433FE for ; Thu, 6 Jan 2022 16:28:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241245AbiAFQ2m (ORCPT ); Thu, 6 Jan 2022 11:28:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241184AbiAFQ2j (ORCPT ); Thu, 6 Jan 2022 11:28:39 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B717BC061245; Thu, 6 Jan 2022 08:28:38 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id f5so11523372edq.6; Thu, 06 Jan 2022 08:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lxUlFxhMptAz9Y42Hx9rEfu5hiDbmB6V0YZynYTL0KE=; b=TQrpGlJ7gsdhZeZ1M52sjuU754jaQTIwE8zDnuWEu8oskraOLs7pNEpDhwjIFVf7Tf d0u8z6u6p8+O5tnXPlMjVkSfG5aka/hJDXnzA0qRofWhlErqA0Umo5TJv2KfpI5/3BkO rwN4txYbKzalVKc1f+6EhjrH1K2lGoiXPjTdYPfbeBZllxfCMKPq4UMz6C5VXBrgyhCw cdaVlF/BjNfv5z3UvMT8xaPOpQu3+WjC64EyPG1aicTuDibKpsLWUYfDwfUAy+cSEh/M fUFe0vS7CKjCTMjo/yXLThAUCZ0PrzTYGTRo/un8qhhQ/gwdVQE9KEqGhomRxtvcZJ71 5YAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lxUlFxhMptAz9Y42Hx9rEfu5hiDbmB6V0YZynYTL0KE=; b=h5zM3ziyvxmiWxo8sOoNFsN33HcZXc5r37HmYbJlzIabJSK+yfqMdkflHR76z/m3io mFh99nodUmneyVKbIOS+8MVOtx2hjG+0ieOqLGbsnh1Z6AgvptMc/drzCI940FV/xL/C hO9LldI2VLtPZh8DQFNKS2WRAVP7f/Oa6FrIwoDGfMKjjxSHXkLdaX0DqivtiavSVogx 7/r1FX+u3tXmQpRaBGfXGo6Z7fK8+eAApWXq6u8ATacVSaUpiK5l4q2qho0qehUL8AHg ntXr63ztOPt6huZmOeSHEcS3lCRcFHq2XlRW76BzRnrlXmmNJDwjUFOQl/CVPKmkfK6J FgJA== X-Gm-Message-State: AOAM532wTi65TVfdT1XmkjeHoEXhNJJHUkd5hZDeyH7rj0D1FBMSVNv1 v2K/5l7E0cDSRG96PYjbgBK4Z37ZDqm9iEG7auM= X-Google-Smtp-Source: ABdhPJwf8yHoBNRpb1iHsXoi8J//mRIdxf3aTT0rBnwnGuuZx9X73J2rmsBP7OKjPp5XrfHuurk+hewgv4zTTdNAV0o= X-Received: by 2002:a17:907:76d4:: with SMTP id kf20mr46651675ejc.44.1641486517285; Thu, 06 Jan 2022 08:28:37 -0800 (PST) MIME-Version: 1.0 References: <20211223173015.22251-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20211223173015.22251-7-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Andy Shevchenko Date: Thu, 6 Jan 2022 18:28:00 +0200 Message-ID: Subject: Re: [PATCH 06/13] media: davinci: vpif: Use platform_get_irq_optional() to get the interrupt To: "Lad, Prabhakar" Cc: Lad Prabhakar , Linux Media Mailing List , Mauro Carvalho Chehab , Hans Verkuil , Rob Herring , Linux Kernel Mailing List , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 6, 2022 at 6:11 PM Lad, Prabhakar wrote: > On Thu, Jan 6, 2022 at 4:02 PM Andy Shevchenko > wrote: > > On Thu, Jan 6, 2022 at 5:27 PM Lad, Prabhakar > > wrote: > > > On Thu, Jan 6, 2022 at 2:15 PM Andy Shevchenko > > > wrote: > > > > On Thu, Jan 6, 2022 at 3:43 PM Andy Shevchenko > > > > wrote: > > > > > On Wed, Jan 5, 2022 at 7:41 PM Lad, Prabhakar > > > > > wrote: > > > > > > On Wed, Jan 5, 2022 at 9:43 AM Andy Shevchenko > > > > ... > > > > > > > > #define DEFINE_RES_NAMED(_start, _size, _name, _flags) = \ > > > > > > - { = \ > > > > > > + (struct resource) { = \ > > > > > > > > > > Yep, that's it. > > > > > > > > > > > .start =3D (_start), = \ > > > > > > .end =3D (_start) + (_size) - 1, = \ > > > > > > .name =3D (_name), = \ > > > > > > > > > > > > But there are some instances which need to be touched, for exam= ple > > > > > > vexpress-sysreg.c [1]. Are you OK with files to be changed? > > > > > > > > > > Nice! That's exactly my point and you can sell it to the communit= y > > > > > because there are already users of it like this. > > > > > > > > > > Yes, I'm fine, but it seems it needs to be done treewide in one p= atch. > > > > > Btw, how many of those already in use? > > > > > > > > Actually you don't need to change that. It's an array of resources = and > > > > everything should be kept as is there. > > > > > > > I do get below build failures, with the above literal change for > > > vexpress-sysreg.c. > > > > > > drivers/mfd/vexpress-sysreg.c: At top level: > > > drivers/mfd/vexpress-sysreg.c:64:37: error: initialiser element is no= t constant > > > 64 | .resources =3D (struct resource []) { > > > | ^ > > > drivers/mfd/vexpress-sysreg.c:64:37: note: (near initialisation for > > > =E2=80=98vexpress_sysreg_cells[0]=E2=80=99) > > Hmm... Interesting, so I suppose the fix is to drop (struct resource > > []) parts from the driver? > > > A bit more than that like something below: > - .resources =3D (struct resource []) { > - DEFINE_RES_MEM_NAMED(SYS_LED, 0x4, "dat"), > - }, > + .resources =3D &DEFINE_RES_MEM_NAMED(SYS_LED, 0x4, "dat"), This is not an equivalent change. The warning is about const qualifier. Can it rather be const struct resource [] ? --=20 With Best Regards, Andy Shevchenko