[input:next 2293/2295] drivers/spi/spi-pxa2xx-pci.c:245:11: warning: assignment makes pointer from integer without a cast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/dtor/input.git next
head:   5a4cee7b28ed3ce4ce5980503926d5bc23c9c8d1
commit: b426ac0452093da54206e021af72c979d01aa417 [2293/2295] Input: add Apple SPI keyboard and trackpad driver
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.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 b426ac0452093da54206e021af72c979d01aa417
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   drivers/spi/spi-pxa2xx-pci.c: In function 'pxa2xx_spi_pci_probe':
   drivers/spi/spi-pxa2xx-pci.c:245:13: error: implicit declaration of function 'clk_register_fixed_rate'; did you mean 'pci_register_io_range'? [-Werror=implicit-function-declaration]
     ssp->clk = clk_register_fixed_rate(&dev->dev, buf , NULL, 0,
                ^~~~~~~~~~~~~~~~~~~~~~~
                pci_register_io_range
>> drivers/spi/spi-pxa2xx-pci.c:245:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     ssp->clk = clk_register_fixed_rate(&dev->dev, buf , NULL, 0,
              ^
   drivers/spi/spi-pxa2xx-pci.c:260:3: error: implicit declaration of function 'clk_unregister'; did you mean 'class_unregister'? [-Werror=implicit-function-declaration]
      clk_unregister(ssp->clk);
      ^~~~~~~~~~~~~~
      class_unregister
   cc1: some warnings being treated as errors

vim +245 drivers/spi/spi-pxa2xx-pci.c

d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  196  
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  197  static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  198  		const struct pci_device_id *ent)
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  199  {
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  200  	struct platform_device_info pi;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  201  	int ret;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  202  	struct platform_device *pdev;
51eea52d26d4939 drivers/spi/spi-pxa2xx-pci.c Lubomir Rintel            2019-01-16  203  	struct pxa2xx_spi_controller spi_pdata;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  204  	struct ssp_device *ssp;
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  205  	struct pxa_spi_info *c;
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  206  	char buf[40];
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  207  
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  208  	ret = pcim_enable_device(dev);
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  209  	if (ret)
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  210  		return ret;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  211  
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  212  	ret = pcim_iomap_regions(dev, 1 << 0, "PXA2xx SPI");
c13463407794240 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-03-05  213  	if (ret)
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  214  		return ret;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  215  
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  216  	c = &spi_info_configs[ent->driver_data];
743485ea3bee852 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  217  	if (c->setup) {
743485ea3bee852 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  218  		ret = c->setup(dev, c);
743485ea3bee852 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  219  		if (ret)
743485ea3bee852 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  220  			return ret;
b729bf34535ed41 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  221  	}
b729bf34535ed41 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  222  
743485ea3bee852 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  223  	memset(&spi_pdata, 0, sizeof(spi_pdata));
743485ea3bee852 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  224  	spi_pdata.num_chipselect = (c->num_chipselect > 0) ? c->num_chipselect : dev->devfn;
743485ea3bee852 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  225  	spi_pdata.dma_filter = c->dma_filter;
b729bf34535ed41 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  226  	spi_pdata.tx_param = c->tx_param;
b729bf34535ed41 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  227  	spi_pdata.rx_param = c->rx_param;
b729bf34535ed41 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  228  	spi_pdata.enable_dma = c->rx_param && c->tx_param;
37821a82e6789ea drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2019-03-19  229  	spi_pdata.dma_burst_size = c->dma_burst_size ? c->dma_burst_size : 1;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  230  
851bacf5902cad1 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  231  	ssp = &spi_pdata.ssp;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  232  	ssp->phys_base = pci_resource_start(dev, 0);
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  233  	ssp->mmio_base = pcim_iomap_table(dev)[0];
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  234  	ssp->port_id = (c->port_id >= 0) ? c->port_id : dev->devfn;
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  235  	ssp->type = c->type;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  236  
64e02cb0bdfc7ce drivers/spi/spi-pxa2xx-pci.c Jan Kiszka                2017-01-21  237  	pci_set_master(dev);
64e02cb0bdfc7ce drivers/spi/spi-pxa2xx-pci.c Jan Kiszka                2017-01-21  238  
64e02cb0bdfc7ce drivers/spi/spi-pxa2xx-pci.c Jan Kiszka                2017-01-21  239  	ret = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_ALL_TYPES);
64e02cb0bdfc7ce drivers/spi/spi-pxa2xx-pci.c Jan Kiszka                2017-01-21  240  	if (ret < 0)
64e02cb0bdfc7ce drivers/spi/spi-pxa2xx-pci.c Jan Kiszka                2017-01-21  241  		return ret;
64e02cb0bdfc7ce drivers/spi/spi-pxa2xx-pci.c Jan Kiszka                2017-01-21  242  	ssp->irq = pci_irq_vector(dev, 0);
64e02cb0bdfc7ce drivers/spi/spi-pxa2xx-pci.c Jan Kiszka                2017-01-21  243  
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  244  	snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id);
280af2b8eb36746 drivers/spi/spi-pxa2xx-pci.c Stephen Boyd              2016-04-19 @245  	ssp->clk = clk_register_fixed_rate(&dev->dev, buf , NULL, 0,
280af2b8eb36746 drivers/spi/spi-pxa2xx-pci.c Stephen Boyd              2016-04-19  246  					   c->max_clk_rate);
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  247  	 if (IS_ERR(ssp->clk))
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  248  		return PTR_ERR(ssp->clk);
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  249  
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  250  	memset(&pi, 0, sizeof(pi));
b70cd2de0ea85f5 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-08-24  251  	pi.fwnode = dev->dev.fwnode;
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  252  	pi.parent = &dev->dev;
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  253  	pi.name = "pxa2xx-spi";
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  254  	pi.id = ssp->port_id;
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  255  	pi.data = &spi_pdata;
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  256  	pi.size_data = sizeof(spi_pdata);
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  257  
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  258  	pdev = platform_device_register_full(&pi);
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  259  	if (IS_ERR(pdev)) {
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  260  		clk_unregister(ssp->clk);
d77b5382e67d1e1 drivers/spi/spi-pxa2xx-pci.c Wei Yongjun               2013-02-22  261  		return PTR_ERR(pdev);
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  262  	}
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  263  
851bacf5902cad1 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  264  	pci_set_drvdata(dev, pdev);
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  265  
0202775bc3a28f2 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  266  	return 0;
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  267  }
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  268  
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  269  static void pxa2xx_spi_pci_remove(struct pci_dev *dev)
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  270  {
851bacf5902cad1 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  271  	struct platform_device *pdev = pci_get_drvdata(dev);
51eea52d26d4939 drivers/spi/spi-pxa2xx-pci.c Lubomir Rintel            2019-01-16  272  	struct pxa2xx_spi_controller *spi_pdata;
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  273  
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  274  	spi_pdata = dev_get_platdata(&pdev->dev);
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  275  
851bacf5902cad1 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2013-01-07  276  	platform_device_unregister(pdev);
afa93c9017fd48d drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-07-25  277  	clk_unregister(spi_pdata->ssp.clk);
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  278  }
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  279  
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  280  static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
e5262d0568dc9e1 drivers/spi/spi-pxa2xx-pci.c Weike Chen                2014-11-26  281  	{ PCI_VDEVICE(INTEL, 0x0935), PORT_QUARK_X1000 },
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  282  	{ PCI_VDEVICE(INTEL, 0x0f0e), PORT_BYT },
4f4709109ef7e12 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  283  	{ PCI_VDEVICE(INTEL, 0x1194), PORT_MRFLD },
39d36536d4e8946 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  284  	{ PCI_VDEVICE(INTEL, 0x228e), PORT_BSW0 },
39d36536d4e8946 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  285  	{ PCI_VDEVICE(INTEL, 0x2290), PORT_BSW1 },
39d36536d4e8946 drivers/spi/spi-pxa2xx-pci.c Mika Westerberg           2014-08-19  286  	{ PCI_VDEVICE(INTEL, 0x22ac), PORT_BSW2 },
e379d2cd35ca0a9 drivers/spi/spi-pxa2xx-pci.c Andy Shevchenko           2016-07-04  287  	{ PCI_VDEVICE(INTEL, 0x2e6a), PORT_CE4100 },
caba248db286346 drivers/spi/spi-pxa2xx-pci.c Leif Liddy                2016-02-20  288  	{ PCI_VDEVICE(INTEL, 0x9ce6), PORT_LPT },
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  289  	{ },
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  290  };
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  291  MODULE_DEVICE_TABLE(pci, pxa2xx_spi_pci_devices);
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  292  
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  293  static struct pci_driver pxa2xx_spi_pci_driver = {
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  294  	.name           = "pxa2xx_spi_pci",
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  295  	.id_table       = pxa2xx_spi_pci_devices,
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  296  	.probe          = pxa2xx_spi_pci_probe,
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  297  	.remove         = pxa2xx_spi_pci_remove,
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  298  };
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  299  
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  300  module_pci_driver(pxa2xx_spi_pci_driver);
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  301  
d6ba32d5c60f569 drivers/spi/spi-pxa2xx-pci.c Chew, Chiau Ee            2014-04-18  302  MODULE_DESCRIPTION("CE4100/LPSS PCI-SPI glue code for PXA's driver");
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  303  MODULE_LICENSE("GPL v2");
d6ea3df0d470fb9 drivers/spi/pxa2xx_spi_pci.c Sebastian Andrzej Siewior 2010-11-24  304  MODULE_AUTHOR("Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>");

:::::: The code at line 245 was first introduced by commit
:::::: 280af2b8eb3674628223b8d143b5f71cd2a96159 spi: spi-pxa2xx: Remove CLK_IS_ROOT

:::::: TO: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux