drivers/net/ethernet/lantiq_etop.c:265:62: error: 'rx_burst_len' undeclared
by kernel test robot
Hi Aleksander,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d2f38a3c6507b2520101f9a3807ed98f1bdc545a
commit: 14d4e308e0aa0b78dc7a059716861a4380de3535 net: lantiq: configure the burst length in ethernet drivers
date: 8 weeks ago
config: mips-xway_defconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 11.2.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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 14d4e308e0aa0b78dc7a059716861a4380de3535
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/lantiq_etop.c: In function 'ltq_etop_hw_init':
>> drivers/net/ethernet/lantiq_etop.c:265:62: error: 'rx_burst_len' undeclared (first use in this function)
265 | ltq_dma_init_port(DMA_PORT_ETOP, priv->tx_burst_len, rx_burst_len);
| ^~~~~~~~~~~~
drivers/net/ethernet/lantiq_etop.c:265:62: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/lantiq_etop.c: In function 'ltq_etop_probe':
>> drivers/net/ethernet/lantiq_etop.c:673:15: error: implicit declaration of function 'device_property_read_u32' [-Werror=implicit-function-declaration]
673 | err = device_property_read_u32(&pdev->dev, "lantiq,tx-burst-length", &priv->tx_burst_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/lantiq_etop.c: At top level:
drivers/net/ethernet/lantiq_etop.c:730:1: warning: no previous prototype for 'init_ltq_etop' [-Wmissing-prototypes]
730 | init_ltq_etop(void)
| ^~~~~~~~~~~~~
drivers/net/ethernet/lantiq_etop.c: In function 'ltq_etop_hw_init':
drivers/net/ethernet/lantiq_etop.c:276:25: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Wunused-result]
276 | request_irq(irq, ltq_etop_dma_irq, 0, "etop_tx", priv);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/lantiq_etop.c:284:25: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Wunused-result]
284 | request_irq(irq, ltq_etop_dma_irq, 0, "etop_rx", priv);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/rx_burst_len +265 drivers/net/ethernet/lantiq_etop.c
236
237 static int
238 ltq_etop_hw_init(struct net_device *dev)
239 {
240 struct ltq_etop_priv *priv = netdev_priv(dev);
241 int i;
242
243 ltq_pmu_enable(PMU_PPE);
244
245 switch (priv->pldata->mii_mode) {
246 case PHY_INTERFACE_MODE_RMII:
247 ltq_etop_w32_mask(ETOP_MII_MASK,
248 ETOP_MII_REVERSE, LTQ_ETOP_CFG);
249 break;
250
251 case PHY_INTERFACE_MODE_MII:
252 ltq_etop_w32_mask(ETOP_MII_MASK,
253 ETOP_MII_NORMAL, LTQ_ETOP_CFG);
254 break;
255
256 default:
257 netdev_err(dev, "unknown mii mode %d\n",
258 priv->pldata->mii_mode);
259 return -ENOTSUPP;
260 }
261
262 /* enable crc generation */
263 ltq_etop_w32(PPE32_CGEN, LQ_PPE32_ENET_MAC_CFG);
264
> 265 ltq_dma_init_port(DMA_PORT_ETOP, priv->tx_burst_len, rx_burst_len);
266
267 for (i = 0; i < MAX_DMA_CHAN; i++) {
268 int irq = LTQ_DMA_CH0_INT + i;
269 struct ltq_etop_chan *ch = &priv->ch[i];
270
271 ch->idx = ch->dma.nr = i;
272 ch->dma.dev = &priv->pdev->dev;
273
274 if (IS_TX(i)) {
275 ltq_dma_alloc_tx(&ch->dma);
276 request_irq(irq, ltq_etop_dma_irq, 0, "etop_tx", priv);
277 } else if (IS_RX(i)) {
278 ltq_dma_alloc_rx(&ch->dma);
279 for (ch->dma.desc = 0; ch->dma.desc < LTQ_DESC_NUM;
280 ch->dma.desc++)
281 if (ltq_etop_alloc_skb(ch))
282 return -ENOMEM;
283 ch->dma.desc = 0;
284 request_irq(irq, ltq_etop_dma_irq, 0, "etop_rx", priv);
285 }
286 ch->dma.irq = irq;
287 }
288 return 0;
289 }
290
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[intel-lts:4.19/android_s 16637/25248] arch/mips/include/asm/vdso/gettimeofday.h:94:38: error: '__NR_clock_getres_time64' undeclared
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_s
head: d47c20847da6957c8b15960571893193936c8c1e
commit: 23dea1cf7ed3846719448e74feeb56c28e3a9019 [16637/25248] UPSTREAM: mips: Add clock_getres entry point
config: mips-randconfig-r016-20211028 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.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
# https://github.com/intel/linux-intel-lts/commit/23dea1cf7ed3846719448e74f...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 4.19/android_s
git checkout 23dea1cf7ed3846719448e74feeb56c28e3a9019
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/kernel/ arch/mips/vdso/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the intel-lts/4.19/android_s HEAD d47c20847da6957c8b15960571893193936c8c1e builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from lib/vdso/gettimeofday.c:26,
from <command-line>:
arch/mips/include/asm/vdso/gettimeofday.h: In function 'clock_gettime_fallback':
arch/mips/include/asm/vdso/gettimeofday.h:70:38: error: '__NR_clock_gettime64' undeclared (first use in this function)
70 | register long nr asm("v0") = __NR_clock_gettime64;
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/vdso/gettimeofday.h:70:38: note: each undeclared identifier is reported only once for each function it appears in
arch/mips/include/asm/vdso/gettimeofday.h: In function 'clock_getres_fallback':
>> arch/mips/include/asm/vdso/gettimeofday.h:94:38: error: '__NR_clock_getres_time64' undeclared (first use in this function)
94 | register long nr asm("v0") = __NR_clock_getres_time64;
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
lib/vdso/gettimeofday.c: In function '__cvdso_clock_gettime32':
lib/vdso/gettimeofday.c:113:20: error: invalid use of undefined type 'struct compat_timespec'
113 | res->tv_sec = ts.tv_sec;
| ^~
lib/vdso/gettimeofday.c:114:20: error: invalid use of undefined type 'struct compat_timespec'
114 | res->tv_nsec = ts.tv_nsec;
| ^~
lib/vdso/gettimeofday.c: In function '__cvdso_clock_getres_time32':
lib/vdso/gettimeofday.c:219:20: error: invalid use of undefined type 'struct compat_timespec'
219 | res->tv_sec = ts.tv_sec;
| ^~
lib/vdso/gettimeofday.c:220:20: error: invalid use of undefined type 'struct compat_timespec'
220 | res->tv_nsec = ts.tv_nsec;
| ^~
arch/mips/vdso/vgettimeofday.c: At top level:
arch/mips/vdso/vgettimeofday.c:14:5: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes]
14 | int __vdso_clock_gettime(clockid_t clock,
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/vdso/vgettimeofday.c:20:5: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes]
20 | int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
| ^~~~~~~~~~~~~~~~~~~
arch/mips/vdso/vgettimeofday.c:26:5: warning: no previous prototype for '__vdso_clock_getres' [-Wmissing-prototypes]
26 | int __vdso_clock_getres(clockid_t clock_id,
| ^~~~~~~~~~~~~~~~~~~
vim +/__NR_clock_getres_time64 +94 arch/mips/include/asm/vdso/gettimeofday.h
83
84 static __always_inline int clock_getres_fallback(
85 clockid_t _clkid,
86 struct __kernel_timespec *_ts)
87 {
88 register struct __kernel_timespec *ts asm("a1") = _ts;
89 register clockid_t clkid asm("a0") = _clkid;
90 register long ret asm("v0");
91 #if _MIPS_SIM == _MIPS_SIM_ABI64
92 register long nr asm("v0") = __NR_clock_getres;
93 #else
> 94 register long nr asm("v0") = __NR_clock_getres_time64;
95 #endif
96 register long error asm("a3");
97
98 asm volatile(
99 " syscall\n"
100 : "=r" (ret), "=r" (error)
101 : "r" (clkid), "r" (ts), "r" (nr)
102 : "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13",
103 "$14", "$15", "$24", "$25", "hi", "lo", "memory");
104
105 return error ? -ret : ret;
106 }
107
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[kees:fix/wchan/leaky 5/6] arch/x86/kernel/process.c:952:2: error: implicit declaration of function 'stack_trace_save_tsk'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git fix/wchan/leaky
head: 62ba17f8f461578402c62e7cc2318443a262cc3b
commit: 26a28d75580ddecc5d085def97bbd76c4f60f0a3 [5/6] x86: Fix get_wchan() to support the ORC unwinder
config: x86_64-alldefconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id...
git remote add kees https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
git fetch --no-tags kees fix/wchan/leaky
git checkout 26a28d75580ddecc5d085def97bbd76c4f60f0a3
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/process.c: In function 'get_wchan':
>> arch/x86/kernel/process.c:952:2: error: implicit declaration of function 'stack_trace_save_tsk' [-Werror=implicit-function-declaration]
952 | stack_trace_save_tsk(p, &entry, 1, 0);
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/stack_trace_save_tsk +952 arch/x86/kernel/process.c
938
939 /*
940 * Called from fs/proc with a reference on @p to find the function
941 * which called into schedule(). This needs to be done carefully
942 * because the task might wake up and we might look at a stack
943 * changing under us.
944 */
945 unsigned long get_wchan(struct task_struct *p)
946 {
947 unsigned long entry = 0;
948
949 if (p == current || task_is_running(p))
950 return 0;
951
> 952 stack_trace_save_tsk(p, &entry, 1, 0);
953 return entry;
954 }
955
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[broonie-misc:mfd-spi-ids 1/3] drivers/mfd/altera-a10sr.c:153:1: warning: data definition has no type or storage class
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git mfd-spi-ids
head: d29471da2a53e3ebaa9a9abd6c03918053719711
commit: 0f118caf3351599b89613e89e45bcaadffad1ab9 [1/3] mfd: altr_a10sr: Add SPI device ID table
config: arm-socfpga_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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
# https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git/commit/?...
git remote add broonie-misc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
git fetch --no-tags broonie-misc mfd-spi-ids
git checkout 0f118caf3351599b89613e89e45bcaadffad1ab9
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/mfd/
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 >>):
>> drivers/mfd/altera-a10sr.c:153:1: warning: data definition has no type or storage class
153 | MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match);
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/altera-a10sr.c:153:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]
>> drivers/mfd/altera-a10sr.c:153:1: warning: parameter names (without types) in function declaration
drivers/mfd/altera-a10sr.c:159:1: warning: data definition has no type or storage class
159 | MODULE_DEVICE_TABLE(spi, altr_a10sr_spi_ids);
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/altera-a10sr.c:159:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]
drivers/mfd/altera-a10sr.c:159:1: warning: parameter names (without types) in function declaration
cc1: some warnings being treated as errors
vim +153 drivers/mfd/altera-a10sr.c
148
149 static const struct of_device_id altr_a10sr_spi_of_match[] = {
150 { .compatible = "altr,a10sr" },
151 { },
152 };
> 153 MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match);
154
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
Re: [PATCH 1/4] block: add rq_flags to struct blk_mq_alloc_data
by kernel test robot
Hi Jens,
I love your patch! Perhaps something to improve:
[auto build test WARNING on axboe-block/for-next]
[cannot apply to v5.15 next-20211109]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jens-Axboe/Last-round-of-alloc-s...
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: riscv-randconfig-s032-20211019 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/9f52e0a0d7ca51980ab3f426f70e652d3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jens-Axboe/Last-round-of-alloc-side-optimizations/20211019-233352
git checkout 9f52e0a0d7ca51980ab3f426f70e652d3bd2a000
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
block/blk-mq-tag.c: note: in included file (through block/blk.h):
>> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
>> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
>> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
--
>> block/blk-mq.c:311:32: sparse: sparse: restricted req_flags_t degrades to integer
block/blk-mq.c:320:32: sparse: sparse: invalid assignment: |=
block/blk-mq.c:320:32: sparse: left side has type unsigned int
block/blk-mq.c:320:32: sparse: right side has type restricted req_flags_t
block/blk-mq.c:322:32: sparse: sparse: invalid assignment: |=
block/blk-mq.c:322:32: sparse: left side has type unsigned int
block/blk-mq.c:322:32: sparse: right side has type restricted req_flags_t
block/blk-mq.c:323:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted req_flags_t [usertype] rq_flags @@ got unsigned int rq_flags @@
block/blk-mq.c:323:22: sparse: expected restricted req_flags_t [usertype] rq_flags
block/blk-mq.c:323:22: sparse: got unsigned int rq_flags
>> block/blk-mq.c:474:47: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int rq_flags @@ got restricted req_flags_t @@
block/blk-mq.c:474:47: sparse: expected unsigned int rq_flags
block/blk-mq.c:474:47: sparse: got restricted req_flags_t
block/blk-mq.c:504:47: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int rq_flags @@ got restricted req_flags_t @@
block/blk-mq.c:504:47: sparse: expected unsigned int rq_flags
block/blk-mq.c:504:47: sparse: got restricted req_flags_t
block/blk-mq.c:2433:55: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int rq_flags @@ got restricted req_flags_t @@
block/blk-mq.c:2433:55: sparse: expected unsigned int rq_flags
block/blk-mq.c:2433:55: sparse: got restricted req_flags_t
block/blk-mq.c: note: in included file (through block/blk.h):
>> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
vim +169 block/blk-mq.h
166
167 static inline struct blk_mq_tags *blk_mq_tags_from_data(struct blk_mq_alloc_data *data)
168 {
> 169 if (!(data->rq_flags & RQF_ELV))
170 return data->hctx->tags;
171 return data->hctx->sched_tags;
172 }
173
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[android-common:android13-5.10 10272/15380] phylink.c:undefined reference to `phy_mii_ioctl'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android13-5.10
head: 764c9982bf1290ff1813b89a033e77d427be0f0f
commit: 36ab8cea47b0d4a3c5067577430c147a903b5261 [10272/15380] ANDROID: GKI: Kconfig.gki: Add GKI_HIDDEN_ETHERNET_CONFIGS
config: arm64-randconfig-c004-20211103 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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 remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android13-5.10
git checkout 36ab8cea47b0d4a3c5067577430c147a903b5261
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_get_fixed_state':
phylink.c:(.text+0x27c): undefined reference to `linkmode_resolve_pause'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_disconnect_phy':
phylink.c:(.text+0x630): undefined reference to `phy_disconnect'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_get_wol':
phylink.c:(.text+0x6f4): undefined reference to `phy_ethtool_get_wol'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_set_wol':
phylink.c:(.text+0x7ac): undefined reference to `phy_ethtool_set_wol'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_ksettings_get':
phylink.c:(.text+0x8fc): undefined reference to `phy_ethtool_ksettings_get'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_get_eee_err':
phylink.c:(.text+0xa54): undefined reference to `phy_get_eee_err'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_init_eee':
phylink.c:(.text+0xafc): undefined reference to `phy_init_eee'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_get_eee':
phylink.c:(.text+0xb6c): undefined reference to `phy_ethtool_get_eee'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_set_eee':
phylink.c:(.text+0xc2c): undefined reference to `phy_ethtool_set_eee'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_set_advertisement':
phylink.c:(.text+0xd54): undefined reference to `mdiobus_read'
aarch64-linux-ld: phylink.c:(.text+0xdac): undefined reference to `mdiobus_read'
aarch64-linux-ld: phylink.c:(.text+0xdf0): undefined reference to `mdiobus_write'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_an_restart':
phylink.c:(.text+0xe7c): undefined reference to `mdiobus_read'
aarch64-linux-ld: phylink.c:(.text+0xea8): undefined reference to `mdiobus_write'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_mii_emul_read':
phylink.c:(.text+0xf0c): undefined reference to `swphy_read_reg'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_speed_down':
phylink.c:(.text+0xff4): undefined reference to `phy_speed_down'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_speed_up':
phylink.c:(.text+0x10c4): undefined reference to `phy_speed_up'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_config':
phylink.c:(.text+0x11b4): undefined reference to `mdiobus_modify'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c45_pcs_get_state':
phylink.c:(.text+0x1458): undefined reference to `mdiobus_read'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_stop':
phylink.c:(.text+0x1560): undefined reference to `phy_stop'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_mii_ioctl':
>> phylink.c:(.text+0x1a98): undefined reference to `phy_mii_ioctl'
aarch64-linux-ld: phylink.c:(.text+0x1b20): undefined reference to `mdiobus_read'
aarch64-linux-ld: phylink.c:(.text+0x1c48): undefined reference to `mdiobus_write'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_link_up.isra.0':
phylink.c:(.text+0x2068): undefined reference to `phy_speed_to_str'
aarch64-linux-ld: phylink.c:(.text+0x207c): undefined reference to `phy_duplex_to_str'
aarch64-linux-ld: phylink.c:(.text+0x20d8): undefined reference to `phy_speed_to_str'
aarch64-linux-ld: phylink.c:(.text+0x20ec): undefined reference to `phy_duplex_to_str'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_set_pauseparam':
phylink.c:(.text+0x2410): undefined reference to `linkmode_set_pause'
aarch64-linux-ld: phylink.c:(.text+0x2490): undefined reference to `phy_set_asym_pause'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_decode_c37_word':
phylink.c:(.text+0x2bb0): undefined reference to `linkmode_resolve_pause'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_get_state':
phylink.c:(.text+0x2c90): undefined reference to `mdiobus_read'
aarch64-linux-ld: phylink.c:(.text+0x2ca4): undefined reference to `mdiobus_read'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_phy_change':
phylink.c:(.text+0x3004): undefined reference to `phy_get_pause'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_start':
phylink.c:(.text+0x31f8): undefined reference to `phy_start'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_bringup_phy':
phylink.c:(.text+0x3ab0): undefined reference to `phy_support_asym_pause'
aarch64-linux-ld: phylink.c:(.text+0x3b54): undefined reference to `phy_attached_info_irq'
aarch64-linux-ld: phylink.c:(.text+0x3ccc): undefined reference to `phy_request_interrupt'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_connect_phy':
phylink.c:(.text+0x3f18): undefined reference to `phy_attach_direct'
aarch64-linux-ld: phylink.c:(.text+0x3fb8): undefined reference to `phy_detach'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_parse_fixedlink':
phylink.c:(.text+0x4240): undefined reference to `phy_lookup_setting'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_nway_reset':
phylink.c:(.text+0x48ac): undefined reference to `phy_restart_aneg'
aarch64-linux-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_ksettings_set':
phylink.c:(.text+0x49fc): undefined reference to `phy_ethtool_ksettings_set'
aarch64-linux-ld: phylink.c:(.text+0x4cd8): undefined reference to `phy_lookup_setting'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHYLINK
Depends on NETDEVICES
Selected by
- GKI_HIDDEN_ETHERNET_CONFIGS
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_SOC_CONFIGS
WARNING: unmet direct dependencies detected for SND_JACK
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
Depends on SOUND && !UML && SND && SND_JACK
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[oracle-dtrace:v1/5.15 17/35] scripts/ctf/dwarf2ctf.c:33:10: fatal error: sys/ctf_api.h: No such file or directory
by kernel test robot
tree: https://github.com/oracle/dtrace-linux-kernel v1/5.15
head: 0fee66d7ce96317146609675767971d0f35c3e74
commit: 62a2550ef447ac372a5bb92e5baad3e2932865c1 [17/35] dtrace: core and x86
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/oracle/dtrace-linux-kernel/commit/62a2550ef447ac372a5b...
git remote add oracle-dtrace https://github.com/oracle/dtrace-linux-kernel
git fetch --no-tags oracle-dtrace v1/5.15
git checkout 62a2550ef447ac372a5bb92e5baad3e2932865c1
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
WARNING: unmet direct dependencies detected for CTF
Depends on HAVE_CTF_TOOLCHAIN || DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT && !DEBUG_INFO_DWARF4
Selected by
- DTRACE && ARCH_SUPPORTS_DTRACE
>> scripts/ctf/dwarf2ctf.c:33:10: fatal error: sys/ctf_api.h: No such file or directory
33 | #include <sys/ctf_api.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
Makefile a.out arch include nr_bisected scripts source tools usr [scripts/Makefile.host:112: scripts/ctf/dwarf2ctf.o] Error 1
Target '__build' not remade because of errors.
Makefile a.out arch include nr_bisected scripts source tools usr [scripts/Makefile.build:540: scripts/ctf] Error 2
Target '__build' not remade because of errors.
Makefile a.out arch include nr_bisected scripts source tools usr [Makefile:1210: scripts] Error 2
Target 'prepare' not remade because of errors.
make: Makefile a.out arch include nr_bisected scripts source tools usr [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CTF
Depends on HAVE_CTF_TOOLCHAIN || DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT && !DEBUG_INFO_DWARF4
Selected by
- DTRACE && ARCH_SUPPORTS_DTRACE
vim +33 scripts/ctf/dwarf2ctf.c
08c964444d605e Nick Alcock 2018-11-14 27
08c964444d605e Nick Alcock 2018-11-14 28 #include <libelf.h>
08c964444d605e Nick Alcock 2018-11-14 29 #include <dwarf.h>
08c964444d605e Nick Alcock 2018-11-14 30 #include <elfutils/libdwfl.h>
08c964444d605e Nick Alcock 2018-11-14 31 #include <elfutils/libdw.h>
08c964444d605e Nick Alcock 2018-11-14 32 #include <elfutils/version.h>
08c964444d605e Nick Alcock 2018-11-14 @33 #include <sys/ctf_api.h>
08c964444d605e Nick Alcock 2018-11-14 34 #include <glib.h>
08c964444d605e Nick Alcock 2018-11-14 35
:::::: The code at line 33 was first introduced by commit
:::::: 08c964444d605e8ce1a419b177115148f6d08048 ctf: generate CTF information for the kernel from DWARF
:::::: TO: Nick Alcock <nick.alcock(a)oracle.com>
:::::: CC: Nick Alcock <nick.alcock(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
drivers/net/wwan/iosm/iosm_ipc_imem_ops.c:397:17: error: variable 'curr_phase' set but not used
by kernel test robot
Hi Chetan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: 8d9be06341816e5fb7e29b2fd44b3ffe8dd3263a net: wwan: iosm: transport layer support for fw flashing/cd
date: 7 weeks ago
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8d9be06341816e5fb7e29b2fd44b3ffe8dd3263a
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/wwan/iosm/iosm_ipc_imem_ops.c: In function 'ipc_imem_sys_devlink_close':
>> drivers/net/wwan/iosm/iosm_ipc_imem_ops.c:397:17: error: variable 'curr_phase' set but not used [-Werror=unused-but-set-variable]
397 | enum ipc_phase curr_phase;
| ^~~~~~~~~~
cc1: all warnings being treated as errors
vim +/curr_phase +397 drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
389
390 /* Release a SIO channel link to CP. */
391 void ipc_imem_sys_devlink_close(struct iosm_devlink *ipc_devlink)
392 {
393 struct iosm_imem *ipc_imem = ipc_devlink->pcie->imem;
394 int boot_check_timeout = BOOT_CHECK_DEFAULT_TIMEOUT;
395 enum ipc_mem_exec_stage exec_stage;
396 struct ipc_mem_channel *channel;
> 397 enum ipc_phase curr_phase;
398 int status = 0;
399 u32 tail = 0;
400
401 channel = ipc_imem->ipc_devlink->devlink_sio.channel;
402 curr_phase = ipc_imem->phase;
403 /* Increase the total wait time to boot_check_timeout */
404 do {
405 exec_stage = ipc_mmio_get_exec_stage(ipc_imem->mmio);
406 if (exec_stage == IPC_MEM_EXEC_STAGE_RUN ||
407 exec_stage == IPC_MEM_EXEC_STAGE_PSI)
408 break;
409 msleep(20);
410 boot_check_timeout -= 20;
411 } while (boot_check_timeout > 0);
412
413 /* If there are any pending TDs then wait for Timeout/Completion before
414 * closing pipe.
415 */
416 if (channel->ul_pipe.old_tail != channel->ul_pipe.old_head) {
417 status = wait_for_completion_interruptible_timeout
418 (&ipc_imem->ul_pend_sem,
419 msecs_to_jiffies(IPC_PEND_DATA_TIMEOUT));
420 if (status == 0) {
421 dev_dbg(ipc_imem->dev,
422 "Data Timeout on UL-Pipe:%d Head:%d Tail:%d",
423 channel->ul_pipe.pipe_nr,
424 channel->ul_pipe.old_head,
425 channel->ul_pipe.old_tail);
426 }
427 }
428
429 ipc_protocol_get_head_tail_index(ipc_imem->ipc_protocol,
430 &channel->dl_pipe, NULL, &tail);
431
432 if (tail != channel->dl_pipe.old_tail) {
433 status = wait_for_completion_interruptible_timeout
434 (&ipc_imem->dl_pend_sem,
435 msecs_to_jiffies(IPC_PEND_DATA_TIMEOUT));
436 if (status == 0) {
437 dev_dbg(ipc_imem->dev,
438 "Data Timeout on DL-Pipe:%d Head:%d Tail:%d",
439 channel->dl_pipe.pipe_nr,
440 channel->dl_pipe.old_head,
441 channel->dl_pipe.old_tail);
442 }
443 }
444
445 /* Due to wait for completion in messages, there is a small window
446 * between closing the pipe and updating the channel is closed. In this
447 * small window there could be HP update from Host Driver. Hence update
448 * the channel state as CLOSING to aviod unnecessary interrupt
449 * towards CP.
450 */
451 channel->state = IMEM_CHANNEL_CLOSING;
452 /* Release the pipe resources */
453 ipc_imem_pipe_cleanup(ipc_imem, &channel->ul_pipe);
454 ipc_imem_pipe_cleanup(ipc_imem, &channel->dl_pipe);
455 }
456
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks