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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7ECACC61DA4 for ; Wed, 15 Mar 2023 15:58:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232783AbjCOP6d (ORCPT ); Wed, 15 Mar 2023 11:58:33 -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 ); 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 ; 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 ; 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-Google-Smtp-Source: AK7set/MjGuH4d1AxU+OLSdm6oom5h3vCnE3goYeC+g5OzZF63DemuqYGQ2rvDXJ3heg1B3xbb48ZA== 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 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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), { } -- 2.27.0