[spi:for-4.21 34/40] drivers/spi/spi-pxa2xx.c:1539:5: warning: "CONFIG_OF" is not defined

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-4.21
head:   2a22f1b30cee8d1e104a6c5062a609bedbfd5c39
commit: ec93cb6f827b3e1a81b0721b8c893d2a5e37e7d6 [34/40] spi: pxa2xx: Add slave mode support
config: x86_64-randconfig-s2-11140544 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout ec93cb6f827b3e1a81b0721b8c893d2a5e37e7d6
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/spi/spi-pxa2xx.c: In function 'pxa2xx_spi_init_pdata':
>> drivers/spi/spi-pxa2xx.c:1539:5: warning: "CONFIG_OF" is not defined [-Wundef]
    #if CONFIG_OF
        ^~~~~~~~~

vim +/CONFIG_OF +1539 drivers/spi/spi-pxa2xx.c

  1538	
> 1539	#if CONFIG_OF
  1540		if (of_id) {
  1541			pdata->is_slave = of_property_read_bool(pdev->dev.of_node,
  1542									"spi-slave");
  1543		}
  1544	#endif
  1545	
  1546		ssp->clk = devm_clk_get(&pdev->dev, NULL);
  1547		ssp->irq = platform_get_irq(pdev, 0);
  1548		ssp->type = type;
  1549		ssp->pdev = pdev;
  1550		ssp->port_id = pxa2xx_spi_get_port_id(adev);
  1551	
  1552		pdata->num_chipselect = 1;
  1553		pdata->enable_dma = true;
  1554	
  1555		return pdata;
  1556	}
  1557	

---
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 Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux