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 AE1D8C433F5 for ; Tue, 15 Mar 2022 22:08:43 +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=4kul38JCPKB4GI5Y7qQFO6ruRufESzk6cv/yWPd5xzk=; b=VjynfAFBredFAK AxD9pDFcniVoFGldMnE8w1rvooNTqoYQmRs/cMFmq99fZk0v1CH5Dq19T2LncESPtrkYxmorXnVlu mz7lSfRv2lr0cSa5UPLYuMH3fQmEzMoiM63tCSyDPN+LpIDhfPUfhL9lLSCGBe5TcYFsag/Ffs9Jx MIFJpVFLy3LXmHCRDvHyXSX8pfdNmxvB/jsFy0Butz4vnzM9/QwHhxZyzS/MRxLPhXWYUXhHtI7Zf rEOE55EUQzvA5m8FLQXif0V3Ta4L3wskMvD6+9QBIqxS9NbuMjMAVGTZalB93tnupguqJKea9OZKs gKZ4LkW+Rhayog+a9k2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUFK6-00Ajs8-0f; Tue, 15 Mar 2022 22:07:22 +0000 Received: from mga07.intel.com ([134.134.136.100]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUFK1-00Ajrm-CX for linux-arm-kernel@lists.infradead.org; Tue, 15 Mar 2022 22:07:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647382037; x=1678918037; h=date:from:to:cc:subject:message-id:mime-version; bh=KjSnKNj2twZsTMnSIET3Dl065/bPUJXT5F0mwdP1/6g=; b=PfqBLRMvT3Qqo+2qlDrif8ZOJ7oSeOwnjG73mso1pLb+nzGpiFS1sDqJ zs2/Sln3/FwRZOmhohrl5FeWWGBneKdH5pG+bxR9O2WMa6UltJZVtoNUo CDR5xWJR0PJ8metzoh/Z6taAZNy+ZAGLkVwpL0fuQ7RXU6JmwCAM4i3Ct v4arFPhPVIs3Esrs0u+jz8+Rv/yqkbwALhh/xC7FVRTQBhlL9KoX+9PVF 2hlTgwFJZ98ez1yK8tIx4042nqgrsRZJMFROa8Z6TRjLEn0Z480c7hAxn Hx8UfdYWi7z4h+IBv5pUtXuZjY36ev+0EttydyVTty7qwr8he4h6LGkFi w==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="319650753" X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="319650753" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 15:07:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="613420169" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 15 Mar 2022 15:07:14 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nUFJx-000BYI-Cv; Tue, 15 Mar 2022 22:07:13 +0000 Date: Wed, 16 Mar 2022 06:06:57 +0800 From: kernel test robot To: Venkateshwar Rao G Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek , Hyun Kwon Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS 643/983] drivers/gpu/drm/xlnx/xlnx_scaler.c:866:3: warning: variable 'nr_rds' is uninitialized when used here Message-ID: <202203160632.WrayAcJE-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-20220315_150717_501908_01CB66BC X-CRM114-Status: GOOD ( 12.49 ) 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.15_LTS head: 82a6a288ad2ea30575c859f1a5ec2ad014e51528 commit: 3a0ea0feebe5cb529d57e0f9673d22e4754c6415 [643/983] drm: xlnx: scaler: Adding vpss-scaler driver config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220316/202203160632.WrayAcJE-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6b2f50fb47da3baeee10b1906da6e30ac5d26ec) 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/3a0ea0feebe5cb529d57e0f9673d22e4754c6415 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS git checkout 3a0ea0feebe5cb529d57e0f9673d22e4754c6415 # 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=i386 SHELL=/bin/bash drivers/clk/ drivers/gpu/drm/xlnx/ drivers/media/platform/xilinx/ drivers/net/ethernet/xilinx/ drivers/phy/xilinx/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/gpu/drm/xlnx/xlnx_scaler.c:866:3: warning: variable 'nr_rds' is uninitialized when used here [-Wuninitialized] nr_rds += nr_rds_clck; ^~~~~~ drivers/gpu/drm/xlnx/xlnx_scaler.c:821:12: note: initialize the variable 'nr_rds' to silence this warning int nr_rds; ^ = 0 drivers/gpu/drm/xlnx/xlnx_scaler.c:1394:6: warning: variable 'fmt_in' set but not used [-Wunused-but-set-variable] u32 fmt_in, fmt_out; ^ drivers/gpu/drm/xlnx/xlnx_scaler.c:1394:14: warning: variable 'fmt_out' set but not used [-Wunused-but-set-variable] u32 fmt_in, fmt_out; ^ 3 warnings generated. vim +/nr_rds +866 drivers/gpu/drm/xlnx/xlnx_scaler.c 800 801 /** 802 * xv_hscaler_calculate_phases - Calculates h-scaler phases 803 * @scaler: Pointer to scaler registers base 804 * @width_in: input width 805 * @width_out: output width 806 * @pixel_rate: pixel rate 807 * 808 */ 809 static void 810 xv_hscaler_calculate_phases(struct xilinx_scaler *scaler, 811 u32 width_in, u32 width_out, u32 pixel_rate) 812 { 813 unsigned int loop_width; 814 unsigned int x, s; 815 int offset = 0; 816 int xwrite_pos = 0; 817 bool output_write_en; 818 bool get_new_pix; 819 u64 phaseH; 820 u32 array_idx = 0; 821 int nr_rds; 822 int nr_rds_clck; 823 unsigned int nphases = scaler->max_num_phases; 824 unsigned int nppc = scaler->pix_per_clk; 825 unsigned int shift = XHSC_STEP_PRECISION_SHIFT - ilog2(nphases); 826 827 loop_width = max_t(u32, width_in, width_out); 828 loop_width = ALIGN(loop_width + nppc - 1, nppc); 829 830 for (x = 0; x < loop_width; x++) { 831 nr_rds_clck = 0; 832 for (s = 0; s < nppc; s++) { 833 phaseH = (offset >> shift) & (nphases - 1); 834 get_new_pix = false; 835 output_write_en = false; 836 if ((offset >> XHSC_STEP_PRECISION_SHIFT) != 0) { 837 get_new_pix = true; 838 offset -= (1 << XHSC_STEP_PRECISION_SHIFT); 839 array_idx++; 840 } 841 842 if (((offset >> XHSC_STEP_PRECISION_SHIFT) == 0) && 843 xwrite_pos < width_out) { 844 offset += pixel_rate; 845 output_write_en = true; 846 xwrite_pos++; 847 } 848 849 scaler->H_phases[x] |= (phaseH << 850 (s * XHSC_HPHASE_MULTIPLIER)); 851 scaler->H_phases[x] |= (array_idx << 852 (XHSC_HPHASE_SHIFT_BY_6 + 853 (s * XHSC_HPHASE_MULTIPLIER))); 854 if (output_write_en) { 855 scaler->H_phases[x] |= 856 (XV_HSCALER_PHASESH_V_OUTPUT_WR_EN << 857 (s * XHSC_HPHASE_MULTIPLIER)); 858 } 859 860 if (get_new_pix) 861 nr_rds_clck++; 862 } 863 if (array_idx >= nppc) 864 array_idx &= (nppc - 1); 865 > 866 nr_rds += nr_rds_clck; 867 if (nr_rds >= nppc) 868 nr_rds -= nppc; 869 } 870 } 871 --- 0-DAY CI Kernel Test Service 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