tree:
https://github.com/lunn/linux.git v5.8-rc1-net-next-phy-subdirs
head: 6758dc32213e56e6ddd16049bc0cf1e1a36ce270
commit: 55b85b0b27e41f822363c40083b44daae8b2e5dd [2/3] net: phy: Move into subdirectories
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 55b85b0b27e41f822363c40083b44daae8b2e5dd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/sh/include/asm/io.h:28,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from drivers/net/phy/mdio/mdio-cavium.c:8:
drivers/net/phy/mdio/mdio-cavium.c: In function 'cavium_mdiobus_set_mode':
drivers/net/phy/mdio/mdio-cavium.h:114:37: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^
arch/sh/include/mach-common/mach/mangle-port.h:41:23: note: in definition of macro
'ioswabq'
41 | # define ioswabq(x) (x)
| ^
arch/sh/include/asm/io.h:43:47: note: in expansion of macro '__raw_readq'
43 | #define readq_relaxed(c) ({ u64 __v = ioswabq(__raw_readq(c)); __v; })
| ^~~~~~~~~~~
arch/sh/include/asm/io.h:53:31: note: in expansion of macro 'readq_relaxed'
53 | #define readq(a) ({ u64 r_ = readq_relaxed(a); rmb(); r_; })
| ^~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:114:31: note: in expansion of
macro 'readq'
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^~~~~
drivers/net/phy/mdio/mdio-cavium.c:21:16: note: in expansion of macro
'oct_mdio_readq'
21 | smi_clk.u64 = oct_mdio_readq(p->register_base + SMI_CLK);
| ^~~~~~~~~~~~~~
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from drivers/net/phy/mdio/mdio-cavium.c:8:
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-cavium.c:24:2: note: in expansion of macro
'oct_mdio_writeq'
24 | oct_mdio_writeq(smi_clk.u64, p->register_base + SMI_CLK);
| ^~~~~~~~~~~~~~~
drivers/net/phy/mdio/mdio-cavium.c: In function 'cavium_mdiobus_c45_addr':
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-cavium.c:39:2: note: in expansion of macro
'oct_mdio_writeq'
39 | oct_mdio_writeq(smi_wr.u64, p->register_base + SMI_WR_DAT);
| ^~~~~~~~~~~~~~~
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-cavium.c:47:2: note: in expansion of macro
'oct_mdio_writeq'
47 | oct_mdio_writeq(smi_cmd.u64, p->register_base + SMI_CMD);
| ^~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/io.h:28,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from drivers/net/phy/mdio/mdio-cavium.c:8:
drivers/net/phy/mdio/mdio-cavium.h:114:37: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^
arch/sh/include/mach-common/mach/mangle-port.h:41:23: note: in definition of macro
'ioswabq'
41 | # define ioswabq(x) (x)
| ^
arch/sh/include/asm/io.h:43:47: note: in expansion of macro '__raw_readq'
43 | #define readq_relaxed(c) ({ u64 __v = ioswabq(__raw_readq(c)); __v; })
| ^~~~~~~~~~~
arch/sh/include/asm/io.h:53:31: note: in expansion of macro 'readq_relaxed'
53 | #define readq(a) ({ u64 r_ = readq_relaxed(a); rmb(); r_; })
| ^~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:114:31: note: in expansion of
macro 'readq'
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^~~~~
drivers/net/phy/mdio/mdio-cavium.c:54:16: note: in expansion of macro
'oct_mdio_readq'
54 | smi_wr.u64 = oct_mdio_readq(p->register_base + SMI_WR_DAT);
| ^~~~~~~~~~~~~~
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from drivers/net/phy/mdio/mdio-cavium.c:8:
drivers/net/phy/mdio/mdio-cavium.c: In function 'cavium_mdiobus_read':
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-cavium.c:86:2: note: in expansion of macro
'oct_mdio_writeq'
86 | oct_mdio_writeq(smi_cmd.u64, p->register_base + SMI_CMD);
| ^~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/io.h:28,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from drivers/net/phy/mdio/mdio-cavium.c:8:
drivers/net/phy/mdio/mdio-cavium.h:114:37: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^
arch/sh/include/mach-common/mach/mangle-port.h:41:23: note: in definition of macro
'ioswabq'
41 | # define ioswabq(x) (x)
| ^
arch/sh/include/asm/io.h:43:47: note: in expansion of macro '__raw_readq'
43 | #define readq_relaxed(c) ({ u64 __v = ioswabq(__raw_readq(c)); __v; })
| ^~~~~~~~~~~
arch/sh/include/asm/io.h:53:31: note: in expansion of macro 'readq_relaxed'
53 | #define readq(a) ({ u64 r_ = readq_relaxed(a); rmb(); r_; })
| ^~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:114:31: note: in expansion of
macro 'readq'
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^~~~~
drivers/net/phy/mdio/mdio-cavium.c:93:16: note: in expansion of macro
'oct_mdio_readq'
93 | smi_rd.u64 = oct_mdio_readq(p->register_base + SMI_RD_DAT);
| ^~~~~~~~~~~~~~
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from drivers/net/phy/mdio/mdio-cavium.c:8:
drivers/net/phy/mdio/mdio-cavium.c: In function 'cavium_mdiobus_write':
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-cavium.c:125:2: note: in expansion of macro
'oct_mdio_writeq'
125 | oct_mdio_writeq(smi_wr.u64, p->register_base + SMI_WR_DAT);
| ^~~~~~~~~~~~~~~
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-cavium.c:131:2: note: in expansion of macro
'oct_mdio_writeq'
131 | oct_mdio_writeq(smi_cmd.u64, p->register_base + SMI_CMD);
| ^~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/io.h:28,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from drivers/net/phy/mdio/mdio-cavium.c:8:
drivers/net/phy/mdio/mdio-cavium.h:114:37: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^
arch/sh/include/mach-common/mach/mangle-port.h:41:23: note: in definition of macro
'ioswabq'
41 | # define ioswabq(x) (x)
| ^
arch/sh/include/asm/io.h:43:47: note: in expansion of macro '__raw_readq'
43 | #define readq_relaxed(c) ({ u64 __v = ioswabq(__raw_readq(c)); __v; })
| ^~~~~~~~~~~
arch/sh/include/asm/io.h:53:31: note: in expansion of macro 'readq_relaxed'
53 | #define readq(a) ({ u64 r_ = readq_relaxed(a); rmb(); r_; })
| ^~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:114:31: note: in expansion of
macro 'readq'
114 | #define oct_mdio_readq(addr) readq((void *)addr)
| ^~~~~
drivers/net/phy/mdio/mdio-cavium.c:138:16: note: in expansion of macro
'oct_mdio_readq'
138 | smi_wr.u64 = oct_mdio_readq(p->register_base + SMI_WR_DAT);
| ^~~~~~~~~~~~~~
--
drivers/net/phy/mdio/mdio-octeon.c: In function 'octeon_mdiobus_probe':
drivers/net/phy/mdio/mdio-octeon.c:48:3: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
48 | (u64)devm_ioremap(&pdev->dev, mdio_phys, regsize);
| ^
In file included from include/linux/io.h:13,
from include/linux/of_address.h:7,
from drivers/net/phy/mdio/mdio-octeon.c:7:
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-octeon.c:56:2: note: in expansion of macro
'oct_mdio_writeq'
56 | oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN);
| ^~~~~~~~~~~~~~~
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-octeon.c:77:2: note: in expansion of macro
'oct_mdio_writeq'
77 | oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN);
| ^~~~~~~~~~~~~~~
drivers/net/phy/mdio/mdio-octeon.c: In function 'octeon_mdiobus_remove':
drivers/net/phy/mdio/mdio-cavium.h:113:48: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
| ^
arch/sh/include/asm/io.h:33:71: note: in definition of macro '__raw_writeq'
33 | #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
| ^
arch/sh/include/asm/io.h:58:32: note: in expansion of macro 'writeq_relaxed'
58 | #define writeq(v,a) ({ wmb(); writeq_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
> drivers/net/phy/mdio/mdio-cavium.h:113:36: note: in expansion of
macro 'writeq'
113 | #define oct_mdio_writeq(val, addr) writeq(val, (void
*)addr)
| ^~~~~~
drivers/net/phy/mdio/mdio-octeon.c:91:2: note: in expansion of macro
'oct_mdio_writeq'
91 | oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN);
| ^~~~~~~~~~~~~~~
drivers/net/phy/mdio/mdio-octeon.c: At top level:
drivers/net/phy/mdio/mdio-octeon.c:112:6: warning: no previous prototype for
'octeon_mdiobus_force_mod_depencency' [-Wmissing-prototypes]
112 | void octeon_mdiobus_force_mod_depencency(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/readq +114 drivers/net/phy/mdio/mdio-cavium.h
b8fb640643fcdb drivers/net/phy/mdio-cavium.h Nathan Chancellor 2019-08-02 112
1eefee901fca02 drivers/net/phy/mdio-cavium.h David Daney 2016-03-11 @113 #define
oct_mdio_writeq(val, addr) writeq(val, (void *)addr)
1eefee901fca02 drivers/net/phy/mdio-cavium.h David Daney 2016-03-11 @114 #define
oct_mdio_readq(addr) readq((void *)addr)
1eefee901fca02 drivers/net/phy/mdio-cavium.h David Daney 2016-03-11 115 #endif
1eefee901fca02 drivers/net/phy/mdio-cavium.h David Daney 2016-03-11 116
:::::: The code at line 114 was first introduced by commit
:::::: 1eefee901fca0208b8a56f20cdc134e2b8638ae7 phy: mdio-octeon: Refactor into two
files/modules
:::::: TO: David Daney <david.daney(a)cavium.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org