From patchwork Sun Feb 5 03:01:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13128947 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52311C61DA4 for ; Sun, 5 Feb 2023 03:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8Umycudrj4Lopgi6e8Xv8Ly9Bgv4bKrLV0l24HZYUtI=; b=fVzMb76SPkpJU1 Ffsv4zIaeWvXoKV7+bmL2Yf+esEy2cq8Exf9YqVqCn9/UDYBG1WYpEtLEvqNguVHhuT690B3vH5AS G/GooG6bGcXdZJt54i3Oluo5ysl6WRZnLickq5ut54MEhTI/CkNJCGH9IlUKs782LTcDAsVT9Szrb 7tdoGCu0CeTLJQfSaPhWUrplxtaGeh7MfGq5Ewx8Z3vh59oKSdg2NhEpO4UKggUdf7uBlYcEKE6F9 xUmp/qqTnavoQn7baCLvbivASYZT5dB1j4EMd/A0JhgTvg3QPhYnoxlbdx4VXe6fviyA4WQ6ZkUfc wy1DKNxQ8wD4+P1irjjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOVHw-005uIv-Ay; Sun, 05 Feb 2023 03:01:56 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOVHs-005uIR-8D for linux-arm-kernel@lists.infradead.org; Sun, 05 Feb 2023 03:01:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675566108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Rc1Rh+5JjEe0b8phxZCvxG2nnz2wqGygUGi1H3bm4Pk=; b=ButsZGHNT8GRXP4yR0kaAowhO9cDI4Co3j9gR3dSfT4+EbnA4UqI96QlAo1glZ4cn9kQFH kcJsrSR+S9RFQ+CMGY4ET6QsAuwA+RZ2As100nI2luD9ZuxMa6KsG7w3d9tlik1e6dKEBt NLE3IDGbR3S2chhrVBZF33EsZcYp87g= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-287-SAJDT6WYP_e9qaBp3tWWqg-1; Sat, 04 Feb 2023 22:01:47 -0500 X-MC-Unique: SAJDT6WYP_e9qaBp3tWWqg-1 Received: by mail-qt1-f200.google.com with SMTP id f14-20020ac86ece000000b003b816f57232so4674140qtv.10 for ; Sat, 04 Feb 2023 19:01:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Rc1Rh+5JjEe0b8phxZCvxG2nnz2wqGygUGi1H3bm4Pk=; b=FJ12HCzd01LITW2SkeCjkrQM0mL81ZWpBMMThZeq/+Wc3lvXlu23uv5zgBNHjbQrOG IgxebkK2FV3dIhqD/e5FzZBv0oCAOayznPF+BNkQ0w9udcyD5MlC8fflDYFXDWsRVusA J1NzAh34IyeYI7jIvTH8aP0FSU/bJ/EyBbmFjJ4Aum3zKgfr/XekHfY0HzZu139N6r4z byaZ81tpcOMRH6uCQbplLmBYGeZOH33R9VK7Ph5TdsfECEGfX9LJ4IiJj227P8PQGC4A TavDkHl3Y8rv/e3OaW64STUfkyAc+cm1z/4nQtZ0u9x1vnhFrKXdeWSMKgfC1KYc9+zn fYwg== X-Gm-Message-State: AO0yUKWyK86H+OM5XI4Ch/s033SwxfkCQxrlaUGtpe9yhlum2pRz0Yh+ bSOkiUZhoPY8UX48c+pl+6iwkZTl3uNsFmS7EIRyHcixkeiD80ahTLRiuL5HSpa27ALegGMjz9U E34x+NUKH81ftaz7F+5EiWRcEyAPACXpPqSE= X-Received: by 2002:ad4:5191:0:b0:537:77b2:8aab with SMTP id b17-20020ad45191000000b0053777b28aabmr23430366qvp.27.1675566106439; Sat, 04 Feb 2023 19:01:46 -0800 (PST) X-Google-Smtp-Source: AK7set8bN7F7Fny2DRi/DyfvIZwdVQGkpozPBd6lorCA4FvWU8tSytLGnd4Yc7/ZDZ6JBiU3+JXWnw== X-Received: by 2002:ad4:5191:0:b0:537:77b2:8aab with SMTP id b17-20020ad45191000000b0053777b28aabmr23430344qvp.27.1675566106180; Sat, 04 Feb 2023 19:01:46 -0800 (PST) Received: from localhost.localdomain.com (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id b24-20020a05620a0f9800b0071ba3799334sm4791906qkn.58.2023.02.04.19.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Feb 2023 19:01:45 -0800 (PST) From: Tom Rix To: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] clk: imx: set imx_clk_gpr_mux_ops storage-class-specifier to static Date: Sat, 4 Feb 2023 19:01:38 -0800 Message-Id: <20230205030138.1723614-1-trix@redhat.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230204_190152_389532_34CBE4D8 X-CRM114-Status: GOOD ( 13.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org smatch reports drivers/clk/imx/clk-gpr-mux.c:73:22: warning: symbol 'imx_clk_gpr_mux_ops' was not declared. Should it be static? imx_clk_gpr_mux_ops is only used in clk-gpr-mux.c, so it should be static. Signed-off-by: Tom Rix Reviewed-by: Peng Fan --- drivers/clk/imx/clk-gpr-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-gpr-mux.c b/drivers/clk/imx/clk-gpr-mux.c index 47a3e3cdcc82..c8d6090f15d6 100644 --- a/drivers/clk/imx/clk-gpr-mux.c +++ b/drivers/clk/imx/clk-gpr-mux.c @@ -70,7 +70,7 @@ static int imx_clk_gpr_mux_determine_rate(struct clk_hw *hw, return clk_mux_determine_rate_flags(hw, req, 0); } -const struct clk_ops imx_clk_gpr_mux_ops = { +static const struct clk_ops imx_clk_gpr_mux_ops = { .get_parent = imx_clk_gpr_mux_get_parent, .set_parent = imx_clk_gpr_mux_set_parent, .determine_rate = imx_clk_gpr_mux_determine_rate,