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 12576C43334 for ; Sun, 19 Jun 2022 19:02:46 +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:MIME-Version: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:In-Reply-To:References: List-Owner; bh=ytEJYkFmcjGZxTdUSp73VEyxWJnzgNXJ8JlIvS178Bo=; b=H/0bkNEnxYSrfh eyIi/F+xPRUc6gLWe+ftO+Gw74B70tVyGThAYipFzNLJRJr3hT0hHywANAx0J5a4GGayhjkAncBcg LpnJIulh8RlerpWyDhfJsxIahLkjOTAyOkQoCIMuPav2swq1lNpCUp7lMLlBOYfqTbgieDQbhJmbK pUZ3X4njAe/SF7BOiB3jQpGTSPJcwgiYLJb4NGdIt4Rp3OEit9Zj5qfJvJX7cIXszpCDT3FotyqzQ zTFA+t+BDrKv8CJ5jGTiqumU3j+LehNFsW7uOJYtc6IhniAZ6A74PPPs/LHCKpzk78iBDLpHC7JC3 OOYDZCJ/+O3OzUSRKQMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o30Ae-00Ezjf-Nk; Sun, 19 Jun 2022 19:01:16 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o30Ab-00EziJ-KR for linux-arm-kernel@lists.infradead.org; Sun, 19 Jun 2022 19:01:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655665273; x=1687201273; h=date:from:to:cc:subject:message-id:mime-version; bh=y2JGGr+2MqaWyy81fnyZ1AdZXvQ0dCtMdzPtySPUDlo=; b=kBtvoVVKbNe1oy2y2QZVN2eYjAh0KsWCgAouNb9+km6hnTjFlQq4s+QN 7Ql3oIdBQjCMRzD8eWJ4z7KpYJzSp6qtFD/M8Q9/0yEKtjZETqrXBU9PY E/gL+ow9waubuwun1ZCLs8/J312FLJBSpNwdP/Y5ceyKukhgizRIQBfK/ yKYL5e0EPDkfxNiL5L/T7WwduW2Mb69JMdMZaoGCiYoyN0+ENfmjVt2P9 juWfVQxmOw8YVNr4dqhvjVHKlhq0RSoPWnu1co3469r4fh1CcBgikhkMR o/74WMTMgbuoJHWlw51PbyTyMRA4kiedYxFM3n8mJ0t2JIY8qkI+ltWQO g==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="277303199" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="277303199" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2022 12:01:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="689124900" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 19 Jun 2022 12:01:09 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o30AW-000RUp-Aa; Sun, 19 Jun 2022 19:01:08 +0000 Date: Mon, 20 Jun 2022 03:00:59 +0800 From: kernel test robot To: Shubhrajyoti Datta Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS 484/1181] drivers/clk/clk-xlnx-clock-wizard-v.c:229:20: warning: integer literal is too large to be represented in type 'long', interpreting as 'unsigned long' per C89; this literal will have type 'long long' in C99 onwards Message-ID: <202206200251.YTzyVMGU-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220619_120113_789147_CEFFD860 X-CRM114-Status: GOOD ( 15.08 ) 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 Shubhrajyoti, FYI, the error/warning still remains. tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 59523b5c4aca0174f1f8cba2a07d3b3328b7c80e commit: 8b5383767cb4c856283824baee568f4286ecc0db [484/1181] clocking-wizard: Add versal clocking wizard support config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220620/202206200251.YTzyVMGU-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af6d2a0b6825e71965f3e2701a63c239fa0ad70f) 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 # https://github.com/Xilinx/linux-xlnx/commit/8b5383767cb4c856283824baee568f4286ecc0db git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS git checkout 8b5383767cb4c856283824baee568f4286ecc0db # 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=i386 SHELL=/bin/bash drivers/clk/ drivers/gpu/drm/xlnx/ drivers/media/i2c/ drivers/media/platform/xilinx/ drivers/phy/xilinx/ drivers/ptp/ drivers/staging/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/clk/clk-xlnx-clock-wizard-v.c:164:9: error: implicit declaration of function 'FIELD_GET' [-Werror,-Wimplicit-function-declaration] regl = FIELD_GET(WZRD_CLKFBOUT_L_MASK, reg); ^ >> drivers/clk/clk-xlnx-clock-wizard-v.c:229:20: warning: integer literal is too large to be represented in type 'long', interpreting as 'unsigned long' per C89; this literal will have type 'long long' in C99 onwards [-Wc99-compat] if (vco_freq >= WZRD_VCO_MIN && vco_freq <= WZRD_VCO_MAX) { ^ drivers/clk/clk-xlnx-clock-wizard-v.c:78:24: note: expanded from macro 'WZRD_VCO_MIN' #define WZRD_VCO_MIN 2160000000 ^ drivers/clk/clk-xlnx-clock-wizard-v.c:276:12: error: implicit declaration of function 'FIELD_PREP' [-Werror,-Wimplicit-function-declaration] regval1 = FIELD_PREP(WZRD_DIVCLK_EDGE, edged); ^ >> drivers/clk/clk-xlnx-clock-wizard-v.c:601:63: warning: variable 'i' is uninitialized when used here [-Wuninitialized] if (of_property_read_string_index(np, "clock-output-names", i, ^ drivers/clk/clk-xlnx-clock-wizard-v.c:545:7: note: initialize the variable 'i' to silence this warning int i, ret; ^ = 0 2 warnings and 2 errors generated. vim +229 drivers/clk/clk-xlnx-clock-wizard-v.c 154 155 static unsigned long clk_wzrd_recalc_rate_all(struct clk_hw *hw, 156 unsigned long parent_rate) 157 { 158 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); 159 u32 edged, div, div2, p5en, edge, prediv2, all, regl, regh, mult, reg; 160 161 edge = !!(readl(divider->base + WZRD_CLK_CFG_REG(WZRD_CLKFBOUT_1)) & WZRD_CLKFBOUT_EDGE); 162 163 reg = readl(divider->base + WZRD_CLK_CFG_REG(WZRD_CLKFBOUT_2)); > 164 regl = FIELD_GET(WZRD_CLKFBOUT_L_MASK, reg); 165 regh = FIELD_GET(WZRD_CLKFBOUT_H_MASK, reg); 166 167 mult = regl + regh + edge; 168 if (!mult) 169 mult = 1; 170 171 regl = readl(divider->base + WZRD_CLK_CFG_REG(WZRD_CLKFBOUT_4)) & 172 WZRD_CLKFBOUT_FRAC_EN; 173 if (regl) { 174 regl = readl(divider->base + WZRD_CLK_CFG_REG(WZRD_CLKFBOUT_3)) & 175 WZRD_CLKFBOUT_FRAC_MASK; 176 mult = mult * WZRD_FRAC_GRADIENT + regl; 177 parent_rate = DIV_ROUND_CLOSEST((parent_rate * mult), WZRD_FRAC_GRADIENT); 178 } else { 179 parent_rate = parent_rate * mult; 180 } 181 182 /* O Calculation */ 183 reg = readl(divider->base + WZRD_CLK_CFG_REG(WZRD_CLKOUT0_1)); 184 edged = FIELD_GET(WZRD_CLKFBOUT_EDGE, reg); 185 p5en = FIELD_GET(WZRD_P5EN, reg); 186 prediv2 = FIELD_GET(WZRD_CLKOUT0_PREDIV2, reg); 187 188 reg = readl(divider->base + WZRD_CLK_CFG_REG(WZRD_CLKOUT0_2)); 189 /* Low time */ 190 regl = FIELD_GET(WZRD_CLKFBOUT_L_MASK, reg); 191 /* High time */ 192 regh = FIELD_GET(WZRD_CLKFBOUT_H_MASK, reg); 193 all = regh + regl + edged; 194 if (!all) 195 all = 1; 196 197 if (prediv2) 198 div2 = PREDIV2_MULT * all + p5en; 199 else 200 div2 = all; 201 202 /* D calculation */ 203 edged = !!(readl(divider->base + WZRD_CLK_CFG_REG(WZRD_DESKEW_2)) & 204 WZRD_DIVCLK_EDGE); 205 reg = readl(divider->base + WZRD_CLK_CFG_REG(WZRD_DIVCLK)); 206 /* Low time */ 207 regl = FIELD_GET(WZRD_CLKFBOUT_L_MASK, reg); 208 /* High time */ 209 regh = FIELD_GET(WZRD_CLKFBOUT_H_MASK, reg); 210 div = regl + regh + edged; 211 if (!div) 212 div = 1; 213 214 div = div * div2; 215 return divider_recalc_rate(hw, parent_rate, div, divider->table, 216 divider->flags, divider->width); 217 } 218 219 static int clk_wzrd_get_divisors(struct clk_hw *hw, unsigned long rate, 220 unsigned long parent_rate) 221 { 222 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); 223 u64 vco_freq, freq, diff; 224 u32 m, d, o; 225 226 for (m = WZRD_M_MIN; m <= WZRD_M_MAX; m++) { 227 for (d = WZRD_D_MIN; d <= WZRD_D_MAX; d++) { 228 vco_freq = DIV_ROUND_CLOSEST((parent_rate * m), d); > 229 if (vco_freq >= WZRD_VCO_MIN && vco_freq <= WZRD_VCO_MAX) { 230 for (o = WZRD_O_MIN; o <= WZRD_O_MAX; o++) { 231 freq = DIV_ROUND_CLOSEST(vco_freq, o); 232 diff = abs(freq - rate); 233 234 if (diff < WZRD_MIN_ERR) { 235 divider->valuem = m; 236 divider->valued = d; 237 divider->valueo = o; 238 return 0; 239 } 240 } 241 } 242 } 243 } 244 return -EBUSY; 245 } 246 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel