Message ID | 20230315155630.1740065-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2411483wrd; Wed, 15 Mar 2023 09:03:02 -0700 (PDT) X-Google-Smtp-Source: AK7set9wpFb3S2VLLa/gZG34P7LKpSlBaQCTbhMFqSeBgL6gMjpLdmOL0J+rXOhyoXdrfy4hBWAF X-Received: by 2002:a17:902:da92:b0:19e:b38c:860b with SMTP id j18-20020a170902da9200b0019eb38c860bmr81293plx.24.1678896181805; Wed, 15 Mar 2023 09:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678896181; cv=none; d=google.com; s=arc-20160816; b=Gvgenln9kLvVZc4rL5JxnFWzGa9QJdcANDXZct2Am3NdTAYM97mU/ed91lT8l3xT5O cE9Qiz1GF49SBI+BwAoNExccEmERmjvuvM+wD24sCW2UWuWRa1J3+35r450RP7LVAIuy N3Bt8IHfevAMUjK/n5gmv5Fx8klmA5fQ635HDF/6aCAn/JPKSfaOO8Hy8NcuGVwlT2fj yJO1ZbzW+YoWUy2N2bnQEEJCk1McZIWCb79ZxfPjzhMmb4p+HN3s/d2FJi33+5vkboKw OOQ9BR0QdXw4gWR3zYCEH92sfaLsgcUUleKnQEahJG3dpK7w7X6et5+NRcF/EdidNE4K 1SJA== 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=CJaCLAjqxLo9SAqmZ/ZPxPuIYyAicDla8mBV+t3lBL8=; b=POZdc5jzfyu49z0Q0vAD4YhfdNAgGfhAlFBe77DY37VvV3HhyYREkidrZxvPGSmlb4 q+Jhgb1zRpUQlekEpnDUnCXyLMLkH2RCHk/On+2Whga9NlhZpaui2czM5sKFEZzU1Ocq XsYA6R/ETfXW9XKBLtK8d9npNg80zh3JsoPI21G+3LZgjQ8VBsvOpWbFTFDk1dXSKu7v SSw/C+JKxw9e/fG6Ab3t0xzlUTDudfiZZJYuvc0vml3ua60hGHG/w96jDvP+LF5Um8aX osCMi307vxFcUmGDpLZ6lLkLFUpHyitE/Jzu0j2C8j/3yqywI94J9zEqJ7LEGNNlyLXs 5Bsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MqGuIU8a; 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 c6-20020a170902d48600b0019ca7d69673si794302plg.196.2023.03.15.09.02.46; Wed, 15 Mar 2023 09:03:01 -0700 (PDT) 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=MqGuIU8a; 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 S232767AbjCOP6b (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Wed, 15 Mar 2023 11:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbjCOP6S (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Mar 2023 11:58:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F2798569B for <linux-kernel@vger.kernel.org>; Wed, 15 Mar 2023 08:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678895800; 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=CJaCLAjqxLo9SAqmZ/ZPxPuIYyAicDla8mBV+t3lBL8=; b=MqGuIU8aGur8T6kH/k+QZlIwDxYLJhjhforGDgMBeGdk8k/52qSm0v5bpcNnCjx9rcPwjk K3IMBz2vklzAgbY8DfnTD7csfWSKEp+UvJa3j5T0+iMfePg66YtbrH3d18m1VFl2Ap+YBb +dXHGZA6M9QQenVn7rQ5WpxisD8Io1M= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-226-65Bk7wIwN5mslhvJ9RtFFA-1; Wed, 15 Mar 2023 11:56:38 -0400 X-MC-Unique: 65Bk7wIwN5mslhvJ9RtFFA-1 Received: by mail-qv1-f71.google.com with SMTP id ke14-20020a056214300e00b005abcdd36f47so4351939qvb.21 for <linux-kernel@vger.kernel.org>; Wed, 15 Mar 2023 08:56:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678895798; 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=CJaCLAjqxLo9SAqmZ/ZPxPuIYyAicDla8mBV+t3lBL8=; b=J/6fzzIl6rVMMAPayIcSgv0iMaVwT+pGl76lBOSBzw9OrH1BF33czkoQahJUPvE3b8 VNdKKsQG2xFOo/0cjJfGZAHr0KHjMmy9uMCP8Pv4SCae8/vr3keo05wvfYu8K9Hh5ejM KPL/cTiY6S7B5k4AAnI4lphg5EYm0OuuFRNCbuNkOUYILUwlI4onLUiyZJ4Hngm0s7qS IoftRSMtfH5/iQxhjKKUhyu4q1B25J1Vt1G6FgvgvWK5yD6TaydEBxXigvdxaVFjO7WI yFQnxAhEwYcTwekMeOA9F3ynOzpIHdctelAxO31smW4OLyLZvIYzwnRBvxdmzlU4n/7i MZTg== X-Gm-Message-State: AO0yUKXToMZdP4pwCf0EOoDNqEmFHT0CF9qKBkwK8w6I7zHE3GBwZELa +QvN1qdpi+vjkbM/eEuOWU5uAwMWT8BVXPB/q5qDhzCO+OMgEEG3186sBd7EqvPeYniH1U0GThj DWnsw4ChoKYwqMc6PmET0RdOta6UwIepk X-Received: by 2002:ac8:5b95:0:b0:3bf:bff0:841d with SMTP id a21-20020ac85b95000000b003bfbff0841dmr644407qta.21.1678895798121; Wed, 15 Mar 2023 08:56:38 -0700 (PDT) X-Received: by 2002:ac8:5b95:0:b0:3bf:bff0:841d with SMTP id a21-20020ac85b95000000b003bfbff0841dmr644356qta.21.1678895797686; Wed, 15 Mar 2023 08:56:37 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 201-20020a3705d2000000b00745a78b0b3asm3873312qkf.130.2023.03.15.08.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 08:56:37 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix <trix@redhat.com> Subject: [PATCH] clk: qcom: remove unused variables gpucc_parent_data,map_2 Date: Wed, 15 Mar 2023 11:56:30 -0400 Message-Id: <20230315155630.1740065-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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=unavailable 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?1760450242930770928?= X-GMAIL-MSGID: =?utf-8?q?1760450242930770928?= |
Series |
clk: qcom: remove unused variables gpucc_parent_data,map_2
|
|
Commit Message
Tom Rix
March 15, 2023, 3:56 p.m. UTC
gcc with W=1 reports these errors
drivers/clk/qcom/gpucc-sm6375.c:145:37: error:
‘gpucc_parent_data_2’ defined but not used [-Werror=unused-const-variable=]
145 | static const struct clk_parent_data gpucc_parent_data_2[] = {
| ^~~~~~~~~~~~~~~~~~~
drivers/clk/qcom/gpucc-sm6375.c:139:32: error:
‘gpucc_parent_map_2’ defined but not used [-Werror=unused-const-variable=]
139 | static const struct parent_map gpucc_parent_map_2[] = {
| ^~~~~~~~~~~~~~~~~~
These variables are not used, so remove them.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/clk/qcom/gpucc-sm6375.c | 12 ------------
1 file changed, 12 deletions(-)
Comments
On 15.03.2023 16:56, Tom Rix wrote: > gcc with W=1 reports these errors > drivers/clk/qcom/gpucc-sm6375.c:145:37: error: > ‘gpucc_parent_data_2’ defined but not used [-Werror=unused-const-variable=] > 145 | static const struct clk_parent_data gpucc_parent_data_2[] = { > | ^~~~~~~~~~~~~~~~~~~ > drivers/clk/qcom/gpucc-sm6375.c:139:32: error: > ‘gpucc_parent_map_2’ defined but not used [-Werror=unused-const-variable=] > 139 | static const struct parent_map gpucc_parent_map_2[] = { > | ^~~~~~~~~~~~~~~~~~ > > These variables are not used, so remove them. > > Signed-off-by: Tom Rix <trix@redhat.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > drivers/clk/qcom/gpucc-sm6375.c | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/drivers/clk/qcom/gpucc-sm6375.c b/drivers/clk/qcom/gpucc-sm6375.c > index eb9ffa956950..d8f4c4b59f1b 100644 > --- a/drivers/clk/qcom/gpucc-sm6375.c > +++ b/drivers/clk/qcom/gpucc-sm6375.c > @@ -136,18 +136,6 @@ static const struct clk_parent_data gpucc_parent_data_1[] = { > { .index = DT_GCC_GPU_GPLL0_CLK_SRC }, > }; > > -static const struct parent_map gpucc_parent_map_2[] = { > - { P_BI_TCXO, 0 }, > - { P_GCC_GPU_GPLL0_CLK_SRC, 5 }, > - { P_GCC_GPU_GPLL0_DIV_CLK_SRC, 6 }, > -}; > - > -static const struct clk_parent_data gpucc_parent_data_2[] = { > - { .index = P_BI_TCXO }, > - { .index = DT_GCC_GPU_GPLL0_CLK_SRC }, > - { .index = DT_GCC_GPU_GPLL0_DIV_CLK_SRC }, > -}; > - > static const struct freq_tbl ftbl_gpucc_gmu_clk_src[] = { > F(200000000, P_GCC_GPU_GPLL0_DIV_CLK_SRC, 1.5, 0, 0), > { }
On Wed, 15 Mar 2023 11:56:30 -0400, Tom Rix wrote: > gcc with W=1 reports these errors > drivers/clk/qcom/gpucc-sm6375.c:145:37: error: > ‘gpucc_parent_data_2’ defined but not used [-Werror=unused-const-variable=] > 145 | static const struct clk_parent_data gpucc_parent_data_2[] = { > | ^~~~~~~~~~~~~~~~~~~ > drivers/clk/qcom/gpucc-sm6375.c:139:32: error: > ‘gpucc_parent_map_2’ defined but not used [-Werror=unused-const-variable=] > 139 | static const struct parent_map gpucc_parent_map_2[] = { > | ^~~~~~~~~~~~~~~~~~ > > [...] Applied, thanks! [1/1] clk: qcom: remove unused variables gpucc_parent_data,map_2 commit: 54ed70b57623e18f6c18f510cbe1e741bca89f34 Best regards,
diff --git a/drivers/clk/qcom/gpucc-sm6375.c b/drivers/clk/qcom/gpucc-sm6375.c index eb9ffa956950..d8f4c4b59f1b 100644 --- a/drivers/clk/qcom/gpucc-sm6375.c +++ b/drivers/clk/qcom/gpucc-sm6375.c @@ -136,18 +136,6 @@ static const struct clk_parent_data gpucc_parent_data_1[] = { { .index = DT_GCC_GPU_GPLL0_CLK_SRC }, }; -static const struct parent_map gpucc_parent_map_2[] = { - { P_BI_TCXO, 0 }, - { P_GCC_GPU_GPLL0_CLK_SRC, 5 }, - { P_GCC_GPU_GPLL0_DIV_CLK_SRC, 6 }, -}; - -static const struct clk_parent_data gpucc_parent_data_2[] = { - { .index = P_BI_TCXO }, - { .index = DT_GCC_GPU_GPLL0_CLK_SRC }, - { .index = DT_GCC_GPU_GPLL0_DIV_CLK_SRC }, -}; - static const struct freq_tbl ftbl_gpucc_gmu_clk_src[] = { F(200000000, P_GCC_GPU_GPLL0_DIV_CLK_SRC, 1.5, 0, 0), { }