linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: linux-rtc@vger.kernel.org,
	Alessandro Zummo <a.zummo@towertech.it>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 05/21] rtc: digicolor: quiet maybe-unused variable warning
Date: Tue, 02 Feb 2021 13:32:01 +0200	[thread overview]
Message-ID: <874kiuemdq.fsf@tarshish> (raw)
In-Reply-To: <20210202112219.3610853-6-alexandre.belloni@bootlin.com>

Hi Alex,

On Tue, Feb 02 2021, Alexandre Belloni wrote:

> When CONFIG_OF is disabled then the matching table is not referenced.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Baruch Siach <baruch@tkos.co.il>

Thanks,
baruch

> ---
>  drivers/rtc/rtc-digicolor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c
> index 4fdfa5b6feb2..218a6de19247 100644
> --- a/drivers/rtc/rtc-digicolor.c
> +++ b/drivers/rtc/rtc-digicolor.c
> @@ -205,7 +205,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
>  	return devm_rtc_register_device(rtc->rtc_dev);
>  }
>  
> -static const struct of_device_id dc_dt_ids[] = {
> +static const __maybe_unused struct of_device_id dc_dt_ids[] = {
>  	{ .compatible = "cnxt,cx92755-rtc" },
>  	{ /* sentinel */ }
>  };


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-02-02 11:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210202112219.3610853-1-alexandre.belloni@bootlin.com>
2021-02-02 11:22 ` [PATCH 04/21] rtc: brcmstb-waketimer: quiet maybe-unused variable warning Alexandre Belloni
2021-02-02 17:22   ` Florian Fainelli
2021-02-02 17:23   ` Florian Fainelli
2021-02-02 11:22 ` [PATCH 05/21] rtc: digicolor: " Alexandre Belloni
2021-02-02 11:32   ` Baruch Siach [this message]
2021-02-02 11:22 ` [PATCH 10/21] rtc: meson: " Alexandre Belloni
2021-02-02 16:26   ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kiuemdq.fsf@tarshish \
    --to=baruch@tkos.co.il \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).