Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp215404pxb; Tue, 2 Feb 2021 03:26:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuMjFmHn5ZOw/VqzYhiPJx0cTFHSUtqTwlv9LObOT3rSO4+2/nMifBKXb3FbXiJH8NygmU X-Received: by 2002:a17:906:7d4d:: with SMTP id l13mr21457848ejp.107.1612265160364; Tue, 02 Feb 2021 03:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612265160; cv=none; d=google.com; s=arc-20160816; b=tPbhqu739K4S++PO+Um46bnAWC6aZXl3UgnBSzUKgMoEdABYvs4+IDigtcuSU50LlI K5JijxRR11VQGdkN1Ihb5/M1zisglmXvqdLDvF7tQZmx86ilwjLuEiqyAqwtkvw+qwtT HlqsajlTb2ZNTGbBkUgvtkod78nEStQq7wFFiW3FWSuzuAfdYEMg+z3fTwNAPm9UZv6M adw8Vdm3kqLJCZSSQTNLEK2W8aGHusH2uuV2CRvLT/SOXEeAQh2NZntTX/A/3oijZQ4r frt4IRcyasd3RTvOiQYK8pf0UnvrmYvptlto6feZmYiOlD6G96vCoT3ZTAqmuuZid2+o QjTg== 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=j4Yv7jj9veZbJyG7JTNzzo2jai2OMP5cn89004s5AQQ=; b=BZl5ICm/l/ZjPF6otGYIeYSwDsAlZx0MvOhyzACd0FN3tOTEoy6whbgcOJ4yf2PUbK usZKaPASdMAdphv7yX0rbNdp2e16O+BXMHqvpqwlIXtBft/z8ekRUtX8lWf76rUV841+ hF1kk+4m7NthYcSQmVazDnYsCqi1iBzD+cJxQEBh5ejpqkzNYtnfcUSba21Z3It1VsNT KE6zTRpRKzcJVDZe82yHOIY+Z4rOqtcciQcLqkiHufesmfybFM5NdQlH6pKSV2fogbjY Ioj3N3Kd0YXwkfXb4Wi6edbqoALwhmFkJv7mhihE8KmR16fw48MQpxhgZ7TWkP8IohIR 2MXg== 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 gb7si12870728ejc.286.2021.02.02.03.25.35; Tue, 02 Feb 2021 03:26:00 -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 S231230AbhBBLX4 (ORCPT + 99 others); Tue, 2 Feb 2021 06:23:56 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:60347 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbhBBLX3 (ORCPT ); Tue, 2 Feb 2021 06:23:29 -0500 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 10533240002; Tue, 2 Feb 2021 11:22:45 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org, Dianlong Li , Alessandro Zummo , Alexandre Belloni Cc: linux-kernel@vger.kernel.org Subject: [PATCH 21/21] rtc: sd3078: quiet maybe-unused variable warning Date: Tue, 2 Feb 2021 12:22:18 +0100 Message-Id: <20210202112219.3610853-22-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-sd3078.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-sd3078.c b/drivers/rtc/rtc-sd3078.c index f6bee69ba017..24e8528e23ec 100644 --- a/drivers/rtc/rtc-sd3078.c +++ b/drivers/rtc/rtc-sd3078.c @@ -207,7 +207,7 @@ static const struct i2c_device_id sd3078_id[] = { }; MODULE_DEVICE_TABLE(i2c, sd3078_id); -static const struct of_device_id rtc_dt_match[] = { +static const __maybe_unused struct of_device_id rtc_dt_match[] = { { .compatible = "whwave,sd3078" }, {}, }; -- 2.29.2