Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp631667pxb; Tue, 3 Nov 2020 08:27:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4evM+wXvy/mjaSXk4kVH6Jdh49SkoWCv4oXoPnMyeLZNHWbfDq4EOVCgfsm8Rg0dzu8v0 X-Received: by 2002:a17:906:3e08:: with SMTP id k8mr21409183eji.478.1604420861798; Tue, 03 Nov 2020 08:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420861; cv=none; d=google.com; s=arc-20160816; b=ZAwAnkKBByb/6XuczjAlg79H3jYmSLdjZdPmDq2r764cBaHkB9VTkvbITP3EUyrgR9 CJ+5e9ZJn4gKvPpziRCo3W3bWNR22oUy6kwCSivH4vqWHD2sYsVdSee13PXmV9I17B1g tWe6X/RH0Uc8l+xUQT/uUbN06nyPdzG3xHxXrr9gG1G8aGGfmZ1gx09BzzMovcKT0tC2 gj5CgM9w7YvvVYgdzSeTbOpgeZxEukjxfNeWcWNJth2QcXv2hZyGliMmL9kbZGRNqQ0p TtvAFTdt0xaF196HI4ClApPsXk3yOJsW+vNVr8f+QUeFwtNAcGpMF0lYiTR+N3Ku4zcg QrVg== 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 :dkim-signature; bh=8OLLn0d3/8a+KU3PT14RzH6aj2z9qt6UPIRnOgjm31U=; b=t+vwMFqHGunkgXdTxzWrT38txHsGi7/eNji7t6bQUdSznJYLmZLnB0ntLoyjmGUu5u FhzS/DMXX0PIDmrfyoyNMElTbjtrJnVnBBipFdYbCK4nMaOfvdxQ+oZbHs+rtYHHsG2q jzTRxK97WrXl2nn/NJcKA5zrEFDcYBXbu19VLRt5MCo8Pe4hHYtFuO72ikXEy3BMbYB9 r0UpjpcJ4++wu/oZGf2J3DbRpprRQDhxzbhn43ENlZrAsjns2Nzq5FKrRfIzStmElT2q IcKpx3hqgsPe/EzRO48upwkM+PBoo06DX7Np+vql4aNGdQCzbd/HF9o7V1Ob8bF7L0In vqfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZTCkpKFT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si13425640edv.153.2020.11.03.08.27.18; Tue, 03 Nov 2020 08:27:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ZTCkpKFT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728382AbgKCQZM (ORCPT + 99 others); Tue, 3 Nov 2020 11:25:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:51826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728209AbgKCQZI (ORCPT ); Tue, 3 Nov 2020 11:25:08 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 88E22223AB; Tue, 3 Nov 2020 16:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604420707; bh=SanVrlJxei82XUzDoQ0j0q/1TrJYAyCBfZoNzZcHYms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZTCkpKFTdy/oHxFi4BqIJvjJASzLH+BQB/2GH2+d3wZA5soSEbxrGQHb4ckVyKwzH Rn5Amvc9htrCqAOrFcZmbFY2fKF/3GC5gbW1UwqHWznTR+JHmQEDCiHPosNpp3tvP0 cMXTHiaJGLCxX522ty4i1VHBe7O/aBrAhR+S6FlQ= From: Krzysztof Kozlowski To: Michael Turquette , Stephen Boyd , Sudeep Holla , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Geert Uytterhoeven , Peng Fan , Abel Vesa , Anson Huang , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 8/8] clk: scpi: mark scpi_clk_match as maybe unused Date: Tue, 3 Nov 2020 17:24:35 +0100 Message-Id: <20201103162435.13689-8-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103162435.13689-1-krzk@kernel.org> References: <20201103162435.13689-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The scpi_clk_match (struct of_device_id) is referenced only with CONFIG_OF builds thus mark it as __maybe_unused: drivers/clk/clk-scpi.c:132:34: warning: ‘scpi_clk_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-scpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-scpi.c b/drivers/clk/clk-scpi.c index 5a9b140dd8c8..a39af7616b13 100644 --- a/drivers/clk/clk-scpi.c +++ b/drivers/clk/clk-scpi.c @@ -129,7 +129,7 @@ static const struct clk_ops scpi_dvfs_ops = { .set_rate = scpi_dvfs_set_rate, }; -static const struct of_device_id scpi_clk_match[] = { +static const struct of_device_id scpi_clk_match[] __maybe_unused = { { .compatible = "arm,scpi-dvfs-clocks", .data = &scpi_dvfs_ops, }, { .compatible = "arm,scpi-variable-clocks", .data = &scpi_clk_ops, }, {} -- 2.25.1