Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp222635pxb; Tue, 2 Feb 2021 03:38:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyirqDz6Kk129HZcJnezQQs/24JKsX1w684FJIbN7rTX6urJyIdjmzesK1VObNJD2MKSbIW X-Received: by 2002:a17:906:4dc3:: with SMTP id f3mr6119355ejw.233.1612265881177; Tue, 02 Feb 2021 03:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612265881; cv=none; d=google.com; s=arc-20160816; b=ooYrZpBPM3A2lqBOCDu0zkyXSMmiNLuicc2FSlwCjBh6LV/1ohZjv3K5Bc5LjCY0Ou l0IbnjE2auX4jKKQXoit4gDgYe5OGaF04h4tslz2/mvLjjOQDkIHqpWVy/3TqxvzNW3F opwMtEcKg3MbUz3RdGhQkpHB+3E8sGsDAKwTf33gPvRh3Fhuj1W0YYyl0SRLjEH+RvjK AebKbZobOq82wi+ehKBLtjbjTwpx2eD1IrF7ZsUWc/QLsDW7MrS88R/ZvOqTe5IcPvqW lNjwND3QANvoCoe/1XK4a2XvTn1LjrjmSR3mD1m12VwBo30TKR6a/C1SfLQ6z10GYxEh +Hrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references; bh=k0lJO2wyPEPPvl9QPwiPJ/iQ5xBcy7OsIJx58RLKjLo=; b=wcMokJ8CsVjdV7RJIHfDPPybKcPABWmdMXTI1fRWqwU/s1auuDMAhcMiekbPYcdy5I jZOHF8qq3rnBYc6EdJKSH4knAoiZewvni3pdkZWJIEcVZ8/OJ+Zp1qZWDFXF+UQdjq7j gwr5fHpfbyjggVz70fh2EhRPnCOKHQyuNEebdM1EL4NbBZAIYbkvbASzbPfpzK+g8x7O 132sqV1Mzzrw6FZTNaKODmbFmRFNL+kblmrbEvi8iUQnIlTVAkDeICbCiZEXb0rLY/K8 1WzBziAN/qOXlOxzEvERZR3gsxgkKTMHrfPP1gu5d3EzRy8f1il7wNvJeF+SS3ygBL/8 XMKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si11771766edu.106.2021.02.02.03.37.36; Tue, 02 Feb 2021 03:38:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbhBBLez (ORCPT + 99 others); Tue, 2 Feb 2021 06:34:55 -0500 Received: from guitar.tcltek.co.il ([192.115.133.116]:34438 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231336AbhBBLcw (ORCPT ); Tue, 2 Feb 2021 06:32:52 -0500 Received: from tarshish (unknown [10.0.8.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 9820D440DBB; Tue, 2 Feb 2021 13:32:04 +0200 (IST) References: <20210202112219.3610853-1-alexandre.belloni@bootlin.com> <20210202112219.3610853-6-alexandre.belloni@bootlin.com> User-agent: mu4e 1.4.15; emacs 27.1 From: Baruch Siach To: Alexandre Belloni Cc: linux-rtc@vger.kernel.org, Alessandro Zummo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 05/21] rtc: digicolor: quiet maybe-unused variable warning In-reply-to: <20210202112219.3610853-6-alexandre.belloni@bootlin.com> Date: Tue, 02 Feb 2021 13:32:01 +0200 Message-ID: <874kiuemdq.fsf@tarshish> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Baruch Siach 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 -