[xlnx:xlnx_rebase_v5.4 842/1765] drivers/spi/spi-mem.c:18:6: warning: no previous prototype for function 'update_stripe'
by kernel test robot
Hi Amit,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 2f686fa6c0bf7fa168dc45dd7ce1359217212911
commit: 3780469dd372e934445de2fbb5e8cf6e712b9b99 [842/1765] spi: Add Zynq QSPI controller driver
config: x86_64-randconfig-r013-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/Xilinx/linux-xlnx/commit/3780469dd372e934445de2fbb5e8c...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 3780469dd372e934445de2fbb5e8cf6e712b9b99
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/spi/spi-mem.c:18:6: warning: no previous prototype for function 'update_stripe' [-Wmissing-prototypes]
bool update_stripe(const u8 opcode)
^
drivers/spi/spi-mem.c:18:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool update_stripe(const u8 opcode)
^
static
1 warning generated.
vim +/update_stripe +18 drivers/spi/spi-mem.c
17
> 18 bool update_stripe(const u8 opcode)
19 {
20 if (opcode == SPINOR_OP_BE_4K ||
21 opcode == SPINOR_OP_BE_32K ||
22 opcode == SPINOR_OP_CHIP_ERASE ||
23 opcode == SPINOR_OP_SE ||
24 opcode == SPINOR_OP_BE_32K_4B ||
25 opcode == SPINOR_OP_SE_4B ||
26 opcode == SPINOR_OP_BE_4K_4B ||
27 opcode == SPINOR_OP_WRSR ||
28 opcode == SPINOR_OP_WREAR ||
29 opcode == SPINOR_OP_BRWR ||
30 opcode == SPINOR_OP_WRSR2)
31 return false;
32
33 return true;
34 }
35
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[arnd-playground:asm-generic-uaccess-4 1/7] arch/um/kernel/skas/uaccess.c:211:15: error: '__strncpy_from_user' undeclared here (not in a function); did you mean 'strncpy_from_user'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git asm-generic-uaccess-4
head: d7d80410412f516869e09904cffd817acaeec742
commit: d6c30cddd046b12ea68ec67c50bac29cae3da28c [1/7] asm-generic/uaccess.h: remove __strncpy_from_user/__strnlen_user
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground asm-generic-uaccess-4
git checkout d6c30cddd046b12ea68ec67c50bac29cae3da28c
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/linkage.h:7,
from include/linux/fs.h:5,
from include/linux/highmem.h:5,
from arch/um/kernel/skas/uaccess.c:7:
>> arch/um/kernel/skas/uaccess.c:211:15: error: '__strncpy_from_user' undeclared here (not in a function); did you mean 'strncpy_from_user'?
211 | EXPORT_SYMBOL(__strncpy_from_user);
| ^~~~~~~~~~~~~~~~~~~
include/linux/export.h:98:16: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:160:34: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:163:29: note: in expansion of macro '_EXPORT_SYMBOL'
163 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
arch/um/kernel/skas/uaccess.c:211:1: note: in expansion of macro 'EXPORT_SYMBOL'
211 | EXPORT_SYMBOL(__strncpy_from_user);
| ^~~~~~~~~~~~~
>> arch/um/kernel/skas/uaccess.c:242:6: warning: no previous prototype for '__strnlen_user' [-Wmissing-prototypes]
242 | long __strnlen_user(const void __user *str, long len)
| ^~~~~~~~~~~~~~
vim +211 arch/um/kernel/skas/uaccess.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 191
d6c30cddd046b1 Arnd Bergmann 2020-01-16 192 long strncpy_from_user(char *dst, const char __user *src, long count)
^1da177e4c3f41 Linus Torvalds 2005-04-16 193 {
f8d65d27e677da Richard Weinberger 2015-05-12 194 long n;
^1da177e4c3f41 Linus Torvalds 2005-04-16 195 char *ptr = dst;
^1da177e4c3f41 Linus Torvalds 2005-04-16 196
d6c30cddd046b1 Arnd Bergmann 2020-01-16 197 if (!access_ok(src, 1))
d6c30cddd046b1 Arnd Bergmann 2020-01-16 198 return -EFAULT;
d6c30cddd046b1 Arnd Bergmann 2020-01-16 199
db68ce10c4f0a2 Al Viro 2017-03-20 200 if (uaccess_kernel()) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 201 strncpy(dst, (__force void *) src, count);
8ca842c4b5cbc7 Jeff Dike 2007-10-16 202 return strnlen(dst, count);
^1da177e4c3f41 Linus Torvalds 2005-04-16 203 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 204
^1da177e4c3f41 Linus Torvalds 2005-04-16 205 n = buffer_op((unsigned long) src, count, 0, strncpy_chunk_from_user,
^1da177e4c3f41 Linus Torvalds 2005-04-16 206 &ptr);
^1da177e4c3f41 Linus Torvalds 2005-04-16 207 if (n != 0)
8ca842c4b5cbc7 Jeff Dike 2007-10-16 208 return -EFAULT;
8ca842c4b5cbc7 Jeff Dike 2007-10-16 209 return strnlen(dst, count);
^1da177e4c3f41 Linus Torvalds 2005-04-16 210 }
f8d65d27e677da Richard Weinberger 2015-05-12 @211 EXPORT_SYMBOL(__strncpy_from_user);
^1da177e4c3f41 Linus Torvalds 2005-04-16 212
^1da177e4c3f41 Linus Torvalds 2005-04-16 213 static int clear_chunk(unsigned long addr, int len, void *unused)
^1da177e4c3f41 Linus Torvalds 2005-04-16 214 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 215 memset((void *) addr, 0, len);
8ca842c4b5cbc7 Jeff Dike 2007-10-16 216 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 217 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 218
f8d65d27e677da Richard Weinberger 2015-05-12 219 unsigned long __clear_user(void __user *mem, unsigned long len)
^1da177e4c3f41 Linus Torvalds 2005-04-16 220 {
db68ce10c4f0a2 Al Viro 2017-03-20 221 if (uaccess_kernel()) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 222 memset((__force void*)mem, 0, len);
8ca842c4b5cbc7 Jeff Dike 2007-10-16 223 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 224 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 225
f8d65d27e677da Richard Weinberger 2015-05-12 226 return buffer_op((unsigned long) mem, len, 1, clear_chunk, NULL);
^1da177e4c3f41 Linus Torvalds 2005-04-16 227 }
f8d65d27e677da Richard Weinberger 2015-05-12 228 EXPORT_SYMBOL(__clear_user);
^1da177e4c3f41 Linus Torvalds 2005-04-16 229
^1da177e4c3f41 Linus Torvalds 2005-04-16 230 static int strnlen_chunk(unsigned long str, int len, void *arg)
^1da177e4c3f41 Linus Torvalds 2005-04-16 231 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 232 int *len_ptr = arg, n;
^1da177e4c3f41 Linus Torvalds 2005-04-16 233
^1da177e4c3f41 Linus Torvalds 2005-04-16 234 n = strnlen((void *) str, len);
^1da177e4c3f41 Linus Torvalds 2005-04-16 235 *len_ptr += n;
^1da177e4c3f41 Linus Torvalds 2005-04-16 236
^1da177e4c3f41 Linus Torvalds 2005-04-16 237 if (n < len)
8ca842c4b5cbc7 Jeff Dike 2007-10-16 238 return 1;
8ca842c4b5cbc7 Jeff Dike 2007-10-16 239 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 240 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 241
f8d65d27e677da Richard Weinberger 2015-05-12 @242 long __strnlen_user(const void __user *str, long len)
^1da177e4c3f41 Linus Torvalds 2005-04-16 243 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 244 int count = 0, n;
^1da177e4c3f41 Linus Torvalds 2005-04-16 245
db68ce10c4f0a2 Al Viro 2017-03-20 246 if (uaccess_kernel())
8ca842c4b5cbc7 Jeff Dike 2007-10-16 247 return strnlen((__force char*)str, len) + 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 248
^1da177e4c3f41 Linus Torvalds 2005-04-16 249 n = buffer_op((unsigned long) str, len, 0, strnlen_chunk, &count);
^1da177e4c3f41 Linus Torvalds 2005-04-16 250 if (n == 0)
8ca842c4b5cbc7 Jeff Dike 2007-10-16 251 return count + 1;
3179ce7254ffa4 Richard Weinberger 2013-05-11 252 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 253 }
f8d65d27e677da Richard Weinberger 2015-05-12 254 EXPORT_SYMBOL(__strnlen_user);
dd3035a21ba7cc Anton Ivanov 2021-03-12 255
:::::: The code at line 211 was first introduced by commit
:::::: f8d65d27e677da0ce33de570e3068308a77ed2b1 um: Rework uaccess code
:::::: TO: Richard Weinberger <richard(a)nod.at>
:::::: CC: Richard Weinberger <richard(a)nod.at>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
collect2: error: ld returned 1 exit status
by kernel test robot
Hi Alexei,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b
commit: d71fa5c9763c24dd997a2fa4feb7a13a95bab42c bpf: Add kernel module with user mode driver that populates bpffs.
date: 11 months ago
config: i386-randconfig-a001-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.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 d71fa5c9763c24dd997a2fa4feb7a13a95bab42c
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 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 >>):
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libelf.a when searching for -lelf
/usr/bin/ld: cannot find -lelf
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when searching for -lz
>> collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH net-next v14 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver
by kernel test robot
Hi "Łukasz,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/ukasz-Stelmach/dt-bindings-vendo...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 0d6835ffe50c9c1f098b5704394331710b67af48
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.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
# https://github.com/0day-ci/linux/commit/54c43f503b1bb5d00f6630eae9c172751...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review ukasz-Stelmach/dt-bindings-vendor-prefixes-Add-asix-prefix/20210720-144740
git checkout 54c43f503b1bb5d00f6630eae9c1727519c74a40
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=m68k
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 >>):
In file included from include/linux/byteorder/big_endian.h:5,
from arch/m68k/include/uapi/asm/byteorder.h:5,
from include/asm-generic/bitops/le.h:7,
from arch/m68k/include/asm/bitops.h:529,
from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/spi/spi.h:10,
from drivers/net/ethernet/asix/ax88796c_spi.c:12:
drivers/net/ethernet/asix/ax88796c_spi.c: In function 'axspi_read_reg':
>> drivers/net/ethernet/asix/ax88796c_spi.c:95:21: error: passing argument 1 of '__swab16s' from incompatible pointer type [-Werror=incompatible-pointer-types]
95 | le16_to_cpus(ax_spi->rx_buf);
include/uapi/linux/byteorder/big_endian.h:97:38: note: in definition of macro '__le16_to_cpus'
97 | #define __le16_to_cpus(x) __swab16s((x))
| ^
drivers/net/ethernet/asix/ax88796c_spi.c:95:2: note: in expansion of macro 'le16_to_cpus'
95 | le16_to_cpus(ax_spi->rx_buf);
| ^~~~~~~~~~~~
In file included from include/linux/swab.h:5,
from include/uapi/linux/byteorder/big_endian.h:13,
from include/linux/byteorder/big_endian.h:5,
from arch/m68k/include/uapi/asm/byteorder.h:5,
from include/asm-generic/bitops/le.h:7,
from arch/m68k/include/asm/bitops.h:529,
from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/spi/spi.h:10,
from drivers/net/ethernet/asix/ax88796c_spi.c:12:
include/uapi/linux/swab.h:240:37: note: expected '__u16 *' {aka 'short unsigned int *'} but argument is of type 'u8 *' {aka 'unsigned char *'}
240 | static inline void __swab16s(__u16 *p)
| ~~~~~~~^
cc1: some warnings being treated as errors
vim +/__swab16s +95 drivers/net/ethernet/asix/ax88796c_spi.c
10
11 #include <linux/string.h>
> 12 #include <linux/spi/spi.h>
13
14 #include "ax88796c_spi.h"
15
16 const u8 ax88796c_rx_cmd_buf[5] = {AX_SPICMD_READ_RXQ, 0xFF, 0xFF, 0xFF, 0xFF};
17 const u8 ax88796c_tx_cmd_buf[4] = {AX_SPICMD_WRITE_TXQ, 0xFF, 0xFF, 0xFF};
18
19 /* driver bus management functions */
20 int axspi_wakeup(struct axspi_data *ax_spi)
21 {
22 int ret;
23
24 ax_spi->cmd_buf[0] = AX_SPICMD_EXIT_PWD; /* OP */
25 ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 1);
26 if (ret)
27 dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
28 return ret;
29 }
30
31 int axspi_read_status(struct axspi_data *ax_spi, struct spi_status *status)
32 {
33 int ret;
34
35 /* OP */
36 ax_spi->cmd_buf[0] = AX_SPICMD_READ_STATUS;
37 ret = spi_write_then_read(ax_spi->spi, ax_spi->cmd_buf, 1, (u8 *)&status, 3);
38 if (ret)
39 dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
40 else
41 le16_to_cpus(&status->isr);
42
43 return ret;
44 }
45
46 int axspi_read_rxq(struct axspi_data *ax_spi, void *data, int len)
47 {
48 struct spi_transfer *xfer = ax_spi->spi_rx_xfer;
49 int ret;
50
51 memcpy(ax_spi->cmd_buf, ax88796c_rx_cmd_buf, 5);
52
53 xfer->tx_buf = ax_spi->cmd_buf;
54 xfer->rx_buf = NULL;
55 xfer->len = ax_spi->comp ? 2 : 5;
56 xfer->bits_per_word = 8;
57 spi_message_add_tail(xfer, &ax_spi->rx_msg);
58
59 xfer++;
60 xfer->rx_buf = data;
61 xfer->tx_buf = NULL;
62 xfer->len = len;
63 xfer->bits_per_word = 8;
64 spi_message_add_tail(xfer, &ax_spi->rx_msg);
65 ret = spi_sync(ax_spi->spi, &ax_spi->rx_msg);
66 if (ret)
67 dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
68
69 return ret;
70 }
71
72 int axspi_write_txq(const struct axspi_data *ax_spi, void *data, int len)
73 {
74 return spi_write(ax_spi->spi, data, len);
75 }
76
77 u16 axspi_read_reg(struct axspi_data *ax_spi, u8 reg)
78 {
79 int ret;
80 int len = ax_spi->comp ? 3 : 4;
81
82 ax_spi->cmd_buf[0] = 0x03; /* OP code read register */
83 ax_spi->cmd_buf[1] = reg; /* register address */
84 ax_spi->cmd_buf[2] = 0xFF; /* dumy cycle */
85 ax_spi->cmd_buf[3] = 0xFF; /* dumy cycle */
86 ret = spi_write_then_read(ax_spi->spi,
87 ax_spi->cmd_buf, len,
88 ax_spi->rx_buf, 2);
89 if (ret) {
90 dev_err(&ax_spi->spi->dev,
91 "%s() failed: ret = %d\n", __func__, ret);
92 return 0xFFFF;
93 }
94
> 95 le16_to_cpus(ax_spi->rx_buf);
96
97 return *(u16 *)ax_spi->rx_buf;
98 }
99
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH net-next] net: phy: at803x: simplify custom phy id matching
by kernel test robot
Hi Russell,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Russell-King/net-phy-at803x-simp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git e93abb840a2c356ed2809c31fcedb058601ac2e4
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.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
# https://github.com/0day-ci/linux/commit/2f590b7f42d30d029ec56cec8429effe8...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Russell-King/net-phy-at803x-simplify-custom-phy-id-matching/20210720-214010
git checkout 2f590b7f42d30d029ec56cec8429effe8505cfb9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc
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/phy/at803x.c: In function 'at803x_get_features':
>> drivers/net/phy/at803x.c:706:7: error: implicit declaration of function 'at803x_match_phy_id' [-Werror=implicit-function-declaration]
706 | if (!at803x_match_phy_id(phydev, ATH8031_PHY_ID))
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/at803x_match_phy_id +706 drivers/net/phy/at803x.c
2318ca8aef3877 Michael Walle 2020-01-30 697
b856150c8098f1 David Bauer 2021-06-27 698 static int at803x_get_features(struct phy_device *phydev)
b856150c8098f1 David Bauer 2021-06-27 699 {
b856150c8098f1 David Bauer 2021-06-27 700 int err;
b856150c8098f1 David Bauer 2021-06-27 701
b856150c8098f1 David Bauer 2021-06-27 702 err = genphy_read_abilities(phydev);
b856150c8098f1 David Bauer 2021-06-27 703 if (err)
b856150c8098f1 David Bauer 2021-06-27 704 return err;
b856150c8098f1 David Bauer 2021-06-27 705
b856150c8098f1 David Bauer 2021-06-27 @706 if (!at803x_match_phy_id(phydev, ATH8031_PHY_ID))
b856150c8098f1 David Bauer 2021-06-27 707 return 0;
b856150c8098f1 David Bauer 2021-06-27 708
b856150c8098f1 David Bauer 2021-06-27 709 /* AR8031/AR8033 have different status registers
b856150c8098f1 David Bauer 2021-06-27 710 * for copper and fiber operation. However, the
b856150c8098f1 David Bauer 2021-06-27 711 * extended status register is the same for both
b856150c8098f1 David Bauer 2021-06-27 712 * operation modes.
b856150c8098f1 David Bauer 2021-06-27 713 *
b856150c8098f1 David Bauer 2021-06-27 714 * As a result of that, ESTATUS_1000_XFULL is set
b856150c8098f1 David Bauer 2021-06-27 715 * to 1 even when operating in copper TP mode.
b856150c8098f1 David Bauer 2021-06-27 716 *
b856150c8098f1 David Bauer 2021-06-27 717 * Remove this mode from the supported link modes,
b856150c8098f1 David Bauer 2021-06-27 718 * as this driver currently only supports copper
b856150c8098f1 David Bauer 2021-06-27 719 * operation.
b856150c8098f1 David Bauer 2021-06-27 720 */
b856150c8098f1 David Bauer 2021-06-27 721 linkmode_clear_bit(ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
b856150c8098f1 David Bauer 2021-06-27 722 phydev->supported);
b856150c8098f1 David Bauer 2021-06-27 723 return 0;
b856150c8098f1 David Bauer 2021-06-27 724 }
b856150c8098f1 David Bauer 2021-06-27 725
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[drm-intel:drm-intel-gt-next 6/30] drivers/gpu/drm/i915/gem/i915_gem_context.c:364:1: error: unused function '__context_engines_static'
by kernel test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-gt-next
head: ca06f93638362bf83584cdf33897822bf1578cf9
commit: 4a766ae40ec8330103a27922b5aa978fdf8bc005 [6/30] drm/i915: Drop the CONTEXT_CLONE API (v2)
config: x86_64-randconfig-r024-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add drm-intel git://anongit.freedesktop.org/drm-intel
git fetch --no-tags drm-intel drm-intel-gt-next
git checkout 4a766ae40ec8330103a27922b5aa978fdf8bc005
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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/gpu/drm/i915/gem/i915_gem_context.c:364:1: error: unused function '__context_engines_static' [-Werror,-Wunused-function]
__context_engines_static(const struct i915_gem_context *ctx)
^
1 error generated.
vim +/__context_engines_static +364 drivers/gpu/drm/i915/gem/i915_gem_context.c
40521054fd46f9 drivers/gpu/drm/i915/i915_gem_context.c Ben Widawsky 2012-06-04 362
2e0986a58cc4f2 drivers/gpu/drm/i915/gem/i915_gem_context.c Chris Wilson 2019-10-23 363 static inline struct i915_gem_engines *
2e0986a58cc4f2 drivers/gpu/drm/i915/gem/i915_gem_context.c Chris Wilson 2019-10-23 @364 __context_engines_static(const struct i915_gem_context *ctx)
2e0986a58cc4f2 drivers/gpu/drm/i915/gem/i915_gem_context.c Chris Wilson 2019-10-23 365 {
2e0986a58cc4f2 drivers/gpu/drm/i915/gem/i915_gem_context.c Chris Wilson 2019-10-23 366 return rcu_dereference_protected(ctx->engines, true);
2e0986a58cc4f2 drivers/gpu/drm/i915/gem/i915_gem_context.c Chris Wilson 2019-10-23 367 }
2e0986a58cc4f2 drivers/gpu/drm/i915/gem/i915_gem_context.c Chris Wilson 2019-10-23 368
:::::: The code at line 364 was first introduced by commit
:::::: 2e0986a58cc4f2e7f9e7ede19ec32b9c116d0068 drm/i915/gem: Cancel contexts when hangchecking is disabled
:::::: TO: Chris Wilson <chris(a)chris-wilson.co.uk>
:::::: CC: Chris Wilson <chris(a)chris-wilson.co.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH][RFC] sched/cpuacct: Fix cpuacct charge
by kernel test robot
Hi Li,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on asm-generic/master]
[also build test WARNING on tip/sched/core tip/master linux/master linus/master v5.14-rc2 next-20210720]
[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/Li-RongQing/sched-cpuacct-Fix-cp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 10.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
# https://github.com/0day-ci/linux/commit/b7cbc83d1da5b3b55713e72269c478683...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Li-RongQing/sched-cpuacct-Fix-cpuacct-charge/20210720-150427
git checkout b7cbc83d1da5b3b55713e72269c478683f02c4eb
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash kernel/sched/
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 >>):
kernel/sched/cpuacct.c: In function 'cpuacct_charge':
kernel/sched/cpuacct.c:344:25: error: implicit declaration of function 'get_irq_regs_cpu'; did you mean 'get_irq_regs'? [-Werror=implicit-function-declaration]
344 | struct pt_regs *regs = get_irq_regs_cpu(cpu) ? : task_pt_regs(tsk);
| ^~~~~~~~~~~~~~~~
| get_irq_regs
>> kernel/sched/cpuacct.c:344:49: warning: pointer/integer type mismatch in conditional expression
344 | struct pt_regs *regs = get_irq_regs_cpu(cpu) ? : task_pt_regs(tsk);
| ^
cc1: some warnings being treated as errors
vim +344 kernel/sched/cpuacct.c
333
334 /*
335 * charge this task's execution time to its accounting group.
336 *
337 * called with rq->lock held.
338 */
339 void cpuacct_charge(struct task_struct *tsk, u64 cputime)
340 {
341 struct cpuacct *ca;
342 int index = CPUACCT_STAT_SYSTEM;
343 int cpu = task_cpu(tsk);
> 344 struct pt_regs *regs = get_irq_regs_cpu(cpu) ? : task_pt_regs(tsk);
345
346 if (regs && user_mode(regs))
347 index = CPUACCT_STAT_USER;
348
349 rcu_read_lock();
350
351 for (ca = task_ca(tsk); ca; ca = parent_ca(ca))
352 __this_cpu_add(ca->cpuusage->usages[index], cputime);
353
354 rcu_read_unlock();
355 }
356
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months