Message ID | 20230205030138.1723614-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1610992wrn; Sat, 4 Feb 2023 19:20:27 -0800 (PST) X-Google-Smtp-Source: AK7set87On60qgfu1TsUB7g5m9CDEQdedVEkA1MZqCrcuacHm0tJCxhytO2q7cGiLfSUpgQKH6mM X-Received: by 2002:a05:6a20:6aa1:b0:bc:f665:865f with SMTP id bi33-20020a056a206aa100b000bcf665865fmr14941747pzb.19.1675567227625; Sat, 04 Feb 2023 19:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675567227; cv=none; d=google.com; s=arc-20160816; b=bwWu6GYByPVhuklyGGgGCBqpUMLhZCtQ56niMM3T6g974i5xLyl6XUA8Xux7UxW+IJ bLEYOVU/mfrLB7cQxXiaD2xB+6FZ7mTUYGZG91jnwMbn4lMf7FC4yWLm5rQ7itpzcL6m b9WBoYPkBBj03LNl1IRep6pjqZ22RksKTkqXugGG3TLTnVJ8QmxAckKF0MR2f5zkqrY5 CvygoBMKSsWAmsl53BUxSTNwob+ycVADXto8RHKFmj+QDvSwReC1zMSFlOO7NJ93DSf5 mFf6EwosfMe3w3WsqA79BZ91Vao8ag3kwnVdOO8pLdyzWekjPxaRizqHBBvavuXLJhqp p1Yg== 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=Rc1Rh+5JjEe0b8phxZCvxG2nnz2wqGygUGi1H3bm4Pk=; b=KWCUzB9qkZ/i2mOmrK2oxDsXLC4acifGW/IDU8wu6eTKYqZ9o6iseJ2Zhd8+5sHbjW Sowq6cZUECet6ny6++1vNwF4YRJuwG6fax49BwQ4wkV5X5i+Q2JPqxq2oG1rzKUhbXW3 pDn8NtMb461wQxjcanvRckhWVSlVvSUDwFk3op79BiX+FOUlOBn7rra4nEAr2z17oAy7 c9mSmuXRM+qjX/H4QFyDJWfuV8ULKIy57zwb0apzwXOMpf68uGEO6A4mli/8PXQeldkM A3p4Xk76+oCy74/XhPZTOZn6UxGj9HABOrS7xNRXBTh2toNNRKG0+Vqng6itrOOZOSBe jJqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=heODJUh6; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a170902d48100b001962b0e8658si7972427plg.370.2023.02.04.19.20.07; Sat, 04 Feb 2023 19:20:27 -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=@redhat.com header.s=mimecast20190719 header.b=heODJUh6; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjBEDCh (ORCPT <rfc822;il.mystafa@gmail.com> + 99 others); Sat, 4 Feb 2023 22:02:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjBEDCg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 4 Feb 2023 22:02:36 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1370813DEF for <linux-kernel@vger.kernel.org>; Sat, 4 Feb 2023 19:01:49 -0800 (PST) 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-transfer-encoding:content-transfer-encoding; bh=Rc1Rh+5JjEe0b8phxZCvxG2nnz2wqGygUGi1H3bm4Pk=; b=heODJUh6dmqvcJ7uR50XkiKGFLb6cbcZGYUuiJ7R1qQr7fNXuUroVlQfp+ZfKxCq+JXOLQ 5NucuS53KV5A/bYboppfAQFfehEbG5iweeACVz3xvPMDeJZ7InJbsPSQkki4TZiv+0VTsU o4t42f7RPiQ3oyFzjuvICGBVqL5g64c= 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-77-NWDoARzdO9euS5ouWNNkFw-1; Sat, 04 Feb 2023 22:01:46 -0500 X-MC-Unique: NWDoARzdO9euS5ouWNNkFw-1 Received: by mail-qt1-f200.google.com with SMTP id t5-20020a05622a180500b003b9c03cd525so4720944qtc.20 for <linux-kernel@vger.kernel.org>; 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=pys+mqR7tJ2qZuUtqarcCJpKQiyMWVJjb5DSFAOTJTFuyLIOkyfOv9vmuyjAeVvdwM fU0dcyDodyyNPuG2J0fcdhG0+z4J7bQuf4YQfoMD9xXoe05kZy17IYtqKgFDI7Xm7Qd0 v8K9TzGcIHZPHeZTg2dU9pPodKKNefrh1dmwa2gIRgUlMyJhSRB5B1b0RhyyZSHGfWja LGxmAKxzlphgY8p0BUBtajH5su7aRkpVG/9PqVUm2lKtFxxIsia1lqSKSXT6HvHdavO+ baumiaEIcQYZ2xeBTqX+qki102ph5Dxvqs7C2PoIn7K6FGZGe5pxVLjWlS5/hmd8D6wB 45Pw== X-Gm-Message-State: AO0yUKVkICEnnGodGZb+Fe1aAeg1Tw8G/M29nFitd6hOp8MLhpE4/reK emMdBfiHqnWOeFmfPgUqGMwp7/jykj7jyl8jRrfovP1XJBZ5cxywhbkiMgRnTVlbY22OsxOPurI CpPd6fxkoFjDsyScMWkDlYCnp X-Received: by 2002:ad4:5191:0:b0:537:77b2:8aab with SMTP id b17-20020ad45191000000b0053777b28aabmr23430360qvp.27.1675566106438; Sat, 04 Feb 2023 19:01:46 -0800 (PST) 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 <trix@redhat.com> 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 <trix@redhat.com> 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756959581484089119?= X-GMAIL-MSGID: =?utf-8?q?1756959581484089119?= |
Series |
clk: imx: set imx_clk_gpr_mux_ops storage-class-specifier to static
|
|
Commit Message
Tom Rix
Feb. 5, 2023, 3:01 a.m. UTC
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 <trix@redhat.com>
---
drivers/clk/imx/clk-gpr-mux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Quoting Tom Rix (2023-02-04 19:01:38) > 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 <trix@redhat.com> > --- Applied to clk-next
On 2/5/2023 11:01 AM, Tom Rix wrote: > 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 <trix@redhat.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> > --- > 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,
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,