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 5B5AFC001DF for ; Mon, 31 Jul 2023 14:49:20 +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:In-Reply-To:MIME-Version:References: 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: List-Owner; bh=s9PAYCcexCDv7W0Qiaq1SHO1IQq+P2WZMW5Ufwu1Nsw=; b=duyFaa3riwvX1c oGMjwT31eje+5DOMwyKY1Pf0+l2Jtuvkmvkt2fjE+Cmqq7synx4kt1TXxgDFsI/aRbvF+xcvWwuQV iFCnKSi/BNFJo69W4cllMmc/h0FVzgcWkqsgOlDi3QUvGtZkJUV4VwDecjDBz3GNSzet4P8/zaQyF 0fR7iAI5xDwwzVeQrFi7Xv38IpaHRDchUCDn2S+uhXqzGMrwT/Fz2D2oiSTxQZgtSc/B+HCe96HMt 7uCI5TrR092VfKrc+JXaXLL79qi5rPChlXqWD8lffW1fQks/bBpbKTL54xWkfiDLC2d2sSoa9KLS1 eePJyzjGk42vH1oXsjRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQUCd-00GBFC-2O; Mon, 31 Jul 2023 14:48:55 +0000 Received: from mgamail.intel.com ([134.134.136.126]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQUCa-00GBEb-2Q for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2023 14:48:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690814932; x=1722350932; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HFPGYWs4/zmSmWP047R6mExq1+V62JkVraQ6iMi1zME=; b=FAOWEGXc/MMTm50+TlADW5V2HxoD4HssyKlDl5CDZS6inLCX7WFOhRq1 StXMaQcGKR47u2thI6NwuHfuNuhVOU0KbH8O5y/nHhbshAp0lo3EIrGaj Zcw3ThmGZTMBYOlC3FAduz0sc+aLumc3BNl44ryuwM6rUjFZcML0726LF An1AfctgHapuQAOJlGoOie7gLXKgzwb3MKBlmQPGNs3cy1qXk4LG6kmW8 Ir0KsIzldaBz6c1GZvdb1FAfLD9qpiEqAMf40H2i6/vWGqSRLJCT+BSmg HdoULNkDTJQ98Yb9+M25V0DNGY3nsJSbeErLd/mp9SVlGAVybYfHpaAa2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="353959256" X-IronPort-AV: E=Sophos;i="6.01,244,1684825200"; d="scan'208";a="353959256" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 07:41:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="757966589" X-IronPort-AV: E=Sophos;i="6.01,244,1684825200"; d="scan'208";a="757966589" Received: from lkp-server02.sh.intel.com (HELO 953e8cd98f7d) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 31 Jul 2023 07:41:14 -0700 Received: from kbuild by 953e8cd98f7d with local (Exim 4.96) (envelope-from ) id 1qQU4H-0005Ac-0g; Mon, 31 Jul 2023 14:40:31 +0000 Date: Mon, 31 Jul 2023 22:39:55 +0800 From: kernel test robot To: Miquel Raynal , Lizhi Hou , Brian Xu , Raj Kumar Rampelli , Vinod Koul Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Michal Simek , Max Zhen , Sonal Santan , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Miquel Raynal Subject: Re: [PATCH 4/4] dmaengine: xilinx: xdma: Support cyclic transfers Message-ID: <202307312225.9ewyJsVx-lkp@intel.com> References: <20230731101442.792514-5-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230731101442.792514-5-miquel.raynal@bootlin.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230731_074852_942045_47571EB6 X-CRM114-Status: GOOD ( 14.62 ) 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 Hi Miquel, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.5-rc4 next-20230731] [cannot apply to xilinx-xlnx/master] [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/Miquel-Raynal/dmaengine-xilinx-xdma-Fix-interrupt-vector-setting/20230731-181620 base: linus/master patch link: https://lore.kernel.org/r/20230731101442.792514-5-miquel.raynal%40bootlin.com patch subject: [PATCH 4/4] dmaengine: xilinx: xdma: Support cyclic transfers config: powerpc-randconfig-r026-20230731 (https://download.01.org/0day-ci/archive/20230731/202307312225.9ewyJsVx-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230731/202307312225.9ewyJsVx-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/202307312225.9ewyJsVx-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/dma/xilinx/xdma.c:716:6: warning: variable 'desc' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 716 | if (vd) | ^~ drivers/dma/xilinx/xdma.c:718:7: note: uninitialized use occurs here 718 | if (!desc || !desc->cyclic) { | ^~~~ drivers/dma/xilinx/xdma.c:716:2: note: remove the 'if' if its condition is always true 716 | if (vd) | ^~~~~~~ 717 | desc = to_xdma_desc(vd); | ~~~~~~~~~~~~~~~~ drivers/dma/xilinx/xdma.c:703:24: note: initialize the variable 'desc' to silence this warning 703 | struct xdma_desc *desc; | ^ | = NULL 1 warning generated. vim +716 drivers/dma/xilinx/xdma.c 697 698 static enum dma_status xdma_tx_status(struct dma_chan *chan, dma_cookie_t cookie, 699 struct dma_tx_state *state) 700 { 701 struct xdma_chan *xdma_chan = to_xdma_chan(chan); 702 struct virt_dma_desc *vd; 703 struct xdma_desc *desc; 704 enum dma_status ret; 705 unsigned long flags; 706 unsigned int period_idx; 707 u32 residue = 0; 708 709 ret = dma_cookie_status(chan, cookie, state); 710 if (ret == DMA_COMPLETE || !state) 711 return ret; 712 713 spin_lock_irqsave(&xdma_chan->vchan.lock, flags); 714 715 vd = vchan_find_desc(&xdma_chan->vchan, cookie); > 716 if (vd) 717 desc = to_xdma_desc(vd); 718 if (!desc || !desc->cyclic) { 719 spin_unlock_irqrestore(&xdma_chan->vchan.lock, flags); 720 return ret; 721 } 722 723 period_idx = desc->completed_desc_num % desc->periods; 724 residue = (desc->periods - period_idx) * desc->period_size; 725 726 spin_unlock_irqrestore(&xdma_chan->vchan.lock, flags); 727 728 dma_set_residue(state, residue); 729 730 return ret; 731 } 732 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel