Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2733351iog; Mon, 27 Jun 2022 01:32:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdGzYmeXaFambqQN9+FsXl1mpniuZ6NK+LoHZ/p6wMZlMwnlfTD1KKOsiESsc0UhxFp4/g X-Received: by 2002:a63:6c81:0:b0:3fd:4be3:8ee9 with SMTP id h123-20020a636c81000000b003fd4be38ee9mr11404831pgc.188.1656318756725; Mon, 27 Jun 2022 01:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656318756; cv=none; d=google.com; s=arc-20160816; b=jHEX6g9ZO+1sfAQuc4Zr6LYi1UG/+6uyl4oohvfaSNKq5AkwsImaUUKtXD97EMhyiP 6IHWaLiYNI9cyiB1Bgq4Xpopi3MPLU4gC9tXSv4qGo+xChigTOZ/7Nbl4taqjVY8Znfb o7a04/bOe+fp4ocsDANSZgZrdMu/5PgTRV+zpQFsKIl+cVO26PnBsUie4cadGxMmG89C Xvr3+YqrXDZ9n2Izf477FztoMCCgQGWcuZH2LAkBeNenUfMXzi4FTv1tUOQRRZrlV3mP kBynKe4CdgFNdPH57vgcFLUzEneuogTXgrPdYQrD2lvetR1byK+4HlnzxozP0lhGgBYg YThw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=3Wdlvn9sWciNbkMAfVF+Ot+ku+tBgw7fKynxQLGq3pE=; b=c2CTj9AxefEf/zTP2ZCkiCReP265n5TQR2x/VNnshkA3cKBJ5+orYLi4Mc6KE7JBKM vKm4/8c2QUzP4lowfL4zpYnBF97J7mFSx9HAL2OXiNvDjZ4rCRZ7fggphTtiCj8jyIQW 2XRTFZxUgs3SUFKiH3lN2l8CMGVCGXcpxQxtpsXGLtgFw7Sp2fkJ/WI7fZ5ccRmNtFs+ s1eQef6j6+/sCpqHaTDNuM4R25fnjcu/mAhutWETZY42LhKI/1U8kJkqskuJQh8VPoiZ 6Lj4D2qLslMwFzYwJt0lUE/sM7gzNcanE7DJ1Zgqo8noV42eUpkyuvMcRj5ai+7XJwZk o60A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Cq44lemI; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="G9RfW/D5"; 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 p10-20020a170902780a00b00168b5f745bcsi12993911pll.503.2022.06.27.01.32.25; Mon, 27 Jun 2022 01:32:36 -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=Cq44lemI; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="G9RfW/D5"; 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 S233129AbiF0HqV (ORCPT + 99 others); Mon, 27 Jun 2022 03:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233125AbiF0HqS (ORCPT ); Mon, 27 Jun 2022 03:46:18 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4149860ED; Mon, 27 Jun 2022 00:46:17 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B82601F9FB; Mon, 27 Jun 2022 07:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1656315975; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3Wdlvn9sWciNbkMAfVF+Ot+ku+tBgw7fKynxQLGq3pE=; b=Cq44lemIAuPusIQCMbihA5ru9uASaxqbg5Yty7Vo2Dz/MJp+wBXc9M0P1JG8FEalaO+D+L FN7f7kESMjoOorE8RfU/5h8NAU8pFoiv7PPbgVJfVVeAUQ3LKjE4qEv2jc5UdZV3xsI2sh OaArb2LHXD7hKtA7esCUNqgRfTg7vTU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1656315975; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3Wdlvn9sWciNbkMAfVF+Ot+ku+tBgw7fKynxQLGq3pE=; b=G9RfW/D5cD2/Ga1NucU0E7s0cAxwrNN2s2t+4a2qWnAhI6p4M1qfY7UR2fy43LgCx4zR5j 5vjHoSw841KWzXBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 94F6913456; Mon, 27 Jun 2022 07:46:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id m9NuI0dguWLjegAAMHmgww (envelope-from ); Mon, 27 Jun 2022 07:46:15 +0000 Message-ID: <0edab0e2-5355-a3da-445d-b6f45e3082ed@suse.cz> Date: Mon, 27 Jun 2022 09:46:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 1/2] clk: pistachio: Fix initconst confusion Content-Language: en-US To: Stephen Boyd , mturquette@baylibre.com Cc: mliska@suse.cz, linux-kernel@vger.kernel.org, Andi Kleen , linux-clk@vger.kernel.org References: <20220623083217.26433-1-jslaby@suse.cz> <20220624004225.0DE4AC3411D@smtp.kernel.org> From: Jiri Slaby In-Reply-To: <20220624004225.0DE4AC3411D@smtp.kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 24. 06. 22, 2:42, Stephen Boyd wrote: > Quoting Jiri Slaby (2022-06-23 01:32:16) >> From: Andi Kleen >> >> A variable pointing to const isn't const itself. It'd have to contain >> "const" keyword after "*" too. Therefore, PNAME() cannot put the strings >> to "rodata". Hence use __initdata instead of __initconst to fix this. >> >> [js] more explanatory commit message. >> >> Cc: Michael Turquette >> Cc: Stephen Boyd >> Cc: linux-clk@vger.kernel.org >> Signed-off-by: Andi Kleen >> Signed-off-by: Jiri Slaby >> --- >> drivers/clk/pistachio/clk.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/clk/pistachio/clk.h b/drivers/clk/pistachio/clk.h >> index f9c31e3a0e47..742e5fab00c0 100644 >> --- a/drivers/clk/pistachio/clk.h >> +++ b/drivers/clk/pistachio/clk.h >> @@ -34,7 +34,7 @@ struct pistachio_mux { >> const char **parents; >> }; >> >> -#define PNAME(x) static const char *x[] __initconst >> +#define PNAME(x) static const char *x[] __initdata > > Can it be const char * const and left as __initconst? Let me check, IIRC the struct where this is assigned would need to be updated too. I will get into it only some time next week. thanks, -- js suse labs