Message ID | 20230130135555.3268172-1-arnd@kernel.org |
---|---|
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 s9csp2190562wrn; Mon, 30 Jan 2023 05:57:32 -0800 (PST) X-Google-Smtp-Source: AK7set8ofbJIEoENZmr5HnjhDB7Z8cfGT9JMyUJRUMKYgaBDbW0u1GBRjFcjlNBjJLmfs/7L5kya X-Received: by 2002:a50:d5c9:0:b0:4a2:472a:abbf with SMTP id g9-20020a50d5c9000000b004a2472aabbfmr3589835edj.38.1675087052686; Mon, 30 Jan 2023 05:57:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675087052; cv=none; d=google.com; s=arc-20160816; b=SS0iV7cAqQv4u2wxH2yNZOGU5sPY4FQZeWoBMhf6Cfy+bMyzk5bA+PXY/w2yYmaChY HauRiDr7VFGC+a01f7e0x/AxVRwuaApZ8yuuw/wKFD//j9Y/UJkLg6d5zxSjFwyhjjlx W8c4UjOEbUWto7cEHIZbbaMOLMLlixhI04HzwA46SwdMq6hOBS2lu3NlM8jW+UUJ8JnR +cVeR0UXgN4lOdEf5pWaQvSfvhrXelL0Vlu341J1qepdEJl4ebuDegBLDxFCqZmqCsDA VZRS9k2Cz4KCXRLo+IceEB7+/OaLSwDohFaxaxWKgB695TXQGZOFi9mdSh0okp0wTe/A Ap8g== 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=L20b2xmc+K1kYap1tbvO9PsCOIfNrBIGZDSYtD8iL24=; b=s+9cEJvmXIA5ER2SRM6YXy0ZtTqaI8V7br8Z1sdn6vhJqwoMMuhK71CkuT6UC1bqN2 +F9KPNO18GboGxIEZ0VRhG+eueGt1hChqZUH5RjE3UGJ0cxV+VtYQKwcp12zaMAD8l1v J/qKbDNTcJIoYVfrJewdV1Gy0tbYvj8geJbhplXxZXFNxdNlnx4UVgfQaoyG3bH/ZQoE yotGIMcWYuPPMsfBuJId3FMk9qthnzF0sGkoay3GIgSRZ1wYDpLeQiWcgsEAaItZoBft 9RCFGrXnQfcrcnHStaODU6hxcsVji9CfysMOB77MZWA6oymCRDqQM3/3kSDk3mZNCuON PRaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MEFZHE/+"; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020aa7d482000000b0049db071cacasi14460470edr.349.2023.01.30.05.57.09; Mon, 30 Jan 2023 05:57:32 -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=@kernel.org header.s=k20201202 header.b="MEFZHE/+"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230426AbjA3N4C (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Mon, 30 Jan 2023 08:56:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236520AbjA3N4A (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jan 2023 08:56:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7AD2687E; Mon, 30 Jan 2023 05:55:59 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5DDCF6101C; Mon, 30 Jan 2023 13:55:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8874CC4339C; Mon, 30 Jan 2023 13:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675086958; bh=y9yaGsBJyJnk9oOg0t489VBVoCspVBbyGiGa10xF4ZU=; h=From:To:Cc:Subject:Date:From; b=MEFZHE/+zj2CX02jrHkKpx3xI1YHnoZr4JZvoAtDMyDoAkGgKQO4y6B3EWs0Zitv8 +uKiEZWC6eA8IvK2ikXYV5otfCB81UBXNDhm9UPLyIv1olC+8GVDcSxwkSzTVKMuM1 rne9EotNzLGaRG1XhoYu46ZcU76iLqJQcqWp35bOnNpEFHUof9+fe5fGoQbA70wF0I fAPPaM/xnKJd0zAEwACeAJhYWE9VUfLC/sip+2NVBXMuqgwzqTAZDvJ6U6rGm4K6HQ gVoLILg19QdJu9BN9asKE7SdJuix967deniquLrBS2U4EkcwrWiyNoNfviprFZxwS2 CG+6xdR5vM5yw== From: Arnd Bergmann <arnd@kernel.org> To: Bjorn Andersson <andersson@kernel.org>, Andy Gross <agross@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Konrad Dybcio <konrad.dybcio@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de>, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: qcom: gcc-qcs404: fix duplicate initializer warning Date: Mon, 30 Jan 2023 14:55:47 +0100 Message-Id: <20230130135555.3268172-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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?1756456081408595358?= X-GMAIL-MSGID: =?utf-8?q?1756456081408595358?= |
Series |
clk: qcom: gcc-qcs404: fix duplicate initializer warning
|
|
Commit Message
Arnd Bergmann
Jan. 30, 2023, 1:55 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> In one of the clocks, a redundant initialization for .num_parents got left behind by a recent patch: drivers/clk/qcom/gcc-qcs404.c:63:32: error: initialized field overwritten [-Werror=override-init] 63 | .num_parents = 1, | ^ Fixes: 2ce81afa0c7c ("clk: qcom: gcc-qcs404: sort out the cxo clock") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/clk/qcom/gcc-qcs404.c | 1 - 1 file changed, 1 deletion(-)
Comments
On 30.01.2023 14:55, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > In one of the clocks, a redundant initialization for .num_parents > got left behind by a recent patch: > > drivers/clk/qcom/gcc-qcs404.c:63:32: error: initialized field overwritten [-Werror=override-init] > 63 | .num_parents = 1, > | ^ > > Fixes: 2ce81afa0c7c ("clk: qcom: gcc-qcs404: sort out the cxo clock") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > drivers/clk/qcom/gcc-qcs404.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c > index 5f58dd82d3fe..a39c4990b29d 100644 > --- a/drivers/clk/qcom/gcc-qcs404.c > +++ b/drivers/clk/qcom/gcc-qcs404.c > @@ -60,7 +60,6 @@ static struct clk_fixed_factor cxo = { > .name = "cxo", > .parent_data = gcc_parent_data_1, > .num_parents = ARRAY_SIZE(gcc_parent_data_1), > - .num_parents = 1, > .ops = &clk_fixed_factor_ops, > }, > };
Quoting Arnd Bergmann (2023-01-30 05:55:47) > From: Arnd Bergmann <arnd@arndb.de> > > In one of the clocks, a redundant initialization for .num_parents > got left behind by a recent patch: > > drivers/clk/qcom/gcc-qcs404.c:63:32: error: initialized field overwritten [-Werror=override-init] > 63 | .num_parents = 1, > | ^ > > Fixes: 2ce81afa0c7c ("clk: qcom: gcc-qcs404: sort out the cxo clock") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- This is https://lore.kernel.org/r/20230123201812.1230039-2-krzysztof.kozlowski@linaro.org
On Mon, 30 Jan 2023 14:55:47 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > In one of the clocks, a redundant initialization for .num_parents > got left behind by a recent patch: > > drivers/clk/qcom/gcc-qcs404.c:63:32: error: initialized field overwritten [-Werror=override-init] > 63 | .num_parents = 1, > | ^ > > [...] Applied, thanks! [1/1] clk: qcom: gcc-qcs404: fix duplicate initializer warning commit: d4cb3e7113f82f7378527890aa7b4006234665fe Best regards,
diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index 5f58dd82d3fe..a39c4990b29d 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -60,7 +60,6 @@ static struct clk_fixed_factor cxo = { .name = "cxo", .parent_data = gcc_parent_data_1, .num_parents = ARRAY_SIZE(gcc_parent_data_1), - .num_parents = 1, .ops = &clk_fixed_factor_ops, }, };