All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2017-04-19  2:51 kbuild test robot
  2017-04-20  9:29 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-04-19  2:51 UTC (permalink / raw)
  To: Steven J. Hill; +Cc: kbuild-all, linux-mips, Ralf Baechle

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

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@cavium.com>
:::::: CC: James Hogan <james.hogan@imgtec.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 16031 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [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'
  2017-04-19  2:51 [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' kbuild test robot
@ 2017-04-20  9:29 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2017-04-20  9:29 UTC (permalink / raw)
  To: kbuild test robot; +Cc: Steven J. Hill, kbuild-all, linux-mips

On Wed, Apr 19, 2017 at 10:51:24AM +0800, kbuild test robot wrote:

> 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

I've dropped the offending commit 23c1c9508364 ("MIPS: Octeon: Remove
unused GPIO types and macros.") and the following commit 8ed898353e36
("MIPS: Octeon: Remove unused MIO types and macros.") which was causing

  CC      drivers/net/ethernet/cavium/octeon/octeon_mgmt.o
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c: In function ‘octeon_mgmt_ioctl_hwtstamp’:
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c:707:20: error: ‘CVMX_MIO_PTP_CLOCK_COMP’ undeclared (first use in this function)
     cvmx_write_csr(CVMX_MIO_PTP_CLOCK_COMP, clock_comp);
                    ^
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c:707:20: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:294: recipe for target 'drivers/net/ethernet/cavium/octeon/octeon_mgmt.o' failed
make[5]: *** [drivers/net/ethernet/cavium/octeon/octeon_mgmt.o] Error 1

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-20  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-19  2:51 [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' kbuild test robot
2017-04-20  9:29 ` Ralf Baechle

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.