All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
@ 2020-11-14 18:01 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-11-14 18:01 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 7029 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Krzysztof Kozlowski <krzk@kernel.org>
CC: Ulf Hansson <ulf.hansson@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
date:   10 weeks ago
:::::: branch date: 18 hours ago
:::::: commit date: 10 weeks ago
config: arm64-randconfig-m031-20201113 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer

vim +177 drivers/mmc/host/tmio_mmc.c

4a48998fa16121d Ian Molton            2008-07-15  118  
c3be1efd41a97f9 Bill Pemberton        2012-11-19  119  static int tmio_mmc_probe(struct platform_device *pdev)
4a48998fa16121d Ian Molton            2008-07-15  120  {
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  121  	const struct mfd_cell *cell = mfd_get_cell(pdev);
f0e46cc4971f6be Philipp Zabel         2009-06-04  122  	struct tmio_mmc_data *pdata;
4a48998fa16121d Ian Molton            2008-07-15  123  	struct tmio_mmc_host *host;
3b159a6e955c8d4 Kuninori Morimoto     2013-11-20  124  	struct resource *res;
8e7bfdb37ac001c Magnus Damm           2011-05-06  125  	int ret = -EINVAL, irq;
4a48998fa16121d Ian Molton            2008-07-15  126  
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  127  	if (pdev->num_resources != 2)
4a48998fa16121d Ian Molton            2008-07-15  128  		goto out;
4a48998fa16121d Ian Molton            2008-07-15  129  
ec71974f2a3ae05 Samuel Ortiz          2011-04-06  130  	pdata = pdev->dev.platform_data;
d6c9b5ed37c2650 Philipp Zabel         2009-06-04  131  	if (!pdata || !pdata->hclk)
f0e46cc4971f6be Philipp Zabel         2009-06-04  132  		goto out;
d6c9b5ed37c2650 Philipp Zabel         2009-06-04  133  
8e7bfdb37ac001c Magnus Damm           2011-05-06  134  	irq = platform_get_irq(pdev, 0);
8e7bfdb37ac001c Magnus Damm           2011-05-06  135  	if (irq < 0) {
8e7bfdb37ac001c Magnus Damm           2011-05-06  136  		ret = irq;
8e7bfdb37ac001c Magnus Damm           2011-05-06  137  		goto out;
8e7bfdb37ac001c Magnus Damm           2011-05-06  138  	}
8e7bfdb37ac001c Magnus Damm           2011-05-06  139  
4a48998fa16121d Ian Molton            2008-07-15  140  	/* Tell the MFD core we are ready to be enabled */
4a48998fa16121d Ian Molton            2008-07-15  141  	if (cell->enable) {
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  142  		ret = cell->enable(pdev);
4a48998fa16121d Ian Molton            2008-07-15  143  		if (ret)
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  144  			goto out;
4a48998fa16121d Ian Molton            2008-07-15  145  	}
4a48998fa16121d Ian Molton            2008-07-15  146  
3b159a6e955c8d4 Kuninori Morimoto     2013-11-20  147  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
25db67e2ce2fdf4 Ian Molton            2015-04-27  148  	if (!res) {
25db67e2ce2fdf4 Ian Molton            2015-04-27  149  		ret = -EINVAL;
25db67e2ce2fdf4 Ian Molton            2015-04-27  150  		goto cell_disable;
25db67e2ce2fdf4 Ian Molton            2015-04-27  151  	}
3b159a6e955c8d4 Kuninori Morimoto     2013-11-20  152  
b21fc294387e4cf Masahiro Yamada       2018-01-18  153  	host = tmio_mmc_host_alloc(pdev, pdata);
8d09a13386ccdee Masahiro Yamada       2018-01-18  154  	if (IS_ERR(host)) {
8d09a13386ccdee Masahiro Yamada       2018-01-18  155  		ret = PTR_ERR(host);
7ee422dc6e947fc Magnus Damm           2010-02-17  156  		goto cell_disable;
8d09a13386ccdee Masahiro Yamada       2018-01-18  157  	}
4a48998fa16121d Ian Molton            2008-07-15  158  
7445bf9e6f4e5d7 Kuninori Morimoto     2015-01-13  159  	/* SD control register space size is 0x200, 0x400 for bus_shift=1 */
7445bf9e6f4e5d7 Kuninori Morimoto     2015-01-13  160  	host->bus_shift = resource_size(res) >> 10;
0196c8db8363f76 Masahiro Yamada       2018-08-23  161  	host->set_clock = tmio_mmc_set_clock;
acb9fce7309a38d Masahiro Yamada       2018-10-10  162  	host->reset = tmio_mmc_reset;
7445bf9e6f4e5d7 Kuninori Morimoto     2015-01-13  163  
b21fc294387e4cf Masahiro Yamada       2018-01-18  164  	host->mmc->f_max = pdata->hclk;
b21fc294387e4cf Masahiro Yamada       2018-01-18  165  	host->mmc->f_min = pdata->hclk / 512;
b21fc294387e4cf Masahiro Yamada       2018-01-18  166  
bc45719c1b1a560 Masahiro Yamada       2018-01-18  167  	ret = tmio_mmc_host_probe(host);
94b110aff8679b1 Kuninori Morimoto     2015-01-13  168  	if (ret)
94b110aff8679b1 Kuninori Morimoto     2015-01-13  169  		goto host_free;
94b110aff8679b1 Kuninori Morimoto     2015-01-13  170  
de501af98dfab9c Ian Molton            2015-04-27  171  	ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
de501af98dfab9c Ian Molton            2015-04-27  172  			       IRQF_TRIGGER_FALLING,
d9618e9f1a057ef Yong Zhang            2011-09-22  173  			       dev_name(&pdev->dev), host);
8e7bfdb37ac001c Magnus Damm           2011-05-06  174  	if (ret)
8e7bfdb37ac001c Magnus Damm           2011-05-06  175  		goto host_remove;
8e7bfdb37ac001c Magnus Damm           2011-05-06  176  
311f3ac76826bfd Guennadi Liakhovetski 2010-05-19 @177  	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
8e7bfdb37ac001c Magnus Damm           2011-05-06  178  		(unsigned long)host->ctl, irq);
4a48998fa16121d Ian Molton            2008-07-15  179  
4a48998fa16121d Ian Molton            2008-07-15  180  	return 0;
4a48998fa16121d Ian Molton            2008-07-15  181  
8e7bfdb37ac001c Magnus Damm           2011-05-06  182  host_remove:
8e7bfdb37ac001c Magnus Damm           2011-05-06  183  	tmio_mmc_host_remove(host);
94b110aff8679b1 Kuninori Morimoto     2015-01-13  184  host_free:
94b110aff8679b1 Kuninori Morimoto     2015-01-13  185  	tmio_mmc_host_free(host);
7ee422dc6e947fc Magnus Damm           2010-02-17  186  cell_disable:
7ee422dc6e947fc Magnus Damm           2010-02-17  187  	if (cell->disable)
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  188  		cell->disable(pdev);
4a48998fa16121d Ian Molton            2008-07-15  189  out:
4a48998fa16121d Ian Molton            2008-07-15  190  	return ret;
4a48998fa16121d Ian Molton            2008-07-15  191  }
4a48998fa16121d Ian Molton            2008-07-15  192  

:::::: The code at line 177 was first introduced by commit
:::::: 311f3ac76826bfd8ed6213ded91ec947df164def mmc: add DMA support to tmio_mmc driver, when used on SuperH

:::::: TO: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
:::::: CC: Paul Mundt <lethal@linux-sh.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37604 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
  2020-11-16  9:22 ` Dan Carpenter
@ 2020-11-16 16:43   ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2020-11-16 16:43 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: kbuild, lkp, kbuild-all, linux-kernel, Ulf Hansson

On Mon, Nov 16, 2020 at 12:22:36PM +0300, Dan Carpenter wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
> commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
> config: arm64-randconfig-m031-20201113 (attached as .config)
> compiler: aarch64-linux-gcc (GCC) 9.3.0
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> 
> smatch warnings:
> drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
> 
> vim +177 drivers/mmc/host/tmio_mmc.c
> 
> 94b110aff8679b1 Kuninori Morimoto     2015-01-13  170  
> de501af98dfab9c Ian Molton            2015-04-27  171  	ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
> de501af98dfab9c Ian Molton            2015-04-27  172  			       IRQF_TRIGGER_FALLING,
> d9618e9f1a057ef Yong Zhang            2011-09-22  173  			       dev_name(&pdev->dev), host);
> 8e7bfdb37ac001c Magnus Damm           2011-05-06  174  	if (ret)
> 8e7bfdb37ac001c Magnus Damm           2011-05-06  175  		goto host_remove;
> 8e7bfdb37ac001c Magnus Damm           2011-05-06  176  
> 311f3ac76826bfd Guennadi Liakhovetski 2010-05-19 @177  	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
>                                                                        ^^^^^^^
> These are supposed to be %p so that the kernel can hide them and avoid
> showing kernel pointers to user space.

Thanks, I sent a patch.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
@ 2020-11-16 16:43   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2020-11-16 16:43 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1706 bytes --]

On Mon, Nov 16, 2020 at 12:22:36PM +0300, Dan Carpenter wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
> commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
> config: arm64-randconfig-m031-20201113 (attached as .config)
> compiler: aarch64-linux-gcc (GCC) 9.3.0
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> 
> smatch warnings:
> drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
> 
> vim +177 drivers/mmc/host/tmio_mmc.c
> 
> 94b110aff8679b1 Kuninori Morimoto     2015-01-13  170  
> de501af98dfab9c Ian Molton            2015-04-27  171  	ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
> de501af98dfab9c Ian Molton            2015-04-27  172  			       IRQF_TRIGGER_FALLING,
> d9618e9f1a057ef Yong Zhang            2011-09-22  173  			       dev_name(&pdev->dev), host);
> 8e7bfdb37ac001c Magnus Damm           2011-05-06  174  	if (ret)
> 8e7bfdb37ac001c Magnus Damm           2011-05-06  175  		goto host_remove;
> 8e7bfdb37ac001c Magnus Damm           2011-05-06  176  
> 311f3ac76826bfd Guennadi Liakhovetski 2010-05-19 @177  	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
>                                                                        ^^^^^^^
> These are supposed to be %p so that the kernel can hide them and avoid
> showing kernel pointers to user space.

Thanks, I sent a patch.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
@ 2020-11-16  9:22 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2020-11-16  9:22 UTC (permalink / raw)
  To: kbuild, Krzysztof Kozlowski; +Cc: lkp, kbuild-all, linux-kernel, Ulf Hansson

[-- Attachment #1: Type: text/plain, Size: 2598 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
config: arm64-randconfig-m031-20201113 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer

vim +177 drivers/mmc/host/tmio_mmc.c

94b110aff8679b1 Kuninori Morimoto     2015-01-13  170  
de501af98dfab9c Ian Molton            2015-04-27  171  	ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
de501af98dfab9c Ian Molton            2015-04-27  172  			       IRQF_TRIGGER_FALLING,
d9618e9f1a057ef Yong Zhang            2011-09-22  173  			       dev_name(&pdev->dev), host);
8e7bfdb37ac001c Magnus Damm           2011-05-06  174  	if (ret)
8e7bfdb37ac001c Magnus Damm           2011-05-06  175  		goto host_remove;
8e7bfdb37ac001c Magnus Damm           2011-05-06  176  
311f3ac76826bfd Guennadi Liakhovetski 2010-05-19 @177  	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
                                                                       ^^^^^^^
These are supposed to be %p so that the kernel can hide them and avoid
showing kernel pointers to user space.

8e7bfdb37ac001c Magnus Damm           2011-05-06  178  		(unsigned long)host->ctl, irq);
4a48998fa16121d Ian Molton            2008-07-15  179  
4a48998fa16121d Ian Molton            2008-07-15  180  	return 0;
4a48998fa16121d Ian Molton            2008-07-15  181  
8e7bfdb37ac001c Magnus Damm           2011-05-06  182  host_remove:
8e7bfdb37ac001c Magnus Damm           2011-05-06  183  	tmio_mmc_host_remove(host);
94b110aff8679b1 Kuninori Morimoto     2015-01-13  184  host_free:
94b110aff8679b1 Kuninori Morimoto     2015-01-13  185  	tmio_mmc_host_free(host);
7ee422dc6e947fc Magnus Damm           2010-02-17  186  cell_disable:
7ee422dc6e947fc Magnus Damm           2010-02-17  187  	if (cell->disable)
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  188  		cell->disable(pdev);
4a48998fa16121d Ian Molton            2008-07-15  189  out:
4a48998fa16121d Ian Molton            2008-07-15  190  	return ret;
4a48998fa16121d Ian Molton            2008-07-15  191  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37604 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
@ 2020-11-16  9:22 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2020-11-16  9:22 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
config: arm64-randconfig-m031-20201113 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer

vim +177 drivers/mmc/host/tmio_mmc.c

94b110aff8679b1 Kuninori Morimoto     2015-01-13  170  
de501af98dfab9c Ian Molton            2015-04-27  171  	ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
de501af98dfab9c Ian Molton            2015-04-27  172  			       IRQF_TRIGGER_FALLING,
d9618e9f1a057ef Yong Zhang            2011-09-22  173  			       dev_name(&pdev->dev), host);
8e7bfdb37ac001c Magnus Damm           2011-05-06  174  	if (ret)
8e7bfdb37ac001c Magnus Damm           2011-05-06  175  		goto host_remove;
8e7bfdb37ac001c Magnus Damm           2011-05-06  176  
311f3ac76826bfd Guennadi Liakhovetski 2010-05-19 @177  	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
                                                                       ^^^^^^^
These are supposed to be %p so that the kernel can hide them and avoid
showing kernel pointers to user space.

8e7bfdb37ac001c Magnus Damm           2011-05-06  178  		(unsigned long)host->ctl, irq);
4a48998fa16121d Ian Molton            2008-07-15  179  
4a48998fa16121d Ian Molton            2008-07-15  180  	return 0;
4a48998fa16121d Ian Molton            2008-07-15  181  
8e7bfdb37ac001c Magnus Damm           2011-05-06  182  host_remove:
8e7bfdb37ac001c Magnus Damm           2011-05-06  183  	tmio_mmc_host_remove(host);
94b110aff8679b1 Kuninori Morimoto     2015-01-13  184  host_free:
94b110aff8679b1 Kuninori Morimoto     2015-01-13  185  	tmio_mmc_host_free(host);
7ee422dc6e947fc Magnus Damm           2010-02-17  186  cell_disable:
7ee422dc6e947fc Magnus Damm           2010-02-17  187  	if (cell->disable)
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  188  		cell->disable(pdev);
4a48998fa16121d Ian Molton            2008-07-15  189  out:
4a48998fa16121d Ian Molton            2008-07-15  190  	return ret;
4a48998fa16121d Ian Molton            2008-07-15  191  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37604 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
@ 2020-11-16  9:22 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2020-11-16  9:22 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
config: arm64-randconfig-m031-20201113 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer

vim +177 drivers/mmc/host/tmio_mmc.c

94b110aff8679b1 Kuninori Morimoto     2015-01-13  170  
de501af98dfab9c Ian Molton            2015-04-27  171  	ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
de501af98dfab9c Ian Molton            2015-04-27  172  			       IRQF_TRIGGER_FALLING,
d9618e9f1a057ef Yong Zhang            2011-09-22  173  			       dev_name(&pdev->dev), host);
8e7bfdb37ac001c Magnus Damm           2011-05-06  174  	if (ret)
8e7bfdb37ac001c Magnus Damm           2011-05-06  175  		goto host_remove;
8e7bfdb37ac001c Magnus Damm           2011-05-06  176  
311f3ac76826bfd Guennadi Liakhovetski 2010-05-19 @177  	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
                                                                       ^^^^^^^
These are supposed to be %p so that the kernel can hide them and avoid
showing kernel pointers to user space.

8e7bfdb37ac001c Magnus Damm           2011-05-06  178  		(unsigned long)host->ctl, irq);
4a48998fa16121d Ian Molton            2008-07-15  179  
4a48998fa16121d Ian Molton            2008-07-15  180  	return 0;
4a48998fa16121d Ian Molton            2008-07-15  181  
8e7bfdb37ac001c Magnus Damm           2011-05-06  182  host_remove:
8e7bfdb37ac001c Magnus Damm           2011-05-06  183  	tmio_mmc_host_remove(host);
94b110aff8679b1 Kuninori Morimoto     2015-01-13  184  host_free:
94b110aff8679b1 Kuninori Morimoto     2015-01-13  185  	tmio_mmc_host_free(host);
7ee422dc6e947fc Magnus Damm           2010-02-17  186  cell_disable:
7ee422dc6e947fc Magnus Damm           2010-02-17  187  	if (cell->disable)
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  188  		cell->disable(pdev);
4a48998fa16121d Ian Molton            2008-07-15  189  out:
4a48998fa16121d Ian Molton            2008-07-15  190  	return ret;
4a48998fa16121d Ian Molton            2008-07-15  191  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37604 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer
@ 2020-10-19 11:43 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-10-19 11:43 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 7023 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Krzysztof Kozlowski <krzk@kernel.org>
CC: Ulf Hansson <ulf.hansson@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7cf726a59435301046250c42131554d9ccc566b8
commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
date:   6 weeks ago
:::::: branch date: 14 hours ago
:::::: commit date: 6 weeks ago
config: ia64-randconfig-m031-20201019 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer

vim +177 drivers/mmc/host/tmio_mmc.c

4a48998fa16121d Ian Molton            2008-07-15  118  
c3be1efd41a97f9 Bill Pemberton        2012-11-19  119  static int tmio_mmc_probe(struct platform_device *pdev)
4a48998fa16121d Ian Molton            2008-07-15  120  {
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  121  	const struct mfd_cell *cell = mfd_get_cell(pdev);
f0e46cc4971f6be Philipp Zabel         2009-06-04  122  	struct tmio_mmc_data *pdata;
4a48998fa16121d Ian Molton            2008-07-15  123  	struct tmio_mmc_host *host;
3b159a6e955c8d4 Kuninori Morimoto     2013-11-20  124  	struct resource *res;
8e7bfdb37ac001c Magnus Damm           2011-05-06  125  	int ret = -EINVAL, irq;
4a48998fa16121d Ian Molton            2008-07-15  126  
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  127  	if (pdev->num_resources != 2)
4a48998fa16121d Ian Molton            2008-07-15  128  		goto out;
4a48998fa16121d Ian Molton            2008-07-15  129  
ec71974f2a3ae05 Samuel Ortiz          2011-04-06  130  	pdata = pdev->dev.platform_data;
d6c9b5ed37c2650 Philipp Zabel         2009-06-04  131  	if (!pdata || !pdata->hclk)
f0e46cc4971f6be Philipp Zabel         2009-06-04  132  		goto out;
d6c9b5ed37c2650 Philipp Zabel         2009-06-04  133  
8e7bfdb37ac001c Magnus Damm           2011-05-06  134  	irq = platform_get_irq(pdev, 0);
8e7bfdb37ac001c Magnus Damm           2011-05-06  135  	if (irq < 0) {
8e7bfdb37ac001c Magnus Damm           2011-05-06  136  		ret = irq;
8e7bfdb37ac001c Magnus Damm           2011-05-06  137  		goto out;
8e7bfdb37ac001c Magnus Damm           2011-05-06  138  	}
8e7bfdb37ac001c Magnus Damm           2011-05-06  139  
4a48998fa16121d Ian Molton            2008-07-15  140  	/* Tell the MFD core we are ready to be enabled */
4a48998fa16121d Ian Molton            2008-07-15  141  	if (cell->enable) {
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  142  		ret = cell->enable(pdev);
4a48998fa16121d Ian Molton            2008-07-15  143  		if (ret)
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  144  			goto out;
4a48998fa16121d Ian Molton            2008-07-15  145  	}
4a48998fa16121d Ian Molton            2008-07-15  146  
3b159a6e955c8d4 Kuninori Morimoto     2013-11-20  147  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
25db67e2ce2fdf4 Ian Molton            2015-04-27  148  	if (!res) {
25db67e2ce2fdf4 Ian Molton            2015-04-27  149  		ret = -EINVAL;
25db67e2ce2fdf4 Ian Molton            2015-04-27  150  		goto cell_disable;
25db67e2ce2fdf4 Ian Molton            2015-04-27  151  	}
3b159a6e955c8d4 Kuninori Morimoto     2013-11-20  152  
b21fc294387e4cf Masahiro Yamada       2018-01-18  153  	host = tmio_mmc_host_alloc(pdev, pdata);
8d09a13386ccdee Masahiro Yamada       2018-01-18  154  	if (IS_ERR(host)) {
8d09a13386ccdee Masahiro Yamada       2018-01-18  155  		ret = PTR_ERR(host);
7ee422dc6e947fc Magnus Damm           2010-02-17  156  		goto cell_disable;
8d09a13386ccdee Masahiro Yamada       2018-01-18  157  	}
4a48998fa16121d Ian Molton            2008-07-15  158  
7445bf9e6f4e5d7 Kuninori Morimoto     2015-01-13  159  	/* SD control register space size is 0x200, 0x400 for bus_shift=1 */
7445bf9e6f4e5d7 Kuninori Morimoto     2015-01-13  160  	host->bus_shift = resource_size(res) >> 10;
0196c8db8363f76 Masahiro Yamada       2018-08-23  161  	host->set_clock = tmio_mmc_set_clock;
acb9fce7309a38d Masahiro Yamada       2018-10-10  162  	host->reset = tmio_mmc_reset;
7445bf9e6f4e5d7 Kuninori Morimoto     2015-01-13  163  
b21fc294387e4cf Masahiro Yamada       2018-01-18  164  	host->mmc->f_max = pdata->hclk;
b21fc294387e4cf Masahiro Yamada       2018-01-18  165  	host->mmc->f_min = pdata->hclk / 512;
b21fc294387e4cf Masahiro Yamada       2018-01-18  166  
bc45719c1b1a560 Masahiro Yamada       2018-01-18  167  	ret = tmio_mmc_host_probe(host);
94b110aff8679b1 Kuninori Morimoto     2015-01-13  168  	if (ret)
94b110aff8679b1 Kuninori Morimoto     2015-01-13  169  		goto host_free;
94b110aff8679b1 Kuninori Morimoto     2015-01-13  170  
de501af98dfab9c Ian Molton            2015-04-27  171  	ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
de501af98dfab9c Ian Molton            2015-04-27  172  			       IRQF_TRIGGER_FALLING,
d9618e9f1a057ef Yong Zhang            2011-09-22  173  			       dev_name(&pdev->dev), host);
8e7bfdb37ac001c Magnus Damm           2011-05-06  174  	if (ret)
8e7bfdb37ac001c Magnus Damm           2011-05-06  175  		goto host_remove;
8e7bfdb37ac001c Magnus Damm           2011-05-06  176  
311f3ac76826bfd Guennadi Liakhovetski 2010-05-19 @177  	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
8e7bfdb37ac001c Magnus Damm           2011-05-06  178  		(unsigned long)host->ctl, irq);
4a48998fa16121d Ian Molton            2008-07-15  179  
4a48998fa16121d Ian Molton            2008-07-15  180  	return 0;
4a48998fa16121d Ian Molton            2008-07-15  181  
8e7bfdb37ac001c Magnus Damm           2011-05-06  182  host_remove:
8e7bfdb37ac001c Magnus Damm           2011-05-06  183  	tmio_mmc_host_remove(host);
94b110aff8679b1 Kuninori Morimoto     2015-01-13  184  host_free:
94b110aff8679b1 Kuninori Morimoto     2015-01-13  185  	tmio_mmc_host_free(host);
7ee422dc6e947fc Magnus Damm           2010-02-17  186  cell_disable:
7ee422dc6e947fc Magnus Damm           2010-02-17  187  	if (cell->disable)
b6147490e6aac82 Guennadi Liakhovetski 2011-03-23  188  		cell->disable(pdev);
4a48998fa16121d Ian Molton            2008-07-15  189  out:
4a48998fa16121d Ian Molton            2008-07-15  190  	return ret;
4a48998fa16121d Ian Molton            2008-07-15  191  }
4a48998fa16121d Ian Molton            2008-07-15  192  

:::::: The code at line 177 was first introduced by commit
:::::: 311f3ac76826bfd8ed6213ded91ec947df164def mmc: add DMA support to tmio_mmc driver, when used on SuperH

:::::: TO: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
:::::: CC: Paul Mundt <lethal@linux-sh.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29900 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-16 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 18:01 drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-11-16  9:22 Dan Carpenter
2020-11-16  9:22 ` Dan Carpenter
2020-11-16  9:22 ` Dan Carpenter
2020-11-16 16:43 ` Krzysztof Kozlowski
2020-11-16 16:43   ` Krzysztof Kozlowski
2020-10-19 11:43 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.