Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2478242rwr; Sat, 6 May 2023 11:49:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ALFfdr2RVx6uZUPvNDuxkGpsmyC+y7i+aiaOe8Li0MbIUsbU+kDATta68fGtigMhlr/zZ X-Received: by 2002:a17:902:b08c:b0:1a1:ee8c:eef7 with SMTP id p12-20020a170902b08c00b001a1ee8ceef7mr5322252plr.48.1683398964628; Sat, 06 May 2023 11:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683398964; cv=none; d=google.com; s=arc-20160816; b=dLWGwNk6oYURfe3Tsje58iV16qbxafuJ0mS+lvHdoqfgfeflBAZ4Mmq3JCvcgChm8r 2Ysrlp6IHG5U7G6FJho/v+lAEYHmQF85aS7M4SXY4/BMKlViucxhIjLHQTaNQLarmQiw tpFZ47xG7sFsbdsKGYNPEp4ObSXU0tP9mairCuDhTySzwQJNKYJSI75NcJV3g43PL30q CdTVcXRZWp1g/YXRaqdJTCS2t5pTJBQ3nFIq/3vPjdG1YrqfVOhZHSY7Ev1DLXxaHVzS d4+vErVOSeY63u01aHlTXzohZcYzXFaiN9S4jHABfj6HmCB7QKWOFkh2E0WDWzydK1mK F07A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4SBcmE4rD15/gMfi5LKg9f+YQTWle4dgl7wJzcTulOI=; b=cxS+kBNhCEpyaYBQ8TyhYYiW2u5dswAL8aaxWBj7GW5s/9CouL8flqr7WeDx1Y7mpt renguoZ/WQw4rDLC2GsUI6umKXZm67rDg3hXjIhxg6/3o0OjOfJ5pb8LqJZPNQumWQKx gFs2ajLl77q5bRb+agAiBsMDdYzYZuza5j8DAYYvQRWsqTYYflLECAJqVamFlD2IEuEG C525O500/zmfaX2lZz3SfTwNkejcFucdJiihj+pZBPSthM1qbC9sSjCsWwz3e59z0dcW VvBr5BNtffc3DWGnQQAZUZ/vevFzqZVj6id6oYvqZq0k4sd8sAQrroA+3mt7z50aXKzJ bdkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MIfrrhm0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a170902684100b001ac61add6c0si635770pln.401.2023.05.06.11.49.08; Sat, 06 May 2023 11:49:24 -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=@intel.com header.s=Intel header.b=MIfrrhm0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbjEFSM3 (ORCPT + 99 others); Sat, 6 May 2023 14:12:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjEFSM1 (ORCPT ); Sat, 6 May 2023 14:12:27 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C0B811B74; Sat, 6 May 2023 11:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683396746; x=1714932746; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YngAekiyMFQcAH087yL/A1vfWTMr5bD0St58aYn+lAc=; b=MIfrrhm0go25i+vKnZvlkr2NS245FLl63Hq3o5CeLizef1m0X2hjmHEd ua+rCWGW0ryDtlDUxQhjcgTDDAnQJi0kLDEQJVBjAe7CPkxiR6CNYSbXY tOsnTRCPQQOccdhjPqc61JzF8JCtDxt2JF3ZoWRR+cHF0PUJoW7iCPuMK 9DWRMiWbQaCtC2TMy+cSNx7o8bqU2XvZsgNoOfSW8F/wicMAcb0j02Yy4 QZB1Zrckg0kndldjcz5lEYpavrsWj583TDSz7QdNnoQfAke+J7d98VXjt vp6h+rcMx1RsW5obtMTCaifetc4uOlX8g8UZnTLfqMvTcxmlQe3iSvHt0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="329030127" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="329030127" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2023 11:12:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="822147827" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="822147827" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 06 May 2023 11:12:22 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pvMOL-0000RF-1n; Sat, 06 May 2023 18:12:21 +0000 Date: Sun, 7 May 2023 02:12:12 +0800 From: kernel test robot To: Adam Ford , linux-clk@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, aford@beaconembedded.com, Adam Ford , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: imx: composite-8m: Add imx8m_divider_determine_rate Message-ID: <202305070235.r9bEq3U8-lkp@intel.com> References: <20230506162403.375212-1-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230506162403.375212-1-aford173@gmail.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Adam, kernel test robot noticed the following build warnings: [auto build test WARNING on clk/clk-next] [also build test WARNING on v6.3 next-20230505] [cannot apply to abelvesa/clk/imx linus/master] [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/Adam-Ford/clk-imx-composite-8m-Add-imx8m_divider_determine_rate/20230507-002453 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20230506162403.375212-1-aford173%40gmail.com patch subject: [PATCH] clk: imx: composite-8m: Add imx8m_divider_determine_rate config: powerpc-randconfig-r012-20230507 (https://download.01.org/0day-ci/archive/20230507/202305070235.r9bEq3U8-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/d92df3b38fc20beb735cb3b75f118b45d1ae304b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Adam-Ford/clk-imx-composite-8m-Add-imx8m_divider_determine_rate/20230507-002453 git checkout d92df3b38fc20beb735cb3b75f118b45d1ae304b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/clk/imx/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305070235.r9bEq3U8-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/clk/imx/clk-composite-8m.c:122:5: warning: no previous prototype for function 'imx8m_divider_determine_rate' [-Wmissing-prototypes] int imx8m_divider_determine_rate(struct clk_hw *hw, ^ drivers/clk/imx/clk-composite-8m.c:122:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int imx8m_divider_determine_rate(struct clk_hw *hw, ^ static 1 warning generated. vim +/imx8m_divider_determine_rate +122 drivers/clk/imx/clk-composite-8m.c 121 > 122 int imx8m_divider_determine_rate(struct clk_hw *hw, 123 struct clk_rate_request *req) 124 { 125 struct clk_divider *divider = to_clk_divider(hw); 126 int prediv_value; 127 int div_value; 128 129 /* if read only, just return current value */ 130 if (divider->flags & CLK_DIVIDER_READ_ONLY) { 131 u32 val; 132 133 val = readl(divider->reg); 134 prediv_value = val >> divider->shift; 135 prediv_value &= clk_div_mask(divider->width); 136 137 div_value = val >> PCG_DIV_SHIFT; 138 div_value &= clk_div_mask(PCG_DIV_WIDTH); 139 140 return divider_ro_determine_rate(hw, req, divider->table, 141 PCG_PREDIV_WIDTH + PCG_DIV_WIDTH, 142 divider->flags, prediv_value * div_value); 143 } 144 145 return divider_determine_rate(hw, req, divider->table, 146 PCG_PREDIV_WIDTH + PCG_DIV_WIDTH, 147 divider->flags); 148 } 149 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests