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 D44C9C433EF for ; Tue, 14 Dec 2021 20:53:03 +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=Mz27+ZmwQmHc5x5sm4z7w4tIpyvi1qGLEUwrck+AyRs=; b=Z+AqezxoasiwPh CionxY1HBZQejIysxdAgmadlLfhnSrgB94b8gMFM7Z1zdl2o3psX9lULZ1J9f1PZEJ6JaAgfrOjPP NaJzH4Xniy3kZS9f40Y9/Q7+3WK4PJC64Kas4bGr28+ojpv8ZDaB8b+dWkbpQjlSQaMZP+gKoDR/J lt+w8egZIl2TMuVJe9F4mA0fIy4KFVmoONcgn74ZbPKItFnVIrG6iCMHJBWPJgvLJylw8QMNmoFvn MnjH6EfuL3k8vVqMKf5G0NH+nERv9Wf2AunRw+ZKozbJXZ2Yit9A1nf7ejkxA1TcE2biTMbGzbu1/ 2Kf7hKv7HjA2/j8fQ3Bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxElr-00Fmq8-Ha; Tue, 14 Dec 2021 20:51:35 +0000 Received: from mga02.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxEln-00FmpP-Pq for linux-arm-kernel@lists.infradead.org; Tue, 14 Dec 2021 20:51:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639515091; x=1671051091; h=date:from:to:cc:subject:message-id:mime-version; bh=jf3OkZfIOFN18a+HLaBkiehOT7liQfKruaIeee2Cb0I=; b=AcadJNCu3BPKThe3fQo62KnLsd2d+c8bzkI1ca8Rln/HLTQeuhiMVvLr ycQe+ZVXKnbpROZ0F/TeBfNjT5D5MUICG2wKHLvXKfdU6PLn1zIrrmsbg PapQHBA3eNjXdBwdAlWxsdOB3Gwe7tHArra+TiKjT1R+/IjFSfmQNFx+y hbSmM0+4sT5da4lY49c1z75W0CVhZ28HIdLEIgK0fbKeWRT7cgI/5Q8C+ fyr1FYJrayUjTHHug1TSVhkBXQN7KEx2FJ8nktNCqDbtB/CA7Ly7XTIWy CXvDun5+5aQBcrqD4W9ELUmgUJLdeaQvO8dL0xICFJt348IUeAaZqOIM1 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10197"; a="226361008" X-IronPort-AV: E=Sophos;i="5.88,206,1635231600"; d="scan'208";a="226361008" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2021 12:51:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,206,1635231600"; d="scan'208";a="465255740" Received: from lkp-server02.sh.intel.com (HELO 9f38c0981d9f) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 14 Dec 2021 12:51:28 -0800 Received: from kbuild by 9f38c0981d9f with local (Exim 4.92) (envelope-from ) id 1mxElj-0000lP-UY; Tue, 14 Dec 2021 20:51:27 +0000 Date: Wed, 15 Dec 2021 04:51:04 +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.10 1964/1981] drivers/clk/clk-xlnx-clock-wizard.c:324:8: error: implicit declaration of function 'FIELD_PREP' Message-ID: <202112150402.8WBLORs1-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_125131_916777_9040CB67 X-CRM114-Status: GOOD ( 13.05 ) 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 tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10 head: 87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b commit: 0a6e9d56f285540e5ca6c69c7fad2c3520b79c50 [1964/1981] clocking-wizard: Support higher frequency accuracy config: x86_64-randconfig-a013-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150402.8WBLORs1-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c) 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/0a6e9d56f285540e5ca6c69c7fad2c3520b79c50 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10 git checkout 0a6e9d56f285540e5ca6c69c7fad2c3520b79c50 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/clk/clk-xlnx-clock-wizard.c:324:8: error: implicit declaration of function 'FIELD_PREP' [-Werror,-Wimplicit-function-declaration] reg = FIELD_PREP(WZRD_CLKOUT_DIVIDE_MASK, clockout0_div) | ^ >> drivers/clk/clk-xlnx-clock-wizard.c:392:6: error: implicit declaration of function 'FIELD_GET' [-Werror,-Wimplicit-function-declaration] d = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg); ^ 2 errors generated. vim +/FIELD_PREP +324 drivers/clk/clk-xlnx-clock-wizard.c 301 302 static int clk_wzrd_dynamic_all_nolock(struct clk_hw *hw, unsigned long rate, 303 unsigned long parent_rate) 304 { 305 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); 306 u32 reg, pre; 307 u16 retries; 308 int err; 309 u64 vco_freq, rate_div, f, clockout0_div; 310 311 err = clk_wzrd_get_divisors(hw, rate, parent_rate); 312 if (err) 313 pr_err("failed to get divisors\n"); 314 315 vco_freq = DIV_ROUND_CLOSEST((parent_rate * divider->valuem), divider->valued); 316 rate_div = DIV_ROUND_CLOSEST((vco_freq * WZRD_FRAC_POINTS), rate); 317 318 clockout0_div = rate_div / WZRD_FRAC_POINTS; 319 320 pre = DIV_ROUND_CLOSEST((vco_freq * WZRD_FRAC_POINTS), rate); 321 f = (u32)(pre - (clockout0_div * WZRD_FRAC_POINTS)); 322 f = f & WZRD_CLKOUT_FRAC_MASK; 323 > 324 reg = FIELD_PREP(WZRD_CLKOUT_DIVIDE_MASK, clockout0_div) | 325 FIELD_PREP(WZRD_CLKOUT0_FRAC_MASK, f); 326 327 writel(reg, divider->base + WZRD_CLK_CFG_REG(2)); 328 /* Set divisor and clear phase offset */ 329 reg = FIELD_PREP(WZRD_CLKFBOUT_MULT_MASK, divider->valuem) | 330 FIELD_PREP(WZRD_DIVCLK_DIVIDE_MASK, divider->valued); 331 writel(reg, divider->base + WZRD_CLK_CFG_REG(0)); 332 writel(divider->valueo, divider->base + WZRD_CLK_CFG_REG(2)); 333 writel(0, divider->base + WZRD_CLK_CFG_REG(3)); 334 /* Check status register */ 335 retries = WZRD_DR_NUM_RETRIES; 336 while (retries--) { 337 if (readl(divider->base + WZRD_DR_STATUS_REG_OFFSET) & 338 WZRD_DR_LOCK_BIT_MASK) 339 break; 340 } 341 342 if (!retries) 343 return -ETIMEDOUT; 344 345 /* Initiate reconfiguration */ 346 writel(WZRD_DR_BEGIN_DYNA_RECONF, 347 divider->base + WZRD_DR_INIT_REG_OFFSET); 348 349 /* Check status register */ 350 retries = WZRD_DR_NUM_RETRIES; 351 while (retries--) { 352 if (readl(divider->base + WZRD_DR_STATUS_REG_OFFSET) & 353 WZRD_DR_LOCK_BIT_MASK) 354 break; 355 } 356 357 if (!retries) 358 return -ETIMEDOUT; 359 360 return 0; 361 } 362 363 static int clk_wzrd_dynamic_all(struct clk_hw *hw, unsigned long rate, 364 unsigned long parent_rate) 365 { 366 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); 367 unsigned long flags = 0; 368 int ret; 369 370 if (divider->lock) 371 spin_lock_irqsave(divider->lock, flags); 372 else 373 __acquire(divider->lock); 374 375 ret = clk_wzrd_dynamic_all_nolock(hw, rate, parent_rate); 376 377 if (divider->lock) 378 spin_unlock_irqrestore(divider->lock, flags); 379 else 380 __release(divider->lock); 381 382 return ret; 383 } 384 385 static unsigned long clk_wzrd_recalc_rate_all(struct clk_hw *hw, 386 unsigned long parent_rate) 387 { 388 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); 389 u32 m, d, o, div, reg, f; 390 391 reg = readl(divider->base + WZRD_CLK_CFG_REG(0)); > 392 d = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg); 393 m = FIELD_GET(WZRD_CLKFBOUT_MULT_MASK, reg); 394 reg = readl(divider->base + WZRD_CLK_CFG_REG(2)); 395 o = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg); 396 f = FIELD_GET(WZRD_CLKOUT0_FRAC_MASK, reg); 397 398 div = DIV_ROUND_CLOSEST(d * (WZRD_FRAC_POINTS * o + f), WZRD_FRAC_POINTS); 399 return divider_recalc_rate(hw, parent_rate * m, div, divider->table, 400 divider->flags, divider->width); 401 } 402 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel