Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5864319rwb; Sun, 11 Dec 2022 14:15:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4L8PlwUt1OuqpSOZe6vRswNwyUxL1d/ZjXNyzi4yR7cf/89BSqRPOjnntPPGWX/ssSLmzr X-Received: by 2002:a17:902:ed94:b0:186:b1bf:be87 with SMTP id e20-20020a170902ed9400b00186b1bfbe87mr14963035plj.51.1670796900796; Sun, 11 Dec 2022 14:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670796900; cv=none; d=google.com; s=arc-20160816; b=nxYKNIzpbR5Hcn2/xFK5igZSdNw4A3jm9nlL6tsL8/d42JYmd7M4YrXVgZGw7pASAp qc0Z7l2NeWT3hgxpXFSmpAoWFneIwvhQeTkhaQgT99tIr18oOtLN/BUeL4VRaGYzIPed vYMwLHPjoXvWl52EXZM8E/y72MvO2smFVSAnRc2ovo3FI+tSb6/v1AipHDphVYsjsUpS LiItWtsF5hT79l5JVZfh0tzY1hQm3sbTS27A+i7XSHz4ja+lwQPxk6HyCVZJ/hjHfX21 gLjPq8FawUKLvAhlZLRI3CbfYwWCEZbXmUohRfckhxofHvozjg2Q+xiTqLXvAuWnCyWg zYag== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Gn2wozbp6UyyW3PSzzTKHcaffuxRTyrivYdS1OSvB80=; b=V9wdp/5XgAm6Nb0wA7wUPEkWuRr50F9JOKRqFnR0D/j4LC3N4j0J25UsDjxg1mN2df bGv0YnCa/isjJ/9Z0XHeO1UPaCkyrLhVIHj1si7ITJRMPnuD8zvbSKPe+J1AsVTcQIAw /Wlrd3285NR0PrDTRhmPjvIUcgK2aj+V9u70mhSSLmc+kVEdwsGJflU09xeijv4Ukm/i k4omRtowSwHbsruKdj+W8T9mxIJrPM5zFZG6P06OZGBpi7qUn6Lim178zluZtw3u6NF9 XfnajVvrGjuJwn1ldv5FG1DTRevKZDAS+VN7x6fbYoByX1aIeBGazhze4DBsKZeYfs1v Hxaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iiuJJraB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a170902ee4200b00188f882599csi7147880plo.58.2022.12.11.14.14.43; Sun, 11 Dec 2022 14:15:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iiuJJraB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbiLKV6S (ORCPT + 77 others); Sun, 11 Dec 2022 16:58:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiLKV6P (ORCPT ); Sun, 11 Dec 2022 16:58:15 -0500 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFF0B626B; Sun, 11 Dec 2022 13:58:13 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 98805240003; Sun, 11 Dec 2022 21:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1670795891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Gn2wozbp6UyyW3PSzzTKHcaffuxRTyrivYdS1OSvB80=; b=iiuJJraB2yHN/8rtn9HhMb03Cnahm5piBbrQrTrNZpLD42cKbqtXfviul9U+OC03XKetxG z5tLeAQg9MhrBBXzJO+qf79vf1nJhsgv1qfhgSd9ZrTuhGtWwkedZeZO2C6kjO8QZh1lU+ vTGU3tjGlblxEBmlFJchb/adefeVuirqMwEAS7sIvywt+Tutm2fTj50nuSGFgWdbXPmQgu F6rqse6lvXQM9jbng0yVkwMrPcETdNOummMHSg5+TaXj4omqbkM2PbyKZFUk/V/hzS15Vi 5vJTylXwK8hdznfmm1bwVCWNbn6wbwb2/AFSDrYcii9RYaYe1ENkLzD+L8GfdA== From: alexandre.belloni@bootlin.com To: Alessandro Zummo , Alexandre Belloni Cc: kernel test robot , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: rx6110: fix warning with !OF Date: Sun, 11 Dec 2022 22:57:55 +0100 Message-Id: <20221211215756.54002-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandre Belloni rx6110_spi_of_match is not used when !OF, leading to a warning: >> drivers/rtc/rtc-rx6110.c:384:34: warning: 'rx6110_spi_of_match' defined but not used [-Wunused-const-variable=] 384 | static const struct of_device_id rx6110_spi_of_match[] = { | ^~~~~~~~~~~~~~~~~~~ Reported-by: kernel test robot Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rx6110.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c index cc634558b928..76a49838014b 100644 --- a/drivers/rtc/rtc-rx6110.c +++ b/drivers/rtc/rtc-rx6110.c @@ -376,7 +376,7 @@ static const struct spi_device_id rx6110_spi_id[] = { }; MODULE_DEVICE_TABLE(spi, rx6110_spi_id); -static const struct of_device_id rx6110_spi_of_match[] = { +static const __maybe_unused struct of_device_id rx6110_spi_of_match[] = { { .compatible = "epson,rx6110" }, { }, }; -- 2.38.1