Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7457563rdb; Wed, 3 Jan 2024 17:41:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmVgPJIDpHs/cpmcb2BjuKlRtAo4ZOMcPHFezdTgcNd5tUQISd5zY/cpjs6iOogD93uLvL X-Received: by 2002:a05:6a21:33a4:b0:197:e7aa:5f81 with SMTP id yy36-20020a056a2133a400b00197e7aa5f81mr1398909pzb.83.1704332496317; Wed, 03 Jan 2024 17:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704332496; cv=none; d=google.com; s=arc-20160816; b=XYtwVQOb9i8mnba6x8ON2Y5cRFD4G3nAZ1oKg7Xb+uzgfC2HC4ntfwTlGfI4/vdBMW YgUhrVQiNANNCWWHq5p/PI5Tye2TD3ORuBhfx3PoqxIzRGlgRgJmERSWaCly0cZblgII qKGn+fVa5h9KFdWaiZ3xaAYyz+ZhnzQkEkqKjsbEHILqkCvH3x7PNkH1ejyHl0uoJIeL S1vlk4Xcprujo8pRBNMXapTqwxMRRFNmXQIrdw6na0pFnll4qFEAyp1EyrO43fH8UdDb Gy86rIOo4P3OhqQKjUDI4EE29Re/cP4XmYscP0s+iKglQSxpNz3lhsBdYCHVBhFkkODB lZdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1GVhqfQypeOpsca28+KKBeTqa5+vCTQBqIYkrZ2rPtI=; fh=fn5zwSF01xJJb2r3xNEYjS0gMhXxu1t/ZYi+HValv3w=; b=S4/mCuv6sHMfwzG7Ghrc7vEcKY+g7gLwopbXjC0lzUUz0W7hJLA3AepKYRA4EcadRP EuXxHudNpm56doPrq7CTXtgMZe3N2o4L/+g99NiH7NBuNRQCEHzmF+fn44JUPR7gsJZy 7cBVZVa7dQLUlI7YPgWDPehvPj979ALlvUB+4epdhodWyUAQR9rVHZWse2qfKpTIpJwU Qv1rfkouSfel9IX1p9zozydyfH5qJNB7MwC6lxwqR3HVjXMCdPbYgYsy+bVIhg4OqLu2 rKviEyIth1zqFidR4PNh42KcdmyA/2YpgYNuIf1ZNr3XisUypjU0IPb8Ux6NF7VseJMN xKDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EP02KyZj; spf=pass (google.com: domain of linux-kernel+bounces-16184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o12-20020a17090aac0c00b0028ce6523925si2106743pjq.76.2024.01.03.17.41.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 17:41:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EP02KyZj; spf=pass (google.com: domain of linux-kernel+bounces-16184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EFB60287FD3 for ; Thu, 4 Jan 2024 01:41:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17220185B; Thu, 4 Jan 2024 01:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EP02KyZj" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FE3E1849; Thu, 4 Jan 2024 01:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704332485; x=1735868485; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hCbBXEsRZ3+SWSMbVZ2tJ+JX+kyIEszozluquihN60Y=; b=EP02KyZj9SNNlgiLVAtdiF6EN4HpeiAVIsWJOaLeCGQx5H08YKByhrfz IW0t4gy/WeavlgQdwT3B/RlbW08Q8hZQaqHOqHpF89snxUcG1zSOs0NDj UYXw1zP5Hj8Bypbu/gzJu4z4R37NLd4xObtWBnSCaxUWYL3YAF+Q0LLCI xHVH35iZL5TVGeJKzQek6yw+zRtEYrI39h6Y80PnXeK6TVx4niPfw94vy 4I8lG73ARdaZMGkOjPRl6n4qfpVsrITBHp5XGN/G/svq8Gs2GDjQk3bhp n98AshPBHTgYRmiTMMHeBaiMNpzQPbvR0B3UrAm8ZaytPtmwILPY/r98l g==; X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="396825164" X-IronPort-AV: E=Sophos;i="6.04,329,1695711600"; d="scan'208";a="396825164" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 17:41:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="903619769" X-IronPort-AV: E=Sophos;i="6.04,329,1695711600"; d="scan'208";a="903619769" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 03 Jan 2024 17:41:14 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rLCjQ-000Mly-2B; Thu, 04 Jan 2024 01:41:12 +0000 Date: Thu, 4 Jan 2024 09:41:12 +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: 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: <202401040935.LLlZNxiu-lkp@intel.com> References: <20240103072017.1646007-1-naman.trivedimanojbhai@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240103072017.1646007-1-naman.trivedimanojbhai@amd.com> Hi Naman, kernel test robot noticed the following build warnings: [auto build test WARNING on clk/clk-next] [also build test WARNING 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-defconfig (https://download.01.org/0day-ci/archive/20240104/202401040935.LLlZNxiu-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240104/202401040935.LLlZNxiu-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/202401040935.LLlZNxiu-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/clk/zynqmp/clkc.c: In function 'zynqmp_get_parent_list': >> drivers/clk/zynqmp/clkc.c:565:50: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 565 | clk_name = __clk_get_name(clk_parent); | ^ drivers/clk/zynqmp/clkc.c:583:50: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 583 | clk_name = __clk_get_name(clk_parent); | ^ vim +/const +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