From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 8F076145341; Sat, 17 Aug 2024 12:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723897723; cv=none; b=Co6ggU2ADsRZI8zVYUXHGej3vaIQphtt27knuBDvund3oC15AN7XIgArhKSrK1w/h5DFeWXtnTNRG2GGOQLx7W8iizoTIkbDJKJiC6nWX6ilcTZYr5M2POXb8fJ/QFGKnCzBZibTz2bilVi2BT93NCcBcyhN/wbXY3gxRAUGl/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723897723; c=relaxed/simple; bh=FIjVq1ScLLmQqE7XzW4+B1p/wF6C75tENXoxNp9BRUc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vFbMCJP8pS25t9h8DwDtha31kuG4grZj4n9QZumAOZu4lf73dN46fAfNhLDNPJ7sv22qPkL6ut1K8Zk7zxqvQROHSCSiXu7jwsy20wQ4yIp7hXLZBbiDQlHPpy6Jt0OXUfmj2y7kqmTmjDaab+fOQZi4MQvTksxZcoKvvfD5bdw= 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=CS6yR8bD; arc=none smtp.client-ip=192.198.163.16 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="CS6yR8bD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723897720; x=1755433720; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FIjVq1ScLLmQqE7XzW4+B1p/wF6C75tENXoxNp9BRUc=; b=CS6yR8bDT7An8dn5WNugE7H/tBw0oigZJAoXAZHapGEAq77h54lOQUQB Mnpl04skYhfgVcLihZedIIXCxJWFVMmnF4MSC4xObfsA2eRkXZlbEGi97 KbvEed0rujioSvC9ySlf3mNJCo935LhK4tRDvAjEKyDsEQflLRZIULJ31 OqJYOEPDZdddrhtn003CAQQvOrbc3b0vKXl7hFwXyw+kG5WfArcCPEgCT spQpyLW1UtegT/ePE7HJrf4zo+EdjeneY8ayTsX00MgPk0QHwAUtmTyFi RDqc0SNmNn/24Tf2rnttd8ccxifw2ARvFtlpTh6+8hzJEyxbvsL5/s7DD g==; X-CSE-ConnectionGUID: 92wBywnMSk2A2h6gCVNbRA== X-CSE-MsgGUID: Gz9ONTPwSCaTCAYZARqsHg== X-IronPort-AV: E=McAfee;i="6700,10204,11167"; a="13069497" X-IronPort-AV: E=Sophos;i="6.10,154,1719903600"; d="scan'208";a="13069497" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2024 05:28:40 -0700 X-CSE-ConnectionGUID: 205WendRR0W6DBDj73iV3A== X-CSE-MsgGUID: qGF2dQe3S1ehuyU05UqviQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,154,1719903600"; d="scan'208";a="59770643" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 17 Aug 2024 05:28:36 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1sfIXp-0007Ri-2D; Sat, 17 Aug 2024 12:28:33 +0000 Date: Sat, 17 Aug 2024 20:27:48 +0800 From: kernel test robot To: Satya Priya Kakitapalli , Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Ajit Pandey , Imran Shaik , Taniya Das , Jagadeesh Kona , Satya Priya Kakitapalli , kernel test robot , Dan Carpenter , Vladimir Zapolskiy Subject: Re: [PATCH V2] clk: qcom: clk-alpha-pll: Simplify the zonda_pll_adjust_l_val() Message-ID: <202408172049.Mc8dSq0c-lkp@intel.com> References: <20240814102005.33493-1-quic_skakitap@quicinc.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: <20240814102005.33493-1-quic_skakitap@quicinc.com> Hi Satya, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20240814] [cannot apply to clk/clk-next v6.11-rc3 v6.11-rc2 v6.11-rc1 linus/master v6.11-rc3] [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/Satya-Priya-Kakitapalli/clk-qcom-clk-alpha-pll-Simplify-the-zonda_pll_adjust_l_val/20240815-001519 base: next-20240814 patch link: https://lore.kernel.org/r/20240814102005.33493-1-quic_skakitap%40quicinc.com patch subject: [PATCH V2] clk: qcom: clk-alpha-pll: Simplify the zonda_pll_adjust_l_val() config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20240817/202408172049.Mc8dSq0c-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 26670e7fa4f032a019d23d56c6a02926e854e8af) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240817/202408172049.Mc8dSq0c-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/202408172049.Mc8dSq0c-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/clk/qcom/clk-alpha-pll.c:10: 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/qcom/clk-alpha-pll.c:10: 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/qcom/clk-alpha-pll.c:10: 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/qcom/clk-alpha-pll.c:2125:14: warning: comparison of distinct pointer types ('typeof ((rate)) *' (aka 'unsigned long *') and 'uint64_t *' (aka 'unsigned long long *')) [-Wcompare-distinct-pointer-types] 2125 | remainder = do_div(rate, prate); | ^~~~~~~~~~~~~~~~~~~ include/asm-generic/div64.h:222:28: note: expanded from macro 'do_div' 222 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ | ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ drivers/clk/qcom/clk-alpha-pll.c:2125:14: error: incompatible pointer types passing 'unsigned long *' to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types] 2125 | remainder = do_div(rate, prate); | ^~~~~~~~~~~~~~~~~~~ include/asm-generic/div64.h:238:22: note: expanded from macro 'do_div' 238 | __rem = __div64_32(&(n), __base); \ | ^~~~ include/asm-generic/div64.h:213:38: note: passing argument to parameter 'dividend' here 213 | extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor); | ^ >> drivers/clk/qcom/clk-alpha-pll.c:2125:14: warning: shift count >= width of type [-Wshift-count-overflow] 2125 | remainder = do_div(rate, prate); | ^~~~~~~~~~~~~~~~~~~ include/asm-generic/div64.h:234:25: note: expanded from macro 'do_div' 234 | } else if (likely(((n) >> 32) == 0)) { \ | ^ ~~ include/linux/compiler.h:76:40: note: expanded from macro 'likely' 76 | # define likely(x) __builtin_expect(!!(x), 1) | ^ 8 warnings and 1 error generated. vim +2125 drivers/clk/qcom/clk-alpha-pll.c 2120 2121 static void zonda_pll_adjust_l_val(unsigned long rate, unsigned long prate, u32 *l) 2122 { 2123 u64 remainder; 2124 > 2125 remainder = do_div(rate, prate); 2126 2127 *l = rate + (u32)(remainder * 2 >= prate); 2128 } 2129 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki