From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB267C433DB for ; Tue, 2 Feb 2021 11:33:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 98A1664E9B for ; Tue, 2 Feb 2021 11:33:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 98A1664E9B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tkos.co.il Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:In-reply-to:Subject:To: From:References:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9bkGywPQcTyB1xY4vnLvnJnBO+ARNqdlI7xi5LL/aBE=; b=kMEaykpQAY14KHzJRof99uKV9 juFlgDyyumoZyFEpskYJe4pJ4ej/7o5NQzfWyBnms69vrCbk/+imGMn1xouyMBxx8svBmZbld5sHI yfsRx8I8JZQGdmQoOeRpXX1vEB6MIYy2kAGKWCKS2BoKrYf487hAgmi8NTQvtlTijJkAP1diDSo3V pZ8mB7hT3uBFY7Ko1zlYnrrQMjzPO9YEP2ug+c7h1XiM724qZN0hKQmhmJVUDtnYBTsHqsyPGx4ZZ 9GoXWsxM1ZBSqlWv9QP3F56eWVoKwBH4keR2Aau5TgBr/yeJ1iVFT2N8LOlXAgGDa+egl5Ua247mN YpM9m7v5g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6tuq-0005Ty-FJ; Tue, 02 Feb 2021 11:32:16 +0000 Received: from guitar.tcltek.co.il ([192.115.133.116] helo=mx.tkos.co.il) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6tun-0005TA-Oy for linux-arm-kernel@lists.infradead.org; Tue, 02 Feb 2021 11:32:15 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210202_063214_162725_65BE338D X-CRM114-Status: GOOD ( 21.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rtc@vger.kernel.org, Alessandro Zummo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 - _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel