From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) (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 35C3B273C8 for ; Mon, 18 Sep 2023 17:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695056881; x=1726592881; h=date:from:to:cc:subject:message-id:mime-version; bh=3qvPWd39y4K4llnR0nk/qqoxFI72iCB+126wN+mC3yE=; b=mG4+VBK7g33/57tluM/Yo8guh7YJeM20/jnJBJBOY2cDcOxQEZhxO+UX 53aAemjt1TDZEDFHK5rh8TOZ5BxxLuoO+n9Keokx5qKLTnaDs3qtWAbtN aMLzbKz5CASxz76qMGk3z+EIOjwWsf4X54Ee3eZgBdhe9bhYjl1/dQYJN jRZvT1BtEYxYlOYpRdrz69KSZnhFGQX8ZFOI7KmrtqqjBICXphgOiX+15 NLgljxpPaYQOZI3oEvoRQP+2PnI+avUngR0B240bP1LL247GfyYsqxAhx 4w+H8ND5fB4xYjptu6m4fPW2LPnbbcIrYJIrLOal8uNyGY+E5OIq40DF+ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="466068020" X-IronPort-AV: E=Sophos;i="6.02,157,1688454000"; d="scan'208";a="466068020" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 10:08:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="695588271" X-IronPort-AV: E=Sophos;i="6.02,157,1688454000"; d="scan'208";a="695588271" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 18 Sep 2023 10:07:58 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qiHj2-0006J8-1p; Mon, 18 Sep 2023 17:07:56 +0000 Date: Tue, 19 Sep 2023 01:07:44 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: drivers/clk/ingenic/jz4760-cgu.c:80 jz4760_cgu_calc_m_n_od() error: uninitialized symbol 'od'. Message-ID: <202309190010.sfZ60CIj-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org TO: Paul Cercueil CC: Stephen Boyd tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ce9ecca0238b140b88f43859b211c9fdfd8e5b70 commit: ecfb9f404771dde909ce7743df954370933c3be2 clk: ingenic: jz4760: Update M/N/OD calculation algorithm date: 8 months ago :::::: branch date: 19 hours ago :::::: commit date: 8 months ago config: csky-randconfig-r071-20230917 (https://download.01.org/0day-ci/archive/20230919/202309190010.sfZ60CIj-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230919/202309190010.sfZ60CIj-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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202309190010.sfZ60CIj-lkp@intel.com/ smatch warnings: drivers/clk/ingenic/jz4760-cgu.c:80 jz4760_cgu_calc_m_n_od() error: uninitialized symbol 'od'. vim +/od +80 drivers/clk/ingenic/jz4760-cgu.c bdbfc029374f6d9 Paul Cercueil 2021-05-30 55 bdbfc029374f6d9 Paul Cercueil 2021-05-30 56 static void bdbfc029374f6d9 Paul Cercueil 2021-05-30 57 jz4760_cgu_calc_m_n_od(const struct ingenic_cgu_pll_info *pll_info, bdbfc029374f6d9 Paul Cercueil 2021-05-30 58 unsigned long rate, unsigned long parent_rate, bdbfc029374f6d9 Paul Cercueil 2021-05-30 59 unsigned int *pm, unsigned int *pn, unsigned int *pod) bdbfc029374f6d9 Paul Cercueil 2021-05-30 60 { ecfb9f404771dde Paul Cercueil 2022-12-14 61 unsigned int m, n, od, m_max = (1 << pll_info->m_bits) - 1; bdbfc029374f6d9 Paul Cercueil 2021-05-30 62 bdbfc029374f6d9 Paul Cercueil 2021-05-30 63 /* The frequency after the N divider must be between 1 and 50 MHz. */ bdbfc029374f6d9 Paul Cercueil 2021-05-30 64 n = parent_rate / (1 * MHZ); bdbfc029374f6d9 Paul Cercueil 2021-05-30 65 bdbfc029374f6d9 Paul Cercueil 2021-05-30 66 /* The N divider must be >= 2. */ bdbfc029374f6d9 Paul Cercueil 2021-05-30 67 n = clamp_val(n, 2, 1 << pll_info->n_bits); bdbfc029374f6d9 Paul Cercueil 2021-05-30 68 ecfb9f404771dde Paul Cercueil 2022-12-14 69 rate /= MHZ; ecfb9f404771dde Paul Cercueil 2022-12-14 70 parent_rate /= MHZ; bdbfc029374f6d9 Paul Cercueil 2021-05-30 71 ecfb9f404771dde Paul Cercueil 2022-12-14 72 for (m = m_max; m >= m_max && n >= 2; n--) { ecfb9f404771dde Paul Cercueil 2022-12-14 73 m = rate * n / parent_rate; ecfb9f404771dde Paul Cercueil 2022-12-14 74 od = m & 1; ecfb9f404771dde Paul Cercueil 2022-12-14 75 m <<= od; bdbfc029374f6d9 Paul Cercueil 2021-05-30 76 } bdbfc029374f6d9 Paul Cercueil 2021-05-30 77 bdbfc029374f6d9 Paul Cercueil 2021-05-30 78 *pm = m; ecfb9f404771dde Paul Cercueil 2022-12-14 79 *pn = n + 1; bdbfc029374f6d9 Paul Cercueil 2021-05-30 @80 *pod = 1 << od; bdbfc029374f6d9 Paul Cercueil 2021-05-30 81 } bdbfc029374f6d9 Paul Cercueil 2021-05-30 82 :::::: The code at line 80 was first introduced by commit :::::: bdbfc029374f6d9ed31bc44983501fd1008b677f clk: ingenic: Add support for the JZ4760 :::::: TO: Paul Cercueil :::::: CC: Stephen Boyd -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki