Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp171180lqg; Wed, 10 Apr 2024 21:15:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNEQxT3dMLJu0f+LpAGo7PRrN3wjBnaGCdm5rzo/jUvvCrlV1SCv7YvMPlhnLncfQz1HghOR1E4yvJhzVdngMj25Z/Ksm7i2qB2XKkUg== X-Google-Smtp-Source: AGHT+IErKmrb7TsE/iNNM0A7FP2DxJVTW9WM8aquxe/MTslxb5TA5Dq8qanNJ2bXu7SqjOjEzsm8 X-Received: by 2002:a19:f014:0:b0:517:8ad8:c64 with SMTP id p20-20020a19f014000000b005178ad80c64mr710048lfc.21.1712808920547; Wed, 10 Apr 2024 21:15:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712808920; cv=pass; d=google.com; s=arc-20160816; b=JE8V/l0qMI4BtrOsMSsFny8S+y0B+MOuXvo1tiH/P0/8rGOulEWZ/Q63+qz70FSxxv kjHx5KvNdyyKwzVuHNjLb6BffJF4vHfCR/xAVT/OmKerzFFamcbAVijlD7h7fjZVTNsf PoN79bvxl/B41z/0dq6uzPJQATx3zDTuQjfnJKd35AEOvBKtIuXzbWQZ4MO0BvKP3oCZ QcU+BKwlTs8jra3QHaa2sB3kPkC+zzDRrIvtZsZF2QgM6ZALFv7PDkBgO5ugaemRCm4Y x8/WfUG7mLJgx7Hz/X1iBB5tRdcZnF7fzHlCb1vQWvQNq/GQHKILEzJmiSK0N/BaVqJM C33w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5ArT5YAQqUneBuw+G76UXYNFKJ2gIcCSPCw3Rug7QTI=; fh=vowXmEvvngI8IPS1fw7iMugNGzGuyd1Y6TCnyZ6LMVE=; b=dOa8rxyfjYxtH5jiWDkxFzm+ntk5fGUL+d7oLJYjkzJv1eEep3/uVPeCubmDIHEjkj OC2/aYww+jH+VqbVdqrNR3NweVqZzgoG1j1Hn++1FWJ8sAl1CaQhI5av0KeQ8WtfGQHt GBf130NJ/iUO2c/vqDWoxWlXbOBjiJfOWDk/9BxA4urh4pwegNxQoNMDYNDPab/3M0uG 0d/BtCsCpo6JQ1oJGqgpOyE1q+5/1iK06sCmlYnTeYvKCNeFZ2iVFo3axOrjHei6gzSB o0mBJtIs4KH5S6zg/sHKwOBQiWex1DX8dhwLIyB3nHzvNa2P7HCLCFVafRuSWad+lDqk 6L2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="er5LZgN/"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-139737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qk9-20020a1709077f8900b00a52222e6ab6si234984ejc.675.2024.04.10.21.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 21:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="er5LZgN/"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-139737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1471F1F23D7A for ; Thu, 11 Apr 2024 04:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61DBD13BC0F; Thu, 11 Apr 2024 04:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="er5LZgN/" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 B277C13BC10; Thu, 11 Apr 2024 04:15:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712808912; cv=none; b=WH3xdjiuGlF5fjf/ga6R3HKZTMahTyZ22PE0IJZDCr5FDYeJrj/UPSA1eWu5ibkq0/STimnr01ymlcoBzcAidvsO1pMZ/JxPiw7rlLzwgfW7BZnV+SQ9zllO3bOxfHSj6wbIK8jj7caVkIKRY5gCzTVJtNY6TRwhuuv70wXKnQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712808912; c=relaxed/simple; bh=XpV+R2c0z4CAA3E0iveJbJWN8/bqkAicQ1JKilviGHQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LSEN1SEQdc3VqMC9k0JynMCJ4mjAvsoMFTe+/GFyIYeo2V3HPl+fm33FVfcsdUfu0eKHXIch1RIK42syrdhADcjKsyq/H2QsrisIASmm4iunx/ZZ385q4J928Eg7QYPfR53mIFQeRIj1EVwhdXfuAdrNFEg7csKw81p1F1kKSEU= 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=er5LZgN/; arc=none smtp.client-ip=198.175.65.17 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712808911; x=1744344911; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XpV+R2c0z4CAA3E0iveJbJWN8/bqkAicQ1JKilviGHQ=; b=er5LZgN/ICZVP9gU2hYOig7Y9Afkgty1e7WTZXb3ao/rhm45R2+5aYFE g1ceI/0PdkZBjPJLRhPyB25FRBccV66TYNSAVfUbK2l/25oZm1de30P3Z 3dUSRUrCKvklRf8xP0/13VgJQWH0JEPQaR01FMx1BI741PzmbLEhn/ale etQ3/yZIEPdV9y7W5QyeuH02KBV2gXk9ioPm0bARsAnkaQn+OpQ/7hdTq xAwmDJ49pI1bqCkH8Q0Sb1N0g9+0ouj1HRqKJQARRDu2Qq3GxT3qqf2Zg DVzx4ppGbe4VikPNqZahR8FkJzqgCjVFRCyqOFJD0yQAJvSElxYpaWwbb g==; X-CSE-ConnectionGUID: P9vKhGugRSasow9Xa9nW5Q== X-CSE-MsgGUID: qts77Fi5Rk2yZz0cXBAPRQ== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="8310330" X-IronPort-AV: E=Sophos;i="6.07,192,1708416000"; d="scan'208";a="8310330" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 21:15:10 -0700 X-CSE-ConnectionGUID: nHvTGs0qTWW7RD+6h+qcVA== X-CSE-MsgGUID: yYu7QXkYQoKNkQiTLPtS6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,192,1708416000"; d="scan'208";a="25259613" Received: from lkp-server01.sh.intel.com (HELO e61807b1d151) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 10 Apr 2024 21:15:05 -0700 Received: from kbuild by e61807b1d151 with local (Exim 4.96) (envelope-from ) id 1rulq3-0008Cq-0S; Thu, 11 Apr 2024 04:15:03 +0000 Date: Thu, 11 Apr 2024 12:14:10 +0800 From: kernel test robot To: Inochi Amaoto , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v7 3/3] dmaengine: add driver for Sophgo CV18XX/SG200X dmamux Message-ID: <202404111148.YVXpdPke-lkp@intel.com> References: 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: Hi Inochi, kernel test robot noticed the following build warnings: [auto build test WARNING on vkoul-dmaengine/next] [also build test WARNING on robh/for-next krzk-dt/for-next linus/master v6.9-rc3 next-20240410] [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/Inochi-Amaoto/dt-bindings-dmaengine-Add-dma-multiplexer-for-CV18XX-SG200X-series-SoC/20240410-092207 base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next patch link: https://lore.kernel.org/r/IA1PR20MB495310B8E4D7A6705A112004BB062%40IA1PR20MB4953.namprd20.prod.outlook.com patch subject: [PATCH v7 3/3] dmaengine: add driver for Sophgo CV18XX/SG200X dmamux config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20240411/202404111148.YVXpdPke-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8b3b4a92adee40483c27f26c478a384cd69c6f05) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240411/202404111148.YVXpdPke-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/202404111148.YVXpdPke-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/dma/cv1800-dmamux.c:8: In file included from include/linux/of_dma.h:14: In file included from include/linux/dmaengine.h:12: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:2208: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ >> drivers/dma/cv1800-dmamux.c:191:22: warning: unused variable 'dma_master' [-Wunused-variable] 191 | struct device_node *dma_master; | ^~~~~~~~~~ 6 warnings generated. vim +/dma_master +191 drivers/dma/cv1800-dmamux.c 183 184 static int cv1800_dmamux_probe(struct platform_device *pdev) 185 { 186 struct device *dev = &pdev->dev; 187 struct device_node *mux_node = dev->of_node; 188 struct cv1800_dmamux_data *data; 189 struct cv1800_dmamux_map *tmp; 190 struct device *parent = dev->parent; > 191 struct device_node *dma_master; 192 struct regmap *regmap = NULL; 193 unsigned int i; 194 195 if (!parent) 196 return -ENODEV; 197 198 regmap = device_node_to_regmap(parent->of_node); 199 if (IS_ERR(regmap)) 200 return PTR_ERR(regmap); 201 202 data = devm_kmalloc(dev, sizeof(*data), GFP_KERNEL); 203 if (!data) 204 return -ENOMEM; 205 206 spin_lock_init(&data->lock); 207 init_llist_head(&data->free_maps); 208 209 for (i = 0; i <= MAX_DMA_CH_ID; i++) { 210 tmp = devm_kmalloc(dev, sizeof(*tmp), GFP_KERNEL); 211 if (!tmp) { 212 /* It is OK for not allocating all channel */ 213 dev_warn(dev, "can not allocate channel %u\n", i); 214 continue; 215 } 216 217 init_llist_node(&tmp->node); 218 tmp->channel = i; 219 llist_add(&tmp->node, &data->free_maps); 220 } 221 222 /* if no channel is allocated, the probe must fail */ 223 if (llist_empty(&data->free_maps)) 224 return -ENOMEM; 225 226 data->regmap = regmap; 227 data->dmarouter.dev = dev; 228 data->dmarouter.route_free = cv1800_dmamux_free; 229 230 platform_set_drvdata(pdev, data); 231 232 return of_dma_router_register(mux_node, 233 cv1800_dmamux_route_allocate, 234 &data->dmarouter); 235 } 236 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki