lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202511251608.l7i5CNAr-lkp@intel.com>
Date: Tue, 25 Nov 2025 16:35:43 +0800
From: kernel test robot <lkp@...el.com>
To: Jean-Michel Hautbois <jeanmichel.hautbois@...eli.org>,
	Frank Li <Frank.Li@....com>, Vinod Koul <vkoul@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, Greg Ungerer <gerg@...ux-m68k.org>,
	imx@...ts.linux.dev, dmaengine@...r.kernel.org,
	linux-m68k@...ts.linux-m68k.org, linux-kernel@...r.kernel.org,
	Jean-Michel Hautbois <jeanmichel.hautbois@...eli.org>
Subject: Re: [PATCH 3/7] dma: mcf-edma: Add per-channel IRQ naming for
 debugging

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-002-20251125 (https://download.01.org/0day-ci/archive/20251125/202511251608.l7i5CNAr-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251125/202511251608.l7i5CNAr-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511251608.l7i5CNAr-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/dma/mcf-edma-main.c: In function 'mcf_edma_irq_init':
>> drivers/dma/mcf-edma-main.c:86:56: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
      86 |                                                 "eDMA-%d", i - res->start);
         |                                                       ~^   ~~~~~~~~~~~~~~
         |                                                        |     |
         |                                                        int   resource_size_t {aka long long unsigned int}
         |                                                       %lld
   drivers/dma/mcf-edma-main.c:100:56: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     100 |                                                 "eDMA-%d", 16 + i - res->start);
         |                                                       ~^   ~~~~~~~~~~~~~~~~~~~
         |                                                        |          |
         |                                                        int        resource_size_t {aka long long unsigned int}
         |                                                       %lld


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
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ