From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 0ADC813777F; Fri, 1 Nov 2024 04:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730434516; cv=none; b=Xd1YS2/TYaHsupMeavreu3vkxJUsJ9OnkY/NsozRxeqCayDIrhYFv402AGjqMRJhskRSUTjEckqfKn2f6yKW18OamPomDmDR5FXHOQp/0MzYtRs6Fk2tJrY6qWAfwYy68rAszTAIaWaHNi7Rr8VcT9xphO/QEw44pxlZfmZ+ado= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730434516; c=relaxed/simple; bh=VJA0AjiK6NmricA4WfL9xHrUVhSflUDFGoIEBijSa3M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UFXmuNfRGkCFkkK3aCej15OfesgCwBM1KGZiNcMEIGUYYRHaRsp/oxH3l7uSmaaxgt67jt4LteGjZJ7/2F+kbol4Z3WfBs9+RGImdG3UgyBRQTo6BtINEYJ3r2inV2noUMPA6pYrWDkB/Y5Yn5JcRZ795J11uZGNZ+ItTAE4rnw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=J1Isdfys; arc=none smtp.client-ip=192.198.163.14 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="J1Isdfys" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730434514; x=1761970514; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VJA0AjiK6NmricA4WfL9xHrUVhSflUDFGoIEBijSa3M=; b=J1IsdfysL2bmcelras1tZvrfhh+tR11Tl0WltbkP4xlkDjWOffA4XG+r ZFnTcdsQVCKrofoNdze2JtFO+UkTcqDS05ERVxN3xYyVHCnNasYwsAc9H MdcwsHwCfvux4dzS/HEuVraVsd+EjYz7MQmFGqkkjcPZ4c5NlvRplPQFk P5lIS4ZyME1gDvmtxI6+2Yle8TjTi8icdDN5ZpfS/O/ClnMJwVe1ZDPZZ Ed27We7kDcmMCpd8vQJ4MNWDdZtVI2p8CajOrtpLuZHNPvjnyFZCBs/oB J8j7Y3XVxn8g1o8I49FzyGXmaAOvirDtw0+ERtWMR7MuX+sO43Mj39ybi w==; X-CSE-ConnectionGUID: QJ/a5MsIS3OWsP2hYevK8A== X-CSE-MsgGUID: BhVhWwtxSZC+2ySoDZj5FA== X-IronPort-AV: E=McAfee;i="6700,10204,11242"; a="30414493" X-IronPort-AV: E=Sophos;i="6.11,248,1725346800"; d="scan'208";a="30414493" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2024 21:15:13 -0700 X-CSE-ConnectionGUID: cFVYI5qoQiaeYqRZHIqwSw== X-CSE-MsgGUID: keQXpCkbQTeVGDbcHGrUGg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,248,1725346800"; d="scan'208";a="82524144" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 31 Oct 2024 21:15:06 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t6j3w-000h7d-1T; Fri, 01 Nov 2024 04:15:04 +0000 Date: Fri, 1 Nov 2024 12:14:33 +0800 From: kernel test robot To: Andrea della Porta , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Lorenzo Pieralisi , Krzysztof Wilczynski , Manivannan Sadhasivam , Bjorn Helgaas , Linus Walleij , Catalin Marinas , Will Deacon , Bartosz Golaszewski , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Saravana Kannan , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-gpio@vger.kernel.org, Masahiro Yamada , Stefan Wahren Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH v3 07/12] clk: rp1: Add support for clocks provided by RP1 Message-ID: <202411011129.wmWcuU9Z-lkp@intel.com> References: Precedence: bulk X-Mailing-List: devicetree@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: Hi Andrea, kernel test robot noticed the following build errors: [auto build test ERROR on clk/clk-next] [also build test ERROR on char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus robh/for-next linus/master v6.12-rc5] [cannot apply to next-20241031] [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/Andrea-della-Porta/dt-bindings-clock-Add-RaspberryPi-RP1-clock-bindings/20241028-221122 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/c20e3d6d87c71691b149cdeeafc94009953346b2.1730123575.git.andrea.porta%40suse.com patch subject: [PATCH v3 07/12] clk: rp1: Add support for clocks provided by RP1 config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20241101/202411011129.wmWcuU9Z-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 639a7ac648f1e50ccd2556e17d401c04f9cce625) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241101/202411011129.wmWcuU9Z-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/202411011129.wmWcuU9Z-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/clk/clk-rp1.c:9: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 548 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 561 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from drivers/clk/clk-rp1.c:9: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 574 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from drivers/clk/clk-rp1.c:9: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 585 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 595 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 605 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> drivers/clk/clk-rp1.c:621:2: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 621 | FIELD_SET(prim, PLL_PRIM_DIV1_MASK, prim_div1); | ^ drivers/clk/clk-rp1.c:399:12: note: expanded from macro 'FIELD_SET' 399 | (_reg) |= FIELD_PREP(mask, (_val)); \ | ^ drivers/clk/clk-rp1.c:622:2: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 622 | FIELD_SET(prim, PLL_PRIM_DIV2_MASK, prim_div2); | ^ drivers/clk/clk-rp1.c:399:12: note: expanded from macro 'FIELD_SET' 399 | (_reg) |= FIELD_PREP(mask, (_val)); \ | ^ drivers/clk/clk-rp1.c:767:2: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 767 | FIELD_SET(sec, PLL_SEC_DIV_MASK, div); | ^ drivers/clk/clk-rp1.c:399:12: note: expanded from macro 'FIELD_SET' 399 | (_reg) |= FIELD_PREP(mask, (_val)); \ | ^ drivers/clk/clk-rp1.c:948:3: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 948 | FIELD_SET(ctrl, CLK_CTRL_AUXSRC_MASK, index - data->num_std_parents); | ^ drivers/clk/clk-rp1.c:399:12: note: expanded from macro 'FIELD_SET' 399 | (_reg) |= FIELD_PREP(mask, (_val)); \ | ^ 6 warnings and 4 errors generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for MODVERSIONS Depends on [n]: MODULES [=y] && !COMPILE_TEST [=y] Selected by [y]: - RANDSTRUCT_FULL [=y] && (CC_HAS_RANDSTRUCT [=y] || GCC_PLUGINS [=n]) && MODULES [=y] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] vim +/FIELD_PREP +621 drivers/clk/clk-rp1.c 607 608 static int rp1_pll_set_rate(struct clk_hw *hw, 609 unsigned long rate, unsigned long parent_rate) 610 { 611 struct rp1_clk_desc *pll = container_of(hw, struct rp1_clk_desc, hw); 612 struct rp1_clockman *clockman = pll->clockman; 613 const struct rp1_pll_data *data = pll->data; 614 615 u32 prim, prim_div1, prim_div2; 616 617 get_pll_prim_dividers(rate, parent_rate, &prim_div1, &prim_div2); 618 619 spin_lock(&clockman->regs_lock); 620 prim = clockman_read(clockman, data->ctrl_reg); > 621 FIELD_SET(prim, PLL_PRIM_DIV1_MASK, prim_div1); 622 FIELD_SET(prim, PLL_PRIM_DIV2_MASK, prim_div2); 623 clockman_write(clockman, data->ctrl_reg, prim); 624 spin_unlock(&clockman->regs_lock); 625 626 return 0; 627 } 628 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki