Re: [PATCH 3/7] dma: mcf-edma: Add per-channel IRQ naming for debugging

kernel test robot
2025-11-25T12:07:44Z

Hi Jean-Michel,

kernel test robot noticed the following build warnings:

[auto build test WARNING on d13f3ac64efb868d09cb2726b1e84929afe90235]

url: https://github.com/intel-lab-lkp/linux/commits/Jean-Michel-Hautbois/dma-fsl-edma-Add-write-barrier-after-TCD-descriptor-fill/20251124-205625
base: d13f3ac64efb868d09cb2726b1e84929afe90235
patch link: https://lore.kernel.org/r/20251124-dma-coldfire-v1-3-dc8f93185464%40yoseli.org
patch subject: [PATCH 3/7] dma: mcf-edma: Add per-channel IRQ naming for debugging
config: x86_64-buildonly-randconfig-004-20251125 (https://download.01.org/0day-ci/archive/20251125/202511251902.QUkQzBbn-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251125/202511251902.QUkQzBbn-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511251902.QUkQzBbn-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/dma/mcf-edma-main.c:86:18: warning: format specifies type 'int' but the argument has type 'resource_size_t' (aka 'unsigned long long') [-Wformat]
86 | "eDMA-%d", i - res->start);
| ~~ ^~~~~~~~~~~~~~
| %llu
drivers/dma/mcf-edma-main.c:100:18: warning: format specifies type 'int' but the argument has type 'resource_size_t' (aka 'unsigned long long') [-Wformat]
100 | "eDMA-%d", 16 + i - res->start);
| ~~ ^~~~~~~~~~~~~~~~~~~
| %llu
2 warnings generated.

vim +86 drivers/dma/mcf-edma-main.c

72
73 static int mcf_edma_irq_init(struct platform_device *pdev,
74 struct fsl_edma_engine *mcf_edma)
75 {
76 int ret = 0, i;
77 struct resource *res;
78
79 res = platform_get_resource_byname(pdev,
80 IORESOURCE_IRQ, "edma-tx-00-15");
81 if (!res)
82 return -1;
83
84 for (ret = 0, i = res->start; i <= res->end; ++i) {
85 char *irq_name = devm_kasprintf(&pdev->dev, GFP_KERNEL,
> 86 "eDMA-%d", i - res->start);
87
88 ret |= request_irq(i, mcf_edma_tx_handler, 0, irq_name, mcf_edma);
89 }
90 if (ret)
91 return ret;
92
93 res = platform_get_resource_byname(pdev,
94 IORESOURCE_IRQ, "edma-tx-16-55");
95 if (!res)
96 return -1;
97
98 for (ret = 0, i = res->start; i <= res->end; ++i) {
99 char *irq_name = devm_kasprintf(&pdev->dev, GFP_KERNEL,
100 "eDMA-%d", 16 + i - res->start);
101
102 ret |= request_irq(i, mcf_edma_tx_handler, 0, irq_name, mcf_edma);
103 }
104 if (ret)
105 return ret;
106
107 ret = platform_get_irq_byname(pdev, "edma-tx-56-63");
108 if (ret != -ENXIO) {
109 ret = request_irq(ret, mcf_edma_tx_handler,
110 0, "eDMA-tx-56", mcf_edma);
111 if (ret)
112 return ret;
113 }
114
115 ret = platform_get_irq_byname(pdev, "edma-err");
116 if (ret != -ENXIO) {
117 ret = request_irq(ret, mcf_edma_err_handler,
118 0, "eDMA-err", mcf_edma);
119 if (ret)
120 return ret;
121 }
122
123 return 0;
124 }
125

--
0-DAY CI Kernel Test Service