Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5621450iog; Thu, 23 Jun 2022 01:47:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uvnqal2WgtiAyiYcEbE4Cnvazwp3CThNaoL/opoqC/RD4C3sEMvPRmnlpr8YRGEX8ZnTIl X-Received: by 2002:a17:907:9715:b0:726:2a3b:9f84 with SMTP id jg21-20020a170907971500b007262a3b9f84mr516745ejc.414.1655974022610; Thu, 23 Jun 2022 01:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655974022; cv=none; d=google.com; s=arc-20160816; b=w2a/CSJW2B6Ap4GMhQ+UEPnnuLLyuYUfsi/0TGPhV3WXK18wVTUuh9IrnugYvH2k3c idTaYL+yypTLiiyPvyqh0XP2zsolSAf7mVf5C1SA4hLkLZC9oF2qhT7/h72xW17bjJA+ N0CqfkFpToYCoc2dX7Ywlt/SSTWkQo92gz9I3Nf86gGLWGnCV7VIrJNFp/9L+VqjtS8e TFNR37zUoD9GkM1YjKP50BHWGwCZ8EJDNNR38ntIDQzN1K1+xhmWGEMn4TlI0udN5WYZ XISyqg0NY22ubAMX2BaiyFhoyO4oZo50LdmPF9rkMSACqo9Rt3LYdDjmjTMdGqNJOFZU q4OQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=YhxK8ZZPI3lUmCLii+65rd4UgUV1fnm192cvOMrF6jY=; b=vhFVSOheJOkSsjtzDuYVuJdSyN63+8KSYxCcUY5Qn/gmR0tXF1JM+WRYBeAPU7IAPy NvcCtM6srkU/xnRsmVGsly7rFuGBCDoej/3PSOlv+zllq9tJi6c7uu/3P2qYkzRoDlS+ FEKd3iSMyBEBxbPVecnRmP/QBZHaceGJFIJLt8xcuHDHMNW4MkCIXfk2UWcIouGqi4Lg ChcZdY6WMHVc07MpYJ06fxNfAi+vR6BJNeGMeUmYT8F+ZMpE2X8mQJZ1YXjpkCjZ4Oq8 6ZqLWzkKD8qxajxy4AmToSrLlW/y4rEi3aUb2lYwvvC77DHGYOI+szi17h7KujBqS6fM 53Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="cSLQD/HW"; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a056402255300b0042bd2c39f07si23343880edb.596.2022.06.23.01.46.38; Thu, 23 Jun 2022 01:47:02 -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=@suse.cz header.s=susede2_rsa header.b="cSLQD/HW"; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbiFWIcd (ORCPT + 99 others); Thu, 23 Jun 2022 04:32:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbiFWIc1 (ORCPT ); Thu, 23 Jun 2022 04:32:27 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B81548E4C; Thu, 23 Jun 2022 01:32:23 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id CB3AF21CEF; Thu, 23 Jun 2022 08:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655973141; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YhxK8ZZPI3lUmCLii+65rd4UgUV1fnm192cvOMrF6jY=; b=cSLQD/HW8YWib0EtDF6YMhVwjZqBHB1wXhqVj8oTrsAeRwlbEkB695BH54J5l9iI8bE9ZZ kQIjySKbdNyswhTWYCpa7RbTf8ty+MBBzFFi7CxTcwTcz8ZC2YsT9clsQbMa8OqC6pwuHo pJJwUlT4GyHdivZUZxMM8BpSMglX+Mk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655973141; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YhxK8ZZPI3lUmCLii+65rd4UgUV1fnm192cvOMrF6jY=; b=s6UwSurfXFe9u0KCb0T1ed3urucBA8q2fdMS61gbXg3x/jy9iqMp+DxXle8rghennq6GGy HzGe22e28xNhZFDg== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id BBDA12C143; Thu, 23 Jun 2022 08:32:15 +0000 (UTC) From: Jiri Slaby To: mturquette@baylibre.com Cc: mliska@suse.cz, linux-kernel@vger.kernel.org, Andi Kleen , Geert Uytterhoeven , Stephen Boyd , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, Jiri Slaby Subject: [PATCH 2/2] clk: renesas: rcar-gen4: Fix initconst confusion for cpg_pll_config Date: Thu, 23 Jun 2022 10:32:17 +0200 Message-Id: <20220623083217.26433-2-jslaby@suse.cz> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623083217.26433-1-jslaby@suse.cz> References: <20220623083217.26433-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen A variable pointing to const isn't const itself. It'd have to contain "const" keyword after "*" too. Therefore, cpg_pll_config cannot be put to "rodata". Hence use __initdata instead of __initconst to fix this. [js] more explanatory commit message. Cc: Geert Uytterhoeven Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-renesas-soc@vger.kernel.org Cc: linux-clk@vger.kernel.org Signed-off-by: Andi Kleen Signed-off-by: Jiri Slaby --- drivers/clk/renesas/rcar-gen4-cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/renesas/rcar-gen4-cpg.c b/drivers/clk/renesas/rcar-gen4-cpg.c index c7ed43d6aa67..e27832e5114f 100644 --- a/drivers/clk/renesas/rcar-gen4-cpg.c +++ b/drivers/clk/renesas/rcar-gen4-cpg.c @@ -23,7 +23,7 @@ #include "rcar-gen4-cpg.h" #include "rcar-cpg-lib.h" -static const struct rcar_gen4_cpg_pll_config *cpg_pll_config __initconst; +static const struct rcar_gen4_cpg_pll_config *cpg_pll_config __initdata; static unsigned int cpg_clk_extalr __initdata; static u32 cpg_mode __initdata; -- 2.36.1