[mips-sjhill:mips-for-linux-next 37/40] arch/mips/cavium-octeon/octeon-usb.c:256:12: error: 'union cvmx_gpio_bit_cfgx' has no member named 'cn73xx'

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

 



tree:   git://git.linux-mips.org/pub/scm/sjhill/linux-sjhill.git mips-for-linux-next
head:   1f658c055f06e85d017652fd9cf0d1253277a316
commit: 23c1c950836486c2cc15437e2e800c557fa96f21 [37/40] MIPS: Octeon: Remove unused GPIO types and macros.
config: mips-cavium_octeon_defconfig (attached as .config)
compiler: mips64-linux-gnuabi64-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 23c1c950836486c2cc15437e2e800c557fa96f21
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   arch/mips/cavium-octeon/octeon-usb.c: In function 'dwc3_octeon_config_power':
>> arch/mips/cavium-octeon/octeon-usb.c:256:12: error: 'union cvmx_gpio_bit_cfgx' has no member named 'cn73xx'
       gpio_bit.cn73xx.output_sel = (index == 0 ? 0x14 : 0x15);
               ^
>> arch/mips/cavium-octeon/octeon-usb.c:261:12: error: 'union cvmx_gpio_bit_cfgx' has no member named 'cn70xx'
       gpio_bit.cn70xx.output_sel = (index == 0 ? 0x14 : 0x19);
               ^
>> arch/mips/cavium-octeon/octeon-usb.c:264:33: error: implicit declaration of function 'CVMX_GPIO_XBIT_CFGX' [-Werror=implicit-function-declaration]
       gpio_bit.u64 = cvmx_read_csr(CVMX_GPIO_XBIT_CFGX(gpio));
                                    ^~~~~~~~~~~~~~~~~~~
   arch/mips/cavium-octeon/octeon-usb.c:266:12: error: 'union cvmx_gpio_bit_cfgx' has no member named 'cn70xx'
       gpio_bit.cn70xx.output_sel = (index == 0 ? 0x14 : 0x19);
               ^
   cc1: all warnings being treated as errors

vim +256 arch/mips/cavium-octeon/octeon-usb.c

93e502b3 Steven J. Hill 2017-01-25  250  		}
93e502b3 Steven J. Hill 2017-01-25  251  		if ((OCTEON_IS_MODEL(OCTEON_CN73XX) ||
93e502b3 Steven J. Hill 2017-01-25  252  		    OCTEON_IS_MODEL(OCTEON_CNF75XX))
93e502b3 Steven J. Hill 2017-01-25  253  		    && gpio <= 31) {
93e502b3 Steven J. Hill 2017-01-25  254  			gpio_bit.u64 = cvmx_read_csr(CVMX_GPIO_BIT_CFGX(gpio));
93e502b3 Steven J. Hill 2017-01-25  255  			gpio_bit.s.tx_oe = 1;
93e502b3 Steven J. Hill 2017-01-25 @256  			gpio_bit.cn73xx.output_sel = (index == 0 ? 0x14 : 0x15);
93e502b3 Steven J. Hill 2017-01-25  257  			cvmx_write_csr(CVMX_GPIO_BIT_CFGX(gpio), gpio_bit.u64);
93e502b3 Steven J. Hill 2017-01-25  258  		} else if (gpio <= 15) {
93e502b3 Steven J. Hill 2017-01-25  259  			gpio_bit.u64 = cvmx_read_csr(CVMX_GPIO_BIT_CFGX(gpio));
93e502b3 Steven J. Hill 2017-01-25  260  			gpio_bit.s.tx_oe = 1;
93e502b3 Steven J. Hill 2017-01-25 @261  			gpio_bit.cn70xx.output_sel = (index == 0 ? 0x14 : 0x19);
93e502b3 Steven J. Hill 2017-01-25  262  			cvmx_write_csr(CVMX_GPIO_BIT_CFGX(gpio), gpio_bit.u64);
93e502b3 Steven J. Hill 2017-01-25  263  		} else {
93e502b3 Steven J. Hill 2017-01-25 @264  			gpio_bit.u64 = cvmx_read_csr(CVMX_GPIO_XBIT_CFGX(gpio));
93e502b3 Steven J. Hill 2017-01-25  265  			gpio_bit.s.tx_oe = 1;
93e502b3 Steven J. Hill 2017-01-25  266  			gpio_bit.cn70xx.output_sel = (index == 0 ? 0x14 : 0x19);
93e502b3 Steven J. Hill 2017-01-25  267  			cvmx_write_csr(CVMX_GPIO_XBIT_CFGX(gpio), gpio_bit.u64);

:::::: The code at line 256 was first introduced by commit
:::::: 93e502b3c2d44dcb964141cbf82930282de8e40b MIPS: OCTEON: Platform support for OCTEON III USB controller

:::::: TO: Steven J. Hill <Steven.Hill@xxxxxxxxxx>
:::::: CC: James Hogan <james.hogan@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 MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux