All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-block:remove-dma-mask-indirection 2/2] drivers/usb/musb/omap2430.c:326:22: warning: assignment to 'u64' {aka 'long long unsigned int'} from 'u64 *' {aka 'long long unsigned int *'} makes integer from pointer without a cast
@ 2020-03-11 19:02 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-11 19:02 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/block.git remove-dma-mask-indirection
head:   7f0f0d04b7c2d957bee8220cf37362ed7b956a3b
commit: 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b [2/2] device.h: make dma_mask a scalar instead of a pointer
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/usb/musb/omap2430.c: In function 'omap2430_probe':
>> drivers/usb/musb/omap2430.c:326:22: warning: assignment to 'u64' {aka 'long long unsigned int'} from 'u64 *' {aka 'long long unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
     326 |  musb->dev.dma_mask  = &omap2430_dmamask;
         |                      ^

vim +326 drivers/usb/musb/omap2430.c

dc09886bfa781e Felipe Balbi              2010-12-01  298  
41ac7b3ab7fe1d Bill Pemberton            2012-11-19  299  static int omap2430_probe(struct platform_device *pdev)
dc09886bfa781e Felipe Balbi              2010-12-01  300  {
c1f01be4060b6f Kishon Vijay Abraham I    2013-07-17  301  	struct resource			musb_resources[3];
c1a7d67c190134 Jingoo Han                2013-07-30  302  	struct musb_hdrc_platform_data	*pdata = dev_get_platdata(&pdev->dev);
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  303  	struct omap_musb_board_data	*data;
dc09886bfa781e Felipe Balbi              2010-12-01  304  	struct platform_device		*musb;
a3cee12aa9129b Felipe Balbi              2010-12-02  305  	struct omap2430_glue		*glue;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  306  	struct device_node		*np = pdev->dev.of_node;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  307  	struct musb_hdrc_config		*config;
5ee1787e5efb9b Johan Hovold              2018-04-18  308  	struct device_node		*control_node;
5ee1787e5efb9b Johan Hovold              2018-04-18  309  	struct platform_device		*control_pdev;
606bf4d5d63078 Tony Lindgren             2015-02-04  310  	int				ret = -ENOMEM, val;
dc09886bfa781e Felipe Balbi              2010-12-01  311  
5ee1787e5efb9b Johan Hovold              2018-04-18  312  	if (!np)
5ee1787e5efb9b Johan Hovold              2018-04-18  313  		return -ENODEV;
5ee1787e5efb9b Johan Hovold              2018-04-18  314  
b1183c242a6076 Kishon Vijay Abraham I    2012-06-22  315  	glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL);
af1bdfc999e769 Peter Chen                2014-10-14  316  	if (!glue)
a3cee12aa9129b Felipe Balbi              2010-12-02  317  		goto err0;
a3cee12aa9129b Felipe Balbi              2010-12-02  318  
2f771164255985 Sebastian Andrzej Siewior 2012-10-31  319  	musb = platform_device_alloc("musb-hdrc", PLATFORM_DEVID_AUTO);
dc09886bfa781e Felipe Balbi              2010-12-01  320  	if (!musb) {
dc09886bfa781e Felipe Balbi              2010-12-01  321  		dev_err(&pdev->dev, "failed to allocate musb device\n");
2f771164255985 Sebastian Andrzej Siewior 2012-10-31  322  		goto err0;
dc09886bfa781e Felipe Balbi              2010-12-01  323  	}
dc09886bfa781e Felipe Balbi              2010-12-01  324  
dc09886bfa781e Felipe Balbi              2010-12-01  325  	musb->dev.parent		= &pdev->dev;
dc09886bfa781e Felipe Balbi              2010-12-01 @326  	musb->dev.dma_mask		= &omap2430_dmamask;
dc09886bfa781e Felipe Balbi              2010-12-01  327  	musb->dev.coherent_dma_mask	= omap2430_dmamask;
dc09886bfa781e Felipe Balbi              2010-12-01  328  
a3cee12aa9129b Felipe Balbi              2010-12-02  329  	glue->dev			= &pdev->dev;
a3cee12aa9129b Felipe Balbi              2010-12-02  330  	glue->musb			= musb;
8055555fc4590f Tony Lindgren             2015-11-30  331  	glue->status			= MUSB_UNKNOWN;
8934d3e4d0e7ae Roger Quadros             2013-10-03  332  	glue->control_otghs = ERR_PTR(-ENODEV);
a3cee12aa9129b Felipe Balbi              2010-12-02  333  
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  334  	pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
af1bdfc999e769 Peter Chen                2014-10-14  335  	if (!pdata)
2f771164255985 Sebastian Andrzej Siewior 2012-10-31  336  		goto err2;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  337  
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  338  	data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
af1bdfc999e769 Peter Chen                2014-10-14  339  	if (!data)
2f771164255985 Sebastian Andrzej Siewior 2012-10-31  340  		goto err2;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  341  
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  342  	config = devm_kzalloc(&pdev->dev, sizeof(*config), GFP_KERNEL);
af1bdfc999e769 Peter Chen                2014-10-14  343  	if (!config)
2f771164255985 Sebastian Andrzej Siewior 2012-10-31  344  		goto err2;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  345  
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  346  	of_property_read_u32(np, "mode", (u32 *)&pdata->mode);
eee44da0453cfe Kishon Vijay Abraham I    2013-03-07  347  	of_property_read_u32(np, "interface-type",
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  348  			(u32 *)&data->interface_type);
eee44da0453cfe Kishon Vijay Abraham I    2013-03-07  349  	of_property_read_u32(np, "num-eps", (u32 *)&config->num_eps);
eee44da0453cfe Kishon Vijay Abraham I    2013-03-07  350  	of_property_read_u32(np, "ram-bits", (u32 *)&config->ram_bits);
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  351  	of_property_read_u32(np, "power", (u32 *)&pdata->power);
606bf4d5d63078 Tony Lindgren             2015-02-04  352  
606bf4d5d63078 Tony Lindgren             2015-02-04  353  	ret = of_property_read_u32(np, "multipoint", &val);
606bf4d5d63078 Tony Lindgren             2015-02-04  354  	if (!ret && val)
606bf4d5d63078 Tony Lindgren             2015-02-04  355  		config->multipoint = true;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  356  
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  357  	pdata->board_data	= data;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  358  	pdata->config		= config;
00a0b1d58af873 Kishon Vijay Abraham I    2012-09-11  359  
8934d3e4d0e7ae Roger Quadros             2013-10-03  360  	control_node = of_parse_phandle(np, "ctrl-module", 0);
8934d3e4d0e7ae Roger Quadros             2013-10-03  361  	if (control_node) {
8934d3e4d0e7ae Roger Quadros             2013-10-03  362  		control_pdev = of_find_device_by_node(control_node);
8934d3e4d0e7ae Roger Quadros             2013-10-03  363  		if (!control_pdev) {
8934d3e4d0e7ae Roger Quadros             2013-10-03  364  			dev_err(&pdev->dev, "Failed to get control device\n");
8934d3e4d0e7ae Roger Quadros             2013-10-03  365  			ret = -EINVAL;
4b7e450fb5cefb Wei Yongjun               2013-04-26  366  			goto err2;
ca784be36cc725 Kishon Vijay Abraham I    2013-01-25  367  		}
8934d3e4d0e7ae Roger Quadros             2013-10-03  368  		glue->control_otghs = &control_pdev->dev;
8934d3e4d0e7ae Roger Quadros             2013-10-03  369  	}
5ee1787e5efb9b Johan Hovold              2018-04-18  370  
f7ec94370f417f Felipe Balbi              2010-12-02  371  	pdata->platform_ops		= &omap2430_ops;
f7ec94370f417f Felipe Balbi              2010-12-02  372  
a3cee12aa9129b Felipe Balbi              2010-12-02  373  	platform_set_drvdata(pdev, glue);
dc09886bfa781e Felipe Balbi              2010-12-01  374  
c9721438c009ad Kishon Vijay Abraham I    2012-06-22  375  	/*
c9721438c009ad Kishon Vijay Abraham I    2012-06-22  376  	 * REVISIT if we ever have two instances of the wrapper, we will be
c9721438c009ad Kishon Vijay Abraham I    2012-06-22  377  	 * in big trouble
c9721438c009ad Kishon Vijay Abraham I    2012-06-22  378  	 */
c9721438c009ad Kishon Vijay Abraham I    2012-06-22  379  	_glue	= glue;
c9721438c009ad Kishon Vijay Abraham I    2012-06-22  380  
1e5acb8d6113a0 Kishon Vijay Abraham I    2012-06-22  381  	INIT_WORK(&glue->omap_musb_mailbox_work, omap_musb_mailbox_work);
1e5acb8d6113a0 Kishon Vijay Abraham I    2012-06-22  382  
3a0ddc714a1b8f Sebastian Andrzej Siewior 2013-06-25  383  	memset(musb_resources, 0x00, sizeof(*musb_resources) *
09fc7d22b02469 Felipe Balbi              2013-04-24  384  			ARRAY_SIZE(musb_resources));
09fc7d22b02469 Felipe Balbi              2013-04-24  385  
09fc7d22b02469 Felipe Balbi              2013-04-24  386  	musb_resources[0].name = pdev->resource[0].name;
09fc7d22b02469 Felipe Balbi              2013-04-24  387  	musb_resources[0].start = pdev->resource[0].start;
09fc7d22b02469 Felipe Balbi              2013-04-24  388  	musb_resources[0].end = pdev->resource[0].end;
09fc7d22b02469 Felipe Balbi              2013-04-24  389  	musb_resources[0].flags = pdev->resource[0].flags;
09fc7d22b02469 Felipe Balbi              2013-04-24  390  
09fc7d22b02469 Felipe Balbi              2013-04-24  391  	musb_resources[1].name = pdev->resource[1].name;
09fc7d22b02469 Felipe Balbi              2013-04-24  392  	musb_resources[1].start = pdev->resource[1].start;
09fc7d22b02469 Felipe Balbi              2013-04-24  393  	musb_resources[1].end = pdev->resource[1].end;
09fc7d22b02469 Felipe Balbi              2013-04-24  394  	musb_resources[1].flags = pdev->resource[1].flags;
09fc7d22b02469 Felipe Balbi              2013-04-24  395  
c1f01be4060b6f Kishon Vijay Abraham I    2013-07-17  396  	musb_resources[2].name = pdev->resource[2].name;
c1f01be4060b6f Kishon Vijay Abraham I    2013-07-17  397  	musb_resources[2].start = pdev->resource[2].start;
c1f01be4060b6f Kishon Vijay Abraham I    2013-07-17  398  	musb_resources[2].end = pdev->resource[2].end;
c1f01be4060b6f Kishon Vijay Abraham I    2013-07-17  399  	musb_resources[2].flags = pdev->resource[2].flags;
c1f01be4060b6f Kishon Vijay Abraham I    2013-07-17  400  
09fc7d22b02469 Felipe Balbi              2013-04-24  401  	ret = platform_device_add_resources(musb, musb_resources,
09fc7d22b02469 Felipe Balbi              2013-04-24  402  			ARRAY_SIZE(musb_resources));
dc09886bfa781e Felipe Balbi              2010-12-01  403  	if (ret) {
dc09886bfa781e Felipe Balbi              2010-12-01  404  		dev_err(&pdev->dev, "failed to add resources\n");
65b3d52d02a558 B, Ravi                   2012-08-31  405  		goto err2;
dc09886bfa781e Felipe Balbi              2010-12-01  406  	}
dc09886bfa781e Felipe Balbi              2010-12-01  407  
dc09886bfa781e Felipe Balbi              2010-12-01  408  	ret = platform_device_add_data(musb, pdata, sizeof(*pdata));
dc09886bfa781e Felipe Balbi              2010-12-01  409  	if (ret) {
dc09886bfa781e Felipe Balbi              2010-12-01  410  		dev_err(&pdev->dev, "failed to add platform_data\n");
65b3d52d02a558 B, Ravi                   2012-08-31  411  		goto err2;
dc09886bfa781e Felipe Balbi              2010-12-01  412  	}
dc09886bfa781e Felipe Balbi              2010-12-01  413  
87326e858448c4 Tony Lindgren             2016-05-31  414  	pm_runtime_enable(glue->dev);
3006dc8c627d73 Kishon Vijay Abraham I    2012-03-21  415  
dc09886bfa781e Felipe Balbi              2010-12-01  416  	ret = platform_device_add(musb);
dc09886bfa781e Felipe Balbi              2010-12-01  417  	if (ret) {
dc09886bfa781e Felipe Balbi              2010-12-01  418  		dev_err(&pdev->dev, "failed to register musb device\n");
536d599d4a5104 Tony Lindgren             2016-11-16  419  		goto err3;
dc09886bfa781e Felipe Balbi              2010-12-01  420  	}
dc09886bfa781e Felipe Balbi              2010-12-01  421  
207b0e1f1655bd Hema HK                   2011-02-17  422  	return 0;
0349176120aa30 Felipe Balbi              2010-12-02  423  
536d599d4a5104 Tony Lindgren             2016-11-16  424  err3:
536d599d4a5104 Tony Lindgren             2016-11-16  425  	pm_runtime_disable(glue->dev);
536d599d4a5104 Tony Lindgren             2016-11-16  426  
65b3d52d02a558 B, Ravi                   2012-08-31  427  err2:
b1183c242a6076 Kishon Vijay Abraham I    2012-06-22  428  	platform_device_put(musb);
a3cee12aa9129b Felipe Balbi              2010-12-02  429  
dc09886bfa781e Felipe Balbi              2010-12-01  430  err0:
dc09886bfa781e Felipe Balbi              2010-12-01  431  	return ret;
dc09886bfa781e Felipe Balbi              2010-12-01  432  }
dc09886bfa781e Felipe Balbi              2010-12-01  433  

:::::: The code at line 326 was first introduced by commit
:::::: dc09886bfa781e2b442301116c18199519e36f0f usb: musb: split omap2430 to its own platform_driver

:::::: TO: Felipe Balbi <balbi@ti.com>
:::::: CC: Felipe Balbi <balbi@ti.com>

---
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: 49931 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-11 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 19:02 [hch-block:remove-dma-mask-indirection 2/2] drivers/usb/musb/omap2430.c:326:22: warning: assignment to 'u64' {aka 'long long unsigned int'} from 'u64 *' {aka 'long long unsigned int *'} makes integer from pointer without a cast kbuild 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.