[gpio:gpio-descriptors-spi 2/6] drivers/spi/spi-fsl-spi.c:728:4: error: 'pinfo' undeclared; did you mean 'pr_info'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-spi
head:   22b4cce644e2a37043b522197f7941eff3c6561c
commit: 483196e6f1d2e2545fa63b86fac89a979a854932 [2/6] spi: fsl: Convert to use CS GPIO descriptors
config: powerpc-mgcoge_defconfig (attached as .config)
compiler: powerpc-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 483196e6f1d2e2545fa63b86fac89a979a854932
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All errors (new ones prefixed by >>):

   drivers/spi/spi-fsl-spi.c: In function 'fsl_spi_cleanup':
   drivers/spi/spi-fsl-spi.c:495:22: warning: unused variable 'mpc8xxx_spi' [-Wunused-variable]
     struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master);
                         ^~~~~~~~~~~
   drivers/spi/spi-fsl-spi.c: In function 'of_fsl_spi_probe':
>> drivers/spi/spi-fsl-spi.c:728:4: error: 'pinfo' undeclared (first use in this function); did you mean 'pr_info'?
       pinfo->immr_spi_cs = ioremap(get_immrbase() + IMMR_SPI_CS_OFFSET, 4);
       ^~~~~
       pr_info
   drivers/spi/spi-fsl-spi.c:728:4: note: each undeclared identifier is reported only once for each function it appears in

vim +728 drivers/spi/spi-fsl-spi.c

   707	
   708	static int of_fsl_spi_probe(struct platform_device *ofdev)
   709	{
   710		struct device *dev = &ofdev->dev;
   711		struct device_node *np = ofdev->dev.of_node;
   712		struct spi_master *master;
   713		struct resource mem;
   714		int irq = 0, type;
   715		int ret = -ENOMEM;
   716	
   717		ret = of_mpc8xxx_spi_probe(ofdev);
   718		if (ret)
   719			return ret;
   720	
   721		type = fsl_spi_get_type(&ofdev->dev);
   722		if (type == TYPE_FSL) {
   723			struct fsl_spi_platform_data *pdata = dev_get_platdata(dev);
   724	#if IS_ENABLED(CONFIG_FSL_SOC)
   725			bool spisel_boot = of_property_read_bool(np, "fsl,spisel_boot");
   726	
   727			if (spisel_boot) {
 > 728				pinfo->immr_spi_cs = ioremap(get_immrbase() + IMMR_SPI_CS_OFFSET, 4);
   729				if (!pinfo->immr_spi_cs) {
   730					ret = -ENOMEM;
   731					goto err;
   732				}
   733			}
   734	#endif
   735	
   736			pdata->cs_control = fsl_spi_cs_control;
   737		}
   738	
   739		ret = of_address_to_resource(np, 0, &mem);
   740		if (ret)
   741			goto err;
   742	
   743		irq = irq_of_parse_and_map(np, 0);
   744		if (!irq) {
   745			ret = -EINVAL;
   746			goto err;
   747		}
   748	
   749		master = fsl_spi_probe(dev, &mem, irq);
   750		if (IS_ERR(master)) {
   751			ret = PTR_ERR(master);
   752			goto err;
   753		}
   754	
   755		return 0;
   756	
   757	err:
   758		irq_dispose_mapping(irq);
   759		return ret;
   760	}
   761	

---
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 SPI]     [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