Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp219970pxb; Tue, 2 Feb 2021 03:33:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhEVHa9KZLd8NTJQzXL/YabFo0hw0GbTPTilFQ8+idVSYfPugb5G/UUa63K43Uagl7DiiH X-Received: by 2002:a17:906:24d1:: with SMTP id f17mr6336628ejb.503.1612265626019; Tue, 02 Feb 2021 03:33:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612265626; cv=none; d=google.com; s=arc-20160816; b=EBREIr9vAG+nsML35be0RvIoANqUReTebe2Vtm6Ie9uZFGF7z7IucJaaAT56cU4jXD shGQ0bFUlYX/Dw44hclYTkkGmZyIGfBExroGWQkKkp010+n5Fsiefa96XSsJrgb8qgxw 3mIAaMikqFOTA2/rVqjaUnpttr8KeZswSHAc8RbI6X3n2X90YCXoyymvXk9cqEuW3BOG /OgoweMBODTJZCU8h/d12VmEUAR0qp29QzJWEZE4tkPl3jB5uOivkqzj42MRLAZW4JoT 7bc4BryA/PCBVylhU2JoXg/75NaycDEVNsX9I9wB4yX59/ulGXuGc1bpkLWpH4fIP3Dw srIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=D/CQigOpvIGkAxusauDfF+YBDoUXmtIjmt2RzspOzUc=; b=S9CJgEZB4WfIdI10oix59ohOhZE9+M/sqAPLY6hH4IzKcaTxq8yekixIHUZzxlN3k4 JqYJcFVY0OQh7B90iXJGg8X58fW8FG1nI+SmVvO11vNPrAkK5Nluv53tHX5X8IntRNIn n5ciele5rUev3/H17YH0kVLF9i1g419S1GQ8Qkn51YZqIaKw4YF+vjKkpIbu3m+JTFj4 nHYNBwyG5O9u+IW0EKlNSHpYwnBYZKgVYK14RTo6Ld9y5OTTzVwBaIAolbco5CezBodF 6F3WOFuVyI4p5OGheZ4Oh8sfZ/uJsvI2tt/baqRGNLmmHJR17BSwJ49Tbi3a1FkcVqCJ /0/w== 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 z23si6667631edm.39.2021.02.02.03.33.21; Tue, 02 Feb 2021 03:33:46 -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 S231231AbhBBLce (ORCPT + 99 others); Tue, 2 Feb 2021 06:32:34 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39329 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229825AbhBBLXH (ORCPT ); Tue, 2 Feb 2021 06:23:07 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 89638C000C; Tue, 2 Feb 2021 11:22:25 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org, Alessandro Zummo , Alexandre Belloni Cc: linux-kernel@vger.kernel.org Subject: [PATCH 03/21] rtc: bq32k: quiet maybe-unused variable warning Date: Tue, 2 Feb 2021 12:22:00 +0100 Message-Id: <20210202112219.3610853-4-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210202112219.3610853-1-alexandre.belloni@bootlin.com> References: <20210202112219.3610853-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_OF is disabled then the matching table is not referenced. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-bq32k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c index 933e4237237d..2235c968842d 100644 --- a/drivers/rtc/rtc-bq32k.c +++ b/drivers/rtc/rtc-bq32k.c @@ -311,7 +311,7 @@ static const struct i2c_device_id bq32k_id[] = { }; MODULE_DEVICE_TABLE(i2c, bq32k_id); -static const struct of_device_id bq32k_of_match[] = { +static const __maybe_unused struct of_device_id bq32k_of_match[] = { { .compatible = "ti,bq32000" }, { } }; -- 2.29.2