Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp482367ybl; Tue, 28 Jan 2020 06:38:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwAI11SKSg1/1e84NbL7eDeJ0ufeLfnTPEmyEjE6tpsRwQ5u61nsw9+v/OCFeAylI8RGbXw X-Received: by 2002:aca:4306:: with SMTP id q6mr3086841oia.54.1580222334659; Tue, 28 Jan 2020 06:38:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222334; cv=none; d=google.com; s=arc-20160816; b=SAVPrtMeLErBLJDOxHCJ4ut7CKq/YFNAnWS42MuY4YD80UD9sGbLtYHMVKoOg4YMox xwtXZ+2t5ZICdi6r5n9sVjMzBwgmDuafnEjSuoRV1vg8eHlQMOPQBgUoWbu4jaStgnfe gShvV8MTlufGWCqO/OIu3RTJp34xA5CUB8YeubroC+kpCacj5NOf6V7tRhEytUYijI5j VQm6nQFQYwvhheiAFaszG2r4Uwu4o98wyl6Pu0FTAn3hu1S+VlWPGPr6hnSuDfBQRm5N h+2vaNRRdROabXXsgptpi+KFSTMalHHxvPSoJ3VHg11HWaTC4a6R79ENGscsdIqmzMJi HjhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pQWJxx+t6GJcbQk9GlbqrDrttvexp+guDZumQ2khXcc=; b=HyeQTr+jJax0U1iXFx+FX58Cb1B8bxhmclKU+Q6q+7owFnqQr0qpn1Hy6nb0VME3Hl 7zYpRHE4615pF9aLbc6jYHWanMMEHCDyEpe8dRXwrimmXV1OKR06UK4B4Vy3N5LG7i6W JY0xKrtlYqikZ9tC15dYfNcIXViM4t0VWOw1F6NaQU91UPKVjdHHZye2Yy75F2GQGFLI 29QVzArgMR7Mv+H44dTtny9vb46+BDxnqaqmEY4pfhUm7O0n7botllfzoutyh/cdp7pM XW7fux7EdKiRK9nOAe9rcUPib5TZ+wl+bH3qHeW7yhtCJSVESqKztSQvvC2DykwUWLA7 Glcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ro9Lt6n8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si8767470otk.185.2020.01.28.06.38.42; Tue, 28 Jan 2020 06:38:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ro9Lt6n8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731081AbgA1OVX (ORCPT + 99 others); Tue, 28 Jan 2020 09:21:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:46656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731263AbgA1OVV (ORCPT ); Tue, 28 Jan 2020 09:21:21 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B37C24688; Tue, 28 Jan 2020 14:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221281; bh=OTeWlAW6PZtaqRBtsNH6XkHqXJ96und1zA/mIcCi+T4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ro9Lt6n8gDJVCPkNaIGhN2y1TGVCXQ57JVcy5gu67zYCXYDEYqr+lrmbJoC69ZQEZ YBQ2I6o+wslnB8mdOow6bYIP9sqX/HosZY9YGueEncsOvsVdhJmmk/15j9sq73Nw7H 8vUsZb0B18ywKp332RBgDYFTpofKRdonbLjDY4vw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor , Nathan Huckleberry , Stephen Boyd , Sasha Levin Subject: [PATCH 4.9 162/271] clk: qcom: Fix -Wunused-const-variable Date: Tue, 28 Jan 2020 15:05:11 +0100 Message-Id: <20200128135904.640096317@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Huckleberry [ Upstream commit da642427bd7710ec4f4140f693f59aa8521a358c ] Clang produces the following warning drivers/clk/qcom/gcc-msm8996.c:133:32: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map' [-Wunused-const-variable] static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map[] = { ^drivers/clk/qcom/gcc-msm8996.c:141:27: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div' [-Wunused-const-variable] static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div[] = { ^ drivers/clk/qcom/gcc-msm8996.c:187:32: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map' [-Wunused-const-variable] static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map[] = { ^ drivers/clk/qcom/gcc-msm8996.c:197:27: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div' [-Wunused-const-variable] static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div[] = { It looks like these were never used. Fixes: b1e010c0730a ("clk: qcom: Add MSM8996 Global Clock Control (GCC) driver") Cc: clang-built-linux@googlegroups.com Link: https://github.com/ClangBuiltLinux/linux/issues/518 Suggested-by: Nathan Chancellor Signed-off-by: Nathan Huckleberry Reviewed-by: Nathan Chancellor Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-msm8996.c | 36 ---------------------------------- 1 file changed, 36 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c index fe03e6fbc7df5..ea6c227331fcf 100644 --- a/drivers/clk/qcom/gcc-msm8996.c +++ b/drivers/clk/qcom/gcc-msm8996.c @@ -140,22 +140,6 @@ static const char * const gcc_xo_gpll0_gpll4_gpll0_early_div[] = { "gpll0_early_div" }; -static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map[] = { - { P_XO, 0 }, - { P_GPLL0, 1 }, - { P_GPLL2, 2 }, - { P_GPLL3, 3 }, - { P_GPLL0_EARLY_DIV, 6 } -}; - -static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div[] = { - "xo", - "gpll0", - "gpll2", - "gpll3", - "gpll0_early_div" -}; - static const struct parent_map gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div_map[] = { { P_XO, 0 }, { P_GPLL0, 1 }, @@ -194,26 +178,6 @@ static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early "gpll0_early_div" }; -static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map[] = { - { P_XO, 0 }, - { P_GPLL0, 1 }, - { P_GPLL2, 2 }, - { P_GPLL3, 3 }, - { P_GPLL1, 4 }, - { P_GPLL4, 5 }, - { P_GPLL0_EARLY_DIV, 6 } -}; - -static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div[] = { - "xo", - "gpll0", - "gpll2", - "gpll3", - "gpll1", - "gpll4", - "gpll0_early_div" -}; - static struct clk_fixed_factor xo = { .mult = 1, .div = 1, -- 2.20.1