Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3297610pxk; Mon, 21 Sep 2020 10:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2ivasvsWlOnTKkhMYltoX+j53i/tfSVMj7Q6XkP1rI3pohrWvDzH6OnS3+8YZnuHbMWxU X-Received: by 2002:a05:6402:234a:: with SMTP id r10mr558777eda.363.1600707612900; Mon, 21 Sep 2020 10:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707612; cv=none; d=google.com; s=arc-20160816; b=fLs84UuFvmqIZgbDY0rl5WBcm9v4aIynQxq4ruwL3xr3IuIgBMK/iOATpPXumVwuyZ 2hT7WBBfYJRiOr7JBkwLAP1Nfkfhw2qy2Yw83YM9NGtI06zoVnuZPopMEBhZ4cdjLvyg HlRSKpVAsJkU/Y8QQ6mqhZr3S01+sMDIr7l67O7s0oNWqJg8NN1bydrYNgmkxdoJS9km JIMXErl/fQ5wPYzQcUzlHpcIMSHpEfygYPft1/2tfG/Ed5yzS7Y0Jcc85sw4lkEy3VMd 1/GUIlUVB3j3FSlJUIP+9ZDaYt326EHQGuNr5QbASCzvNotTuTA6bXXlWh85VqVBs9i1 2ktg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wKrDk8a2h3saQfZ95DaokW+VYoM63/0N43qEWFVE4ag=; b=ANrCT3vgUFrK6iFl3IWC+dUYwrnd9sEqHY6jlDBKfDYrMarHM5/bVRGCe8Z+OSr20t KWze0N22ERMma4uIqVlQjqB7xavmsFBOcozPKQJpLaR9wRFwS4ixOSxlP1WG4hLk90pN DT667EqGFCq9f2INU/a2nAs4RSLUrZCniQA0NHunRyscSgeOIy/M8uRAHcPPdDeWsAbI JKQ9v5JSc6edZ6uZjfr/Cjbvc8jn6k0qfaVtvEeIGvV+E023hHFLZj+8SEghuVjOqpy8 uPMnQjtCv0EDEP/gxyOdZ+in7XqxPgldkxytMqmCdUTpWxWc/YKFpKbrYyrqxzRB244g wtwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="iJNYIiW/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si10120989ejb.204.2020.09.21.09.59.49; Mon, 21 Sep 2020 10:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="iJNYIiW/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730283AbgIUQ6x (ORCPT + 99 others); Mon, 21 Sep 2020 12:58:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:45342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729453AbgIUQlk (ORCPT ); Mon, 21 Sep 2020 12:41:40 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 D7EC52076B; Mon, 21 Sep 2020 16:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706492; bh=aTHqhn0lUC0NXQGAZZOLZCbL2Oc38gXnDqkF637fn9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iJNYIiW/C3HfMU0jGVbrcOGi3Rtb9LLAXgiuD0nGeg/IYbIKgps+tWp9Bc0oo9Md5 uZHiHMt7BfrVPfL+b+6qlIoFl+GB3agATXoCuxuMi4opfqL8eCgA97+ITPN5NG7Nf3 zaioP7mFGI9TWxlau7hlq2+ixIPFKfoDRKFeBboE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Stephen Boyd , Sasha Levin Subject: [PATCH 4.19 27/49] clk: rockchip: Fix initialization of mux_pll_src_4plls_p Date: Mon, 21 Sep 2020 18:28:11 +0200 Message-Id: <20200921162035.859265191@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162034.660953761@linuxfoundation.org> References: <20200921162034.660953761@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Nathan Chancellor [ Upstream commit e9c006bc782c488f485ffe50de20b44e1e3daa18 ] A new warning in Clang points out that the initialization of mux_pll_src_4plls_p appears incorrect: ../drivers/clk/rockchip/clk-rk3228.c:140:58: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenation] PNAME(mux_pll_src_4plls_p) = { "cpll", "gpll", "hdmiphy" "usb480m" }; ^ , ../drivers/clk/rockchip/clk-rk3228.c:140:48: note: place parentheses around the string literal to silence warning PNAME(mux_pll_src_4plls_p) = { "cpll", "gpll", "hdmiphy" "usb480m" }; ^ 1 warning generated. Given the name of the variable and the same variable name in rv1108, it seems that this should have been four distinct elements. Fix it up by adding the comma as suggested. Fixes: 307a2e9ac524 ("clk: rockchip: add clock controller for rk3228") Link: https://github.com/ClangBuiltLinux/linux/issues/1123 Signed-off-by: Nathan Chancellor Link: https://lore.kernel.org/r/20200810044020.2063350-1-natechancellor@gmail.com Reviewed-by: Heiko Stübner Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/rockchip/clk-rk3228.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk/rockchip/clk-rk3228.c index 04f4f3739e3be..8d11d76e1db7c 100644 --- a/drivers/clk/rockchip/clk-rk3228.c +++ b/drivers/clk/rockchip/clk-rk3228.c @@ -144,7 +144,7 @@ PNAME(mux_usb480m_p) = { "usb480m_phy", "xin24m" }; PNAME(mux_hdmiphy_p) = { "hdmiphy_phy", "xin24m" }; PNAME(mux_aclk_cpu_src_p) = { "cpll_aclk_cpu", "gpll_aclk_cpu", "hdmiphy_aclk_cpu" }; -PNAME(mux_pll_src_4plls_p) = { "cpll", "gpll", "hdmiphy" "usb480m" }; +PNAME(mux_pll_src_4plls_p) = { "cpll", "gpll", "hdmiphy", "usb480m" }; PNAME(mux_pll_src_3plls_p) = { "cpll", "gpll", "hdmiphy" }; PNAME(mux_pll_src_2plls_p) = { "cpll", "gpll" }; PNAME(mux_sclk_hdmi_cec_p) = { "cpll", "gpll", "xin24m" }; -- 2.25.1