From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11AC2C3DA6E for ; Wed, 3 Jan 2024 22:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jUtPdv1pUZph3sn4+xh1UDixZ/PWeAs/Y9BlqdFiqHU=; b=MLz//xU3S2eyyx +cPA9GVStk046tU2uqqFeWn560MCC8hqw/ly2TYBHSyHNQ/ItqEwJ44IwlF3l3JNsP2JbZRicre56 eqRVbJEiJHuDwtJChJQ4eKzHIX8sOUgKTTqTQikWuNYOrWJXzQhkUVJbv7seiYMLqq7gg0I48qhiI DgKi+ixw+feYOtrfdKEGblR2Lpe2wpwjT/BcjS6+NUbOzMu0DGCwf0ATORE3Go7fFHEUMJxtobvjo +WtSD03X3rNx+NWTd16zP93+h1unhteZN+a9iXOukBfAnOShxOkvD7WpDp/ungAPMpWBul+6bqreb 1j8IUXKWOdd0nrCOqWLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rL9ji-00CI3J-1L; Wed, 03 Jan 2024 22:29:18 +0000 Received: from mgamail.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rL9jf-00CI1i-0M for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2024 22:29:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704320955; x=1735856955; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UWtB1gRQtwdmcRcaSKiXS/7N9+STofOIO3C3Hp7vBzc=; b=Uy0EVKoeiMWTMlLViBw5KcnaXb2bTgEzEOVnDAZ1ulpckzfKuroqz4Id 35bhGlv3djoq6yB7wGqaLhOIrTHDOBep83s1BlsMSCZTmlegPFmNw00O2 NFrlfsP+xzZ/BgkX+CgJou9zHgKOqo809gAkI/ej5/tzXMt4ht3Bg2KRD 1FwRXfUIEHTg9Dpbz4qfaFrMOisx4X5ffJJPz4xZZh3VWFPfSlE133vRp W9zOhhh7JTFlqYUBcDSupR1YxoJvUlvGv4e3taNnNLrBb5KGxX5Grwlrw HWqtcuwi9AmxnrhyozWV40kVYnMdva8AwLKRwmjTAmnAL+JFokI72FErj A==; X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="387541625" X-IronPort-AV: E=Sophos;i="6.04,328,1695711600"; d="scan'208";a="387541625" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 14:29:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="903580244" X-IronPort-AV: E=Sophos;i="6.04,328,1695711600"; d="scan'208";a="903580244" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 03 Jan 2024 14:29:00 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rL9jO-000Mci-1H; Wed, 03 Jan 2024 22:28:58 +0000 Date: Thu, 4 Jan 2024 06:28:40 +0800 From: kernel test robot To: Naman Trivedi Manojbhai , mturquette@baylibre.com, sboyd@kernel.org, michal.simek@amd.com, abel.vesa@linaro.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, angelogioacchino.delregno@collabora.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Naman Trivedi Manojbhai Subject: Re: [PATCH] drivers: clk: zynqmp: remove clock name dependency Message-ID: <202401040635.RiqRRo7w-lkp@intel.com> References: <20240103072017.1646007-1-naman.trivedimanojbhai@amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240103072017.1646007-1-naman.trivedimanojbhai@amd.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240103_142915_224838_92ACA6F4 X-CRM114-Status: GOOD ( 15.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Naman, kernel test robot noticed the following build errors: [auto build test ERROR on clk/clk-next] [also build test ERROR on linus/master v6.7-rc8 next-20240103] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Naman-Trivedi-Manojbhai/drivers-clk-zynqmp-remove-clock-name-dependency/20240103-152152 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20240103072017.1646007-1-naman.trivedimanojbhai%40amd.com patch subject: [PATCH] drivers: clk: zynqmp: remove clock name dependency config: arm64-randconfig-004-20240103 (https://download.01.org/0day-ci/archive/20240104/202401040635.RiqRRo7w-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240104/202401040635.RiqRRo7w-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401040635.RiqRRo7w-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/clk/zynqmp/clkc.c:565:15: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] clk_name = __clk_get_name(clk_parent); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/zynqmp/clkc.c:583:15: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] clk_name = __clk_get_name(clk_parent); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. vim +565 drivers/clk/zynqmp/clkc.c 535 536 /** 537 * zynqmp_get_parent_list() - Create list of parents name 538 * @np: Device node 539 * @clk_id: Clock index 540 * @parent_list: List of parent's name 541 * @num_parents: Total number of parents 542 * 543 * Return: 0 on success else error+reason 544 */ 545 static int zynqmp_get_parent_list(struct device_node *np, u32 clk_id, 546 const char **parent_list, u32 *num_parents) 547 { 548 int i = 0, ret; 549 u32 total_parents = clock[clk_id].num_parents; 550 struct clock_topology *clk_nodes; 551 struct clock_parent *parents; 552 struct clk *clk_parent; 553 char *clk_name; 554 555 clk_nodes = clock[clk_id].node; 556 parents = clock[clk_id].parent; 557 558 for (i = 0; i < total_parents; i++) { 559 if (!parents[i].flag) { 560 ret = of_property_match_string(np, "clock-names", 561 parents[i].name); 562 if (ret >= 0) { 563 clk_parent = of_clk_get(np, ret); 564 if (clk_parent) { > 565 clk_name = __clk_get_name(clk_parent); 566 if (clk_name) 567 strcpy(parents[i].name, clk_name); 568 else 569 return 1; 570 } else { 571 return 1; 572 } 573 } 574 parent_list[i] = parents[i].name; 575 } else if (parents[i].flag == PARENT_CLK_EXTERNAL) { 576 ret = of_property_match_string(np, "clock-names", 577 parents[i].name); 578 if (ret < 0) { 579 strcpy(parents[i].name, "dummy_name"); 580 } else { 581 clk_parent = of_clk_get(np, ret); 582 if (clk_parent) { 583 clk_name = __clk_get_name(clk_parent); 584 if (clk_name) 585 strcpy(parents[i].name, clk_name); 586 else 587 return 1; 588 } else { 589 return 1; 590 } 591 } 592 parent_list[i] = parents[i].name; 593 } else { 594 strcat(parents[i].name, 595 clk_type_postfix[clk_nodes[parents[i].flag - 1]. 596 type]); 597 parent_list[i] = parents[i].name; 598 } 599 } 600 601 *num_parents = total_parents; 602 return 0; 603 } 604 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel