Re: [PATCH v7 4/5] printk: Userspace format indexing support
by kernel test robot
Hi Chris,
I love your patch! Perhaps something to improve:
[auto build test WARNING on jeyu/modules-next]
[also build test WARNING on linux/master soc/for-next openrisc/for-next powerpc/next asm-generic/master driver-core/driver-core-testing linus/master v5.13-rc6 next-20210616]
[cannot apply to uml/linux-next tip/x86/core]
[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/Chris-Down/printk-Userspace-form...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git modules-next
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
# https://github.com/0day-ci/linux/commit/819166a91ddffdbf04d0b4e6905a5ab3b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Chris-Down/printk-Userspace-format-indexing-support/20210617-101450
git checkout 819166a91ddffdbf04d0b4e6905a5ab3b568194f
# 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 >>):
kernel/printk/index.c: In function 'pi_show':
kernel/printk/index.c:72:2: error: implicit declaration of function 'seq_escape_str'; did you mean 'seq_escape'? [-Werror=implicit-function-declaration]
72 | seq_escape_str(s, src, ESCAPE_ANY | ESCAPE_NAP | ESCAPE_APPEND, "\"\\")
| ^~~~~~~~~~~~~~
kernel/printk/index.c:110:3: note: in expansion of macro 'seq_escape_printf_format'
110 | seq_escape_printf_format(s, entry->subsys_fmt_prefix);
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/index.c:72:38: error: 'ESCAPE_NAP' undeclared (first use in this function); did you mean 'ESCAPE_NP'?
72 | seq_escape_str(s, src, ESCAPE_ANY | ESCAPE_NAP | ESCAPE_APPEND, "\"\\")
| ^~~~~~~~~~
kernel/printk/index.c:110:3: note: in expansion of macro 'seq_escape_printf_format'
110 | seq_escape_printf_format(s, entry->subsys_fmt_prefix);
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/index.c:72:38: note: each undeclared identifier is reported only once for each function it appears in
72 | seq_escape_str(s, src, ESCAPE_ANY | ESCAPE_NAP | ESCAPE_APPEND, "\"\\")
| ^~~~~~~~~~
kernel/printk/index.c:110:3: note: in expansion of macro 'seq_escape_printf_format'
110 | seq_escape_printf_format(s, entry->subsys_fmt_prefix);
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/index.c:72:51: error: 'ESCAPE_APPEND' undeclared (first use in this function); did you mean 'ESCAPE_ANY'?
72 | seq_escape_str(s, src, ESCAPE_ANY | ESCAPE_NAP | ESCAPE_APPEND, "\"\\")
| ^~~~~~~~~~~~~
kernel/printk/index.c:110:3: note: in expansion of macro 'seq_escape_printf_format'
110 | seq_escape_printf_format(s, entry->subsys_fmt_prefix);
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/index.c: At top level:
>> kernel/printk/index.c:140:6: warning: no previous prototype for 'pi_create_file' [-Wmissing-prototypes]
140 | void pi_create_file(struct module *mod)
| ^~~~~~~~~~~~~~
>> kernel/printk/index.c:146:6: warning: no previous prototype for 'pi_remove_file' [-Wmissing-prototypes]
146 | void pi_remove_file(struct module *mod)
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/pi_create_file +140 kernel/printk/index.c
139
> 140 void pi_create_file(struct module *mod)
141 {
142 debugfs_create_file(pi_get_module_name(mod), 0444, dfs_index,
143 mod, &dfs_index_fops);
144 }
145
> 146 void pi_remove_file(struct module *mod)
147 {
148 debugfs_remove(debugfs_lookup(pi_get_module_name(mod), dfs_index));
149 }
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH 3/4] serial: 8250: Add proper clock handling for OxSemi PCIe devices
by kernel test robot
Hi "Maciej,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.13-rc6 next-20210616]
[cannot apply to tty/tty-testing]
[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/Maciej-W-Rozycki/serial-8250-Fix...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 94f0b2d4a1d0c52035aef425da5e022bd2cb1c71
config: x86_64-randconfig-s021-20210617 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/d3a55e8397b71f343ef931cd098d42a13...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Maciej-W-Rozycki/serial-8250-Fixes-for-Oxford-Semiconductor-950-UARTs/20210616-201047
git checkout d3a55e8397b71f343ef931cd098d42a13faf9047
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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>
sparse warnings: (new ones prefixed by >>)
>> drivers/tty/serial/8250/8250_pci.c:1258:32: sparse: sparse: cast truncates bits from constant value (ffffff7f becomes 7f)
vim +1258 drivers/tty/serial/8250/8250_pci.c
1241
1242 /*
1243 * For Tornado devices we force MCR[7] set for the Divide-by-M N/8 baud rate
1244 * generator prescaler (CPR and CPR2). Otherwise no prescaler would be used.
1245 */
1246 static int pci_oxsemi_tornado_setup(struct serial_private *priv,
1247 const struct pciserial_board *board,
1248 struct uart_8250_port *up, int idx)
1249 {
1250 struct pci_dev *dev = priv->dev;
1251
1252 /* OxSemi Tornado devices are all 0xCxxx */
1253 if (dev->vendor == PCI_VENDOR_ID_OXSEMI &&
1254 (dev->device & 0xF000) == 0xC000) {
1255 up->port.get_divisor = pci_oxsemi_tornado_get_divisor;
1256 up->port.set_divisor = pci_oxsemi_tornado_set_divisor;
1257
> 1258 up->mcr_mask = ~UART_MCR_CLKSEL;
1259 up->mcr_force = UART_MCR_CLKSEL;
1260 }
1261
1262 return pci_default_setup(priv, board, up, idx);
1263 }
1264
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[luto:sched/lazymm 4/10] kernel/kthread.c:1328:30: error: passing 'void' to parameter of incompatible type 'int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git sched/lazymm
head: ecc3992c36cb88087df9c537e2326efb51c95e31
commit: 764be33e0b82bdce7e245d86561d85db9604e2c1 [4/10] membarrier: Make the post-switch-mm barrier explicit
config: arm-randconfig-r034-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id...
git remote add luto https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto sched/lazymm
git checkout 764be33e0b82bdce7e245d86561d85db9604e2c1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>):
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
kernel/kthread.c:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct'
membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
~~ ^
arch/arm/include/asm/atomic.h:25:35: note: expanded from macro 'atomic_read'
#define atomic_read(v) READ_ONCE((v)->counter)
^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
kernel/kthread.c:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct'
membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
~~ ^
arch/arm/include/asm/atomic.h:25:35: note: expanded from macro 'atomic_read'
#define atomic_read(v) READ_ONCE((v)->counter)
^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:48: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
kernel/kthread.c:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct'
membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
~~ ^
arch/arm/include/asm/atomic.h:25:35: note: expanded from macro 'atomic_read'
#define atomic_read(v) READ_ONCE((v)->counter)
^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:279:13: note: expanded from macro '__unqual_scalar_typeof'
_Generic((x), \
^
kernel/kthread.c:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct'
membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
~~ ^
arch/arm/include/asm/atomic.h:25:35: note: expanded from macro 'atomic_read'
#define atomic_read(v) READ_ONCE((v)->counter)
^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:286:15: note: expanded from macro '__unqual_scalar_typeof'
default: (x)))
^
kernel/kthread.c:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct'
membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
~~ ^
arch/arm/include/asm/atomic.h:25:35: note: expanded from macro 'atomic_read'
#define atomic_read(v) READ_ONCE((v)->counter)
^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
>> kernel/kthread.c:1328:30: error: passing 'void' to parameter of incompatible type 'int'
membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/include/asm/atomic.h:25:24: note: expanded from macro 'atomic_read'
#define atomic_read(v) READ_ONCE((v)->counter)
^~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE'
#define READ_ONCE(x) \
^
include/linux/sched/mm.h:372:52: note: passing argument to parameter 'membarrier_state' here
static inline void membarrier_finish_switch_mm(int membarrier_state)
^
9 errors generated.
vim +1328 kernel/kthread.c
1304
1305 /**
1306 * kthread_use_mm - make the calling kthread operate on an address space
1307 * @mm: address space to operate on
1308 */
1309 void kthread_use_mm(struct mm_struct *mm)
1310 {
1311 struct mm_struct *active_mm;
1312 struct task_struct *tsk = current;
1313
1314 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD));
1315 WARN_ON_ONCE(tsk->mm);
1316
1317 task_lock(tsk);
1318 /* Hold off tlb flush IPIs while switching mm's */
1319 local_irq_disable();
1320 active_mm = tsk->active_mm;
1321 if (active_mm != mm) {
1322 mmgrab(mm);
1323 tsk->active_mm = mm;
1324 }
1325 tsk->mm = mm;
1326 membarrier_update_current_mm(mm);
1327 switch_mm_irqs_off(active_mm, mm, tsk);
> 1328 membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
1329 local_irq_enable();
1330 task_unlock(tsk);
1331 #ifdef finish_arch_post_lock_switch
1332 finish_arch_post_lock_switch();
1333 #endif
1334
1335 if (active_mm != mm)
1336 mmdrop(active_mm);
1337
1338 to_kthread(tsk)->oldfs = force_uaccess_begin();
1339 }
1340 EXPORT_SYMBOL_GPL(kthread_use_mm);
1341
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH v4 for-next 3/3] IB/core: Obtain subnet_prefix from cache in IB devices
by kernel test robot
Hi Anand,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on rdma/for-next]
[also build test ERROR on next-20210616]
[cannot apply to linux/master linus/master v5.13-rc6]
[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/Anand-Khoje/IB-core-Obtaining-su...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: powerpc64-randconfig-r012-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/495253a987df586d8c5f4c525999cdf39...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Anand-Khoje/IB-core-Obtaining-subnet_prefix-from-cache-in/20210617-102611
git checkout 495253a987df586d8c5f4c525999cdf39c5823f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 drivers/infiniband/core/cache.c:36:
In file included from include/linux/module.h:12:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/infiniband/core/cache.c:1531:29: error: no member named 'cache' in 'struct ib_device'
write_unlock_irq(&device->cache.lock);
~~~~~~ ^
include/linux/rwlock.h:108:55: note: expanded from macro 'write_unlock_irq'
#define write_unlock_irq(lock) _raw_write_unlock_irq(lock)
^~~~
1 warning and 1 error generated.
vim +1531 drivers/infiniband/core/cache.c
1463
1464 static int
1465 ib_cache_update(struct ib_device *device, u32 port, bool update_gids,
1466 bool update_pkeys, bool enforce_security)
1467 {
1468 struct ib_port_attr *tprops = NULL;
1469 struct ib_pkey_cache *pkey_cache = NULL;
1470 struct ib_pkey_cache *old_pkey_cache = NULL;
1471 union ib_gid gid;
1472 int i;
1473 int ret;
1474
1475 if (!rdma_is_port_valid(device, port))
1476 return -EINVAL;
1477
1478 tprops = kmalloc(sizeof *tprops, GFP_KERNEL);
1479 if (!tprops)
1480 return -ENOMEM;
1481
1482 ret = ib_query_port(device, port, tprops);
1483 if (ret) {
1484 dev_warn(&device->dev, "ib_query_port failed (%d)\n", ret);
1485 goto err;
1486 }
1487
1488 if (!rdma_protocol_roce(device, port) && update_gids) {
1489 ret = config_non_roce_gid_cache(device, port,
1490 tprops->gid_tbl_len);
1491 if (ret)
1492 goto err;
1493 }
1494
1495 update_pkeys &= !!tprops->pkey_tbl_len;
1496
1497 if (update_pkeys) {
1498 pkey_cache = kmalloc(struct_size(pkey_cache, table,
1499 tprops->pkey_tbl_len),
1500 GFP_KERNEL);
1501 if (!pkey_cache) {
1502 ret = -ENOMEM;
1503 goto err;
1504 }
1505
1506 pkey_cache->table_len = tprops->pkey_tbl_len;
1507
1508 for (i = 0; i < pkey_cache->table_len; ++i) {
1509 ret = ib_query_pkey(device, port, i,
1510 pkey_cache->table + i);
1511 if (ret) {
1512 dev_warn(&device->dev,
1513 "ib_query_pkey failed (%d) for index %d\n",
1514 ret, i);
1515 goto err;
1516 }
1517 }
1518 }
1519
1520 write_lock_irq(&device->cache_lock);
1521
1522 if (update_pkeys) {
1523 old_pkey_cache = device->port_data[port].cache.pkey;
1524 device->port_data[port].cache.pkey = pkey_cache;
1525 }
1526 device->port_data[port].cache.lmc = tprops->lmc;
1527 device->port_data[port].cache.port_state = tprops->state;
1528
1529 ret = rdma_query_gid(device, port, 0, &gid);
1530 if (ret) {
> 1531 write_unlock_irq(&device->cache.lock);
1532 goto err;
1533 }
1534
1535 device->port_data[port].cache.subnet_prefix =
1536 be64_to_cpu(gid.global.subnet_prefix);
1537
1538 write_unlock_irq(&device->cache_lock);
1539
1540 if (enforce_security)
1541 ib_security_cache_change(device,
1542 port,
1543 be64_to_cpu(gid.global.subnet_prefix));
1544
1545 kfree(old_pkey_cache);
1546 kfree(tprops);
1547 return 0;
1548
1549 err:
1550 kfree(pkey_cache);
1551 kfree(tprops);
1552 return ret;
1553 }
1554
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH v4 for-next 3/3] IB/core: Obtain subnet_prefix from cache in IB devices
by kernel test robot
Hi Anand,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on rdma/for-next]
[also build test ERROR on next-20210616]
[cannot apply to linux/master linus/master v5.13-rc6]
[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/Anand-Khoje/IB-core-Obtaining-su...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: powerpc64-randconfig-r024-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/495253a987df586d8c5f4c525999cdf39...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Anand-Khoje/IB-core-Obtaining-subnet_prefix-from-cache-in/20210617-102611
git checkout 495253a987df586d8c5f4c525999cdf39c5823f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 drivers/infiniband/core/cache.c:36:
In file included from include/linux/module.h:12:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:308:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/infiniband/core/cache.c:1531:29: error: no member named 'cache' in 'struct ib_device'
write_unlock_irq(&device->cache.lock);
~~~~~~ ^
include/linux/rwlock.h:108:55: note: expanded from macro 'write_unlock_irq'
#define write_unlock_irq(lock) _raw_write_unlock_irq(lock)
^~~~
1 warning and 1 error generated.
vim +1531 drivers/infiniband/core/cache.c
1463
1464 static int
1465 ib_cache_update(struct ib_device *device, u32 port, bool update_gids,
1466 bool update_pkeys, bool enforce_security)
1467 {
1468 struct ib_port_attr *tprops = NULL;
1469 struct ib_pkey_cache *pkey_cache = NULL;
1470 struct ib_pkey_cache *old_pkey_cache = NULL;
1471 union ib_gid gid;
1472 int i;
1473 int ret;
1474
1475 if (!rdma_is_port_valid(device, port))
1476 return -EINVAL;
1477
1478 tprops = kmalloc(sizeof *tprops, GFP_KERNEL);
1479 if (!tprops)
1480 return -ENOMEM;
1481
1482 ret = ib_query_port(device, port, tprops);
1483 if (ret) {
1484 dev_warn(&device->dev, "ib_query_port failed (%d)\n", ret);
1485 goto err;
1486 }
1487
1488 if (!rdma_protocol_roce(device, port) && update_gids) {
1489 ret = config_non_roce_gid_cache(device, port,
1490 tprops->gid_tbl_len);
1491 if (ret)
1492 goto err;
1493 }
1494
1495 update_pkeys &= !!tprops->pkey_tbl_len;
1496
1497 if (update_pkeys) {
1498 pkey_cache = kmalloc(struct_size(pkey_cache, table,
1499 tprops->pkey_tbl_len),
1500 GFP_KERNEL);
1501 if (!pkey_cache) {
1502 ret = -ENOMEM;
1503 goto err;
1504 }
1505
1506 pkey_cache->table_len = tprops->pkey_tbl_len;
1507
1508 for (i = 0; i < pkey_cache->table_len; ++i) {
1509 ret = ib_query_pkey(device, port, i,
1510 pkey_cache->table + i);
1511 if (ret) {
1512 dev_warn(&device->dev,
1513 "ib_query_pkey failed (%d) for index %d\n",
1514 ret, i);
1515 goto err;
1516 }
1517 }
1518 }
1519
1520 write_lock_irq(&device->cache_lock);
1521
1522 if (update_pkeys) {
1523 old_pkey_cache = device->port_data[port].cache.pkey;
1524 device->port_data[port].cache.pkey = pkey_cache;
1525 }
1526 device->port_data[port].cache.lmc = tprops->lmc;
1527 device->port_data[port].cache.port_state = tprops->state;
1528
1529 ret = rdma_query_gid(device, port, 0, &gid);
1530 if (ret) {
> 1531 write_unlock_irq(&device->cache.lock);
1532 goto err;
1533 }
1534
1535 device->port_data[port].cache.subnet_prefix =
1536 be64_to_cpu(gid.global.subnet_prefix);
1537
1538 write_unlock_irq(&device->cache_lock);
1539
1540 if (enforce_security)
1541 ib_security_cache_change(device,
1542 port,
1543 be64_to_cpu(gid.global.subnet_prefix));
1544
1545 kfree(old_pkey_cache);
1546 kfree(tprops);
1547 return 0;
1548
1549 err:
1550 kfree(pkey_cache);
1551 kfree(tprops);
1552 return ret;
1553 }
1554
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: + mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch added to -mm tree
by kernel test robot
Hi,
I love your patch! Perhaps something to improve:
[auto build test WARNING on powerpc/next]
[also build test WARNING on tip/x86/mm asm-generic/master linus/master sparc/master v5.13-rc6]
[cannot apply to sparc-next/master next-20210616]
[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/akpm-linux-foundation-org/mm-ren...
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: m68k-randconfig-s031-20210617 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/2ccec57c1def84dab91722c14fd5907ed...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review akpm-linux-foundation-org/mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t-patch-added-to-mm-tree/20210616-161816
git checkout 2ccec57c1def84dab91722c14fd5907ed7423426
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=m68k
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 >>)
>> arch/m68k/mm/motorola.c:265:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long pmd @@ got struct pmd_t [usertype] * @@
arch/m68k/mm/motorola.c:265:29: sparse: expected unsigned long pmd
arch/m68k/mm/motorola.c:265:29: sparse: got struct pmd_t [usertype] *
vim +265 arch/m68k/mm/motorola.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 248
^1da177e4c3f41 Linus Torvalds 2005-04-16 249 static pmd_t * __init kernel_ptr_table(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 250 {
ef9285f69f0efb Peter Zijlstra 2020-01-31 251 if (!last_pmd_table) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 252 unsigned long pmd, last;
^1da177e4c3f41 Linus Torvalds 2005-04-16 253 int i;
^1da177e4c3f41 Linus Torvalds 2005-04-16 254
^1da177e4c3f41 Linus Torvalds 2005-04-16 255 /* Find the last ptr table that was used in head.S and
^1da177e4c3f41 Linus Torvalds 2005-04-16 256 * reuse the remaining space in that page for further
^1da177e4c3f41 Linus Torvalds 2005-04-16 257 * ptr tables.
^1da177e4c3f41 Linus Torvalds 2005-04-16 258 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 259 last = (unsigned long)kernel_pg_dir;
^1da177e4c3f41 Linus Torvalds 2005-04-16 260 for (i = 0; i < PTRS_PER_PGD; i++) {
60e50f34b13e9e Mike Rapoport 2019-12-04 261 pud_t *pud = (pud_t *)(&kernel_pg_dir[i]);
60e50f34b13e9e Mike Rapoport 2019-12-04 262
60e50f34b13e9e Mike Rapoport 2019-12-04 263 if (!pud_present(*pud))
^1da177e4c3f41 Linus Torvalds 2005-04-16 264 continue;
60e50f34b13e9e Mike Rapoport 2019-12-04 @265 pmd = pgd_page_vaddr(kernel_pg_dir[i]);
^1da177e4c3f41 Linus Torvalds 2005-04-16 266 if (pmd > last)
^1da177e4c3f41 Linus Torvalds 2005-04-16 267 last = pmd;
^1da177e4c3f41 Linus Torvalds 2005-04-16 268 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 269
ef9285f69f0efb Peter Zijlstra 2020-01-31 270 last_pmd_table = (pmd_t *)last;
^1da177e4c3f41 Linus Torvalds 2005-04-16 271 #ifdef DEBUG
ef9285f69f0efb Peter Zijlstra 2020-01-31 272 printk("kernel_ptr_init: %p\n", last_pmd_table);
^1da177e4c3f41 Linus Torvalds 2005-04-16 273 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 274 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 275
ef9285f69f0efb Peter Zijlstra 2020-01-31 276 last_pmd_table += PTRS_PER_PMD;
41f1bf37a63ecd Geert Uytterhoeven 2020-08-26 277 if (PAGE_ALIGNED(last_pmd_table)) {
7e158826564fbb Geert Uytterhoeven 2020-08-26 278 last_pmd_table = memblock_alloc_low(PAGE_SIZE, PAGE_SIZE);
ef9285f69f0efb Peter Zijlstra 2020-01-31 279 if (!last_pmd_table)
8a7f97b902f4fb Mike Rapoport 2019-03-11 280 panic("%s: Failed to allocate %lu bytes align=%lx\n",
8a7f97b902f4fb Mike Rapoport 2019-03-11 281 __func__, PAGE_SIZE, PAGE_SIZE);
^1da177e4c3f41 Linus Torvalds 2005-04-16 282
ef9285f69f0efb Peter Zijlstra 2020-01-31 283 clear_page(last_pmd_table);
ef9285f69f0efb Peter Zijlstra 2020-01-31 284 mmu_page_ctor(last_pmd_table);
^1da177e4c3f41 Linus Torvalds 2005-04-16 285 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 286
ef9285f69f0efb Peter Zijlstra 2020-01-31 287 return last_pmd_table;
^1da177e4c3f41 Linus Torvalds 2005-04-16 288 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 289
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH] dma-buf: fix and rework dma_buf_poll
by kernel test robot
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210616]
[cannot apply to tegra-drm/drm/tegra/for-next linus/master v5.13-rc6 v5.13-rc5 v5.13-rc4 v5.13-rc6]
[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/Christian-K-nig/dma-buf-fix-and-...
base: c7d4c1fd91ab4a6d2620497921a9c6bf54650ab8
config: s390-randconfig-r022-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/0day-ci/linux/commit/dfa9f2ec4c082b73e644e2c565e58e229...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/dma-buf-fix-and-rework-dma_buf_poll/20210617-103036
git checkout dfa9f2ec4c082b73e644e2c565e58e2291f94463
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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/dma-buf/dma-buf.c:284:17: warning: variable 'fence_excl' is uninitialized when used here [-Wuninitialized]
dma_fence_put(fence_excl);
^~~~~~~~~~
drivers/dma-buf/dma-buf.c:213:30: note: initialize the variable 'fence_excl' to silence this warning
struct dma_fence *fence_excl;
^
= NULL
1 warning generated.
vim +/fence_excl +284 drivers/dma-buf/dma-buf.c
206
207 static __poll_t dma_buf_poll(struct file *file, poll_table *poll)
208 {
209 struct dma_buf_poll_cb_t *dcb;
210 struct dma_buf *dmabuf;
211 struct dma_resv *resv;
212 struct dma_resv_list *fobj;
213 struct dma_fence *fence_excl;
214 unsigned shared_count, seq;
215 struct dma_fence *fence;
216 __poll_t events;
217 int r, i;
218
219 dmabuf = file->private_data;
220 if (!dmabuf || !dmabuf->resv)
221 return EPOLLERR;
222
223 resv = dmabuf->resv;
224
225 poll_wait(file, &dmabuf->poll, poll);
226
227 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT);
228 if (!events)
229 return 0;
230
231 dcb = events & EPOLLOUT ? &dmabuf->cb_out : &dmabuf->cb_in;
232
233 /* Only queue a new one if we are not still waiting for the old one */
234 spin_lock_irq(&dmabuf->poll.lock);
235 if (dcb->active)
236 events = 0;
237 else
238 dcb->active = events;
239 spin_unlock_irq(&dmabuf->poll.lock);
240 if (!events)
241 return 0;
242
243 retry:
244 seq = read_seqcount_begin(&resv->seq);
245 rcu_read_lock();
246
247 fobj = rcu_dereference(resv->fence);
248 if (fobj && events & EPOLLOUT)
249 shared_count = fobj->shared_count;
250 else
251 shared_count = 0;
252
253 for (i = 0; i < shared_count; ++i) {
254 fence = rcu_dereference(fobj->shared[i]);
255 fence = dma_fence_get_rcu(fence);
256 if (!fence || read_seqcount_retry(&resv->seq, seq)) {
257 /* Concurrent modify detected, force re-check */
258 dma_fence_put(fence);
259 rcu_read_unlock();
260 goto retry;
261 }
262
263 r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb);
264 dma_fence_put(fence);
265 if (!r) {
266 /* Callback queued */
267 events = 0;
268 goto out;
269 }
270 }
271
272 fence = dma_resv_excl_fence(resv);
273 if (fence) {
274 fence = dma_fence_get_rcu(fence);
275 if (!fence || read_seqcount_retry(&resv->seq, seq)) {
276 /* Concurrent modify detected, force re-check */
277 dma_fence_put(fence);
278 rcu_read_unlock();
279 goto retry;
280
281 }
282
283 r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb);
> 284 dma_fence_put(fence_excl);
285 if (!r) {
286 /* Callback queued */
287 events = 0;
288 goto out;
289 }
290 }
291
292 /* No callback queued, wake up any additional waiters. */
293 dma_buf_poll_cb(NULL, &dcb->cb);
294
295 out:
296 rcu_read_unlock();
297 return events;
298 }
299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH] dma-buf: fix and rework dma_buf_poll
by kernel test robot
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210616]
[cannot apply to tegra-drm/drm/tegra/for-next linus/master v5.13-rc6 v5.13-rc5 v5.13-rc4 v5.13-rc6]
[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/Christian-K-nig/dma-buf-fix-and-...
base: c7d4c1fd91ab4a6d2620497921a9c6bf54650ab8
config: x86_64-randconfig-r022-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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/0day-ci/linux/commit/dfa9f2ec4c082b73e644e2c565e58e229...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/dma-buf-fix-and-rework-dma_buf_poll/20210617-103036
git checkout dfa9f2ec4c082b73e644e2c565e58e2291f94463
# 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/dma-buf/dma-buf.c:284:17: warning: variable 'fence_excl' is uninitialized when used here [-Wuninitialized]
dma_fence_put(fence_excl);
^~~~~~~~~~
drivers/dma-buf/dma-buf.c:213:30: note: initialize the variable 'fence_excl' to silence this warning
struct dma_fence *fence_excl;
^
= NULL
1 warning generated.
vim +/fence_excl +284 drivers/dma-buf/dma-buf.c
206
207 static __poll_t dma_buf_poll(struct file *file, poll_table *poll)
208 {
209 struct dma_buf_poll_cb_t *dcb;
210 struct dma_buf *dmabuf;
211 struct dma_resv *resv;
212 struct dma_resv_list *fobj;
213 struct dma_fence *fence_excl;
214 unsigned shared_count, seq;
215 struct dma_fence *fence;
216 __poll_t events;
217 int r, i;
218
219 dmabuf = file->private_data;
220 if (!dmabuf || !dmabuf->resv)
221 return EPOLLERR;
222
223 resv = dmabuf->resv;
224
225 poll_wait(file, &dmabuf->poll, poll);
226
227 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT);
228 if (!events)
229 return 0;
230
231 dcb = events & EPOLLOUT ? &dmabuf->cb_out : &dmabuf->cb_in;
232
233 /* Only queue a new one if we are not still waiting for the old one */
234 spin_lock_irq(&dmabuf->poll.lock);
235 if (dcb->active)
236 events = 0;
237 else
238 dcb->active = events;
239 spin_unlock_irq(&dmabuf->poll.lock);
240 if (!events)
241 return 0;
242
243 retry:
244 seq = read_seqcount_begin(&resv->seq);
245 rcu_read_lock();
246
247 fobj = rcu_dereference(resv->fence);
248 if (fobj && events & EPOLLOUT)
249 shared_count = fobj->shared_count;
250 else
251 shared_count = 0;
252
253 for (i = 0; i < shared_count; ++i) {
254 fence = rcu_dereference(fobj->shared[i]);
255 fence = dma_fence_get_rcu(fence);
256 if (!fence || read_seqcount_retry(&resv->seq, seq)) {
257 /* Concurrent modify detected, force re-check */
258 dma_fence_put(fence);
259 rcu_read_unlock();
260 goto retry;
261 }
262
263 r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb);
264 dma_fence_put(fence);
265 if (!r) {
266 /* Callback queued */
267 events = 0;
268 goto out;
269 }
270 }
271
272 fence = dma_resv_excl_fence(resv);
273 if (fence) {
274 fence = dma_fence_get_rcu(fence);
275 if (!fence || read_seqcount_retry(&resv->seq, seq)) {
276 /* Concurrent modify detected, force re-check */
277 dma_fence_put(fence);
278 rcu_read_unlock();
279 goto retry;
280
281 }
282
283 r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb);
> 284 dma_fence_put(fence_excl);
285 if (!r) {
286 /* Callback queued */
287 events = 0;
288 goto out;
289 }
290 }
291
292 /* No callback queued, wake up any additional waiters. */
293 dma_buf_poll_cb(NULL, &dcb->cb);
294
295 out:
296 rcu_read_unlock();
297 return events;
298 }
299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH 2/3] clk: qcom: Add msm8994 MMCC driver
by kernel test robot
Hi Konrad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on v5.13-rc6 next-20210616]
[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/Konrad-Dybcio/dt-bindings-clock-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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
# https://github.com/0day-ci/linux/commit/202d9429a66404a6a013fa23e6833ec01...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Konrad-Dybcio/dt-bindings-clock-Add-support-for-MSM8992-4-MMCC/20210617-084241
git checkout 202d9429a66404a6a013fa23e6833ec018c0b0bc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/clk/qcom/mmcc-msm8994.c:2324:20: warning: initialized field overwritten [-Woverride-init]
2324 | [JPEG0_CLK_SRC] = &jpeg0_clk_src.clkr,
| ^
drivers/clk/qcom/mmcc-msm8994.c:2324:20: note: (near initialization for 'mmcc_msm8994_clocks[35]')
drivers/clk/qcom/mmcc-msm8994.c:2400:19: warning: initialized field overwritten [-Woverride-init]
2400 | [ESC0_CLK_SRC] = &esc0_clk_src.clkr,
| ^
drivers/clk/qcom/mmcc-msm8994.c:2400:19: note: (near initialization for 'mmcc_msm8994_clocks[18]')
drivers/clk/qcom/mmcc-msm8994.c:2401:19: warning: initialized field overwritten [-Woverride-init]
2401 | [ESC1_CLK_SRC] = &esc1_clk_src.clkr,
| ^
drivers/clk/qcom/mmcc-msm8994.c:2401:19: note: (near initialization for 'mmcc_msm8994_clocks[19]')
drivers/clk/qcom/mmcc-msm8994.c:645:30: warning: 'ftbl_ocmemnoc_clk_src' defined but not used [-Wunused-const-variable=]
645 | static const struct freq_tbl ftbl_ocmemnoc_clk_src[] = {
| ^~~~~~~~~~~~~~~~~~~~~
vim +2324 drivers/clk/qcom/mmcc-msm8994.c
2291
2292 static struct clk_regmap *mmcc_msm8994_clocks[] = {
2293 [MMPLL0_EARLY] = &mmpll0_early.clkr,
2294 [MMPLL0_PLL] = &mmpll0.clkr,
2295 [MMPLL1_EARLY] = &mmpll1_early.clkr,
2296 [MMPLL1_PLL] = &mmpll1.clkr,
2297 [MMPLL3_EARLY] = &mmpll3_early.clkr,
2298 [MMPLL3_PLL] = &mmpll3.clkr,
2299 [MMPLL4_EARLY] = &mmpll4_early.clkr,
2300 [MMPLL4_PLL] = &mmpll4.clkr,
2301 [MMPLL5_EARLY] = &mmpll5_early.clkr,
2302 [MMPLL5_PLL] = &mmpll5.clkr,
2303 [AHB_CLK_SRC] = &ahb_clk_src.clkr,
2304 [AXI_CLK_SRC] = &axi_clk_src.clkr,
2305 [CSI0_CLK_SRC] = &csi0_clk_src.clkr,
2306 [CSI1_CLK_SRC] = &csi1_clk_src.clkr,
2307 [CSI2_CLK_SRC] = &csi2_clk_src.clkr,
2308 [CSI3_CLK_SRC] = &csi3_clk_src.clkr,
2309 [VFE0_CLK_SRC] = &vfe0_clk_src.clkr,
2310 [VFE1_CLK_SRC] = &vfe1_clk_src.clkr,
2311 [CPP_CLK_SRC] = &cpp_clk_src.clkr,
2312 [JPEG0_CLK_SRC] = &jpeg0_clk_src.clkr,
2313 [JPEG1_CLK_SRC] = &jpeg1_clk_src.clkr,
2314 [JPEG2_CLK_SRC] = &jpeg2_clk_src.clkr,
2315 [CSI2PHYTIMER_CLK_SRC] = &csi2phytimer_clk_src.clkr,
2316 [FD_CORE_CLK_SRC] = &fd_core_clk_src.clkr,
2317 [MDP_CLK_SRC] = &mdp_clk_src.clkr,
2318 [PCLK0_CLK_SRC] = &pclk0_clk_src.clkr,
2319 [PCLK1_CLK_SRC] = &pclk1_clk_src.clkr,
2320 [OCMEMNOC_CLK_SRC] = &ocmemnoc_clk_src.clkr,
2321 [CCI_CLK_SRC] = &cci_clk_src.clkr,
2322 [MMSS_GP0_CLK_SRC] = &mmss_gp0_clk_src.clkr,
2323 [MMSS_GP1_CLK_SRC] = &mmss_gp1_clk_src.clkr,
> 2324 [JPEG0_CLK_SRC] = &jpeg0_clk_src.clkr,
2325 [JPEG_DMA_CLK_SRC] = &jpeg_dma_clk_src.clkr,
2326 [MCLK0_CLK_SRC] = &mclk0_clk_src.clkr,
2327 [MCLK1_CLK_SRC] = &mclk1_clk_src.clkr,
2328 [MCLK2_CLK_SRC] = &mclk2_clk_src.clkr,
2329 [MCLK3_CLK_SRC] = &mclk3_clk_src.clkr,
2330 [CSI0PHYTIMER_CLK_SRC] = &csi0phytimer_clk_src.clkr,
2331 [CSI1PHYTIMER_CLK_SRC] = &csi1phytimer_clk_src.clkr,
2332 [BYTE0_CLK_SRC] = &byte0_clk_src.clkr,
2333 [BYTE1_CLK_SRC] = &byte1_clk_src.clkr,
2334 [ESC0_CLK_SRC] = &esc0_clk_src.clkr,
2335 [ESC1_CLK_SRC] = &esc1_clk_src.clkr,
2336 [MDSS_ESC0_CLK] = &mdss_esc0_clk.clkr,
2337 [MDSS_ESC1_CLK] = &mdss_esc1_clk.clkr,
2338 [EXTPCLK_CLK_SRC] = &extpclk_clk_src.clkr,
2339 [HDMI_CLK_SRC] = &hdmi_clk_src.clkr,
2340 [VSYNC_CLK_SRC] = &vsync_clk_src.clkr,
2341 [RBBMTIMER_CLK_SRC] = &rbbmtimer_clk_src.clkr,
2342 [CAMSS_AHB_CLK] = &camss_ahb_clk.clkr,
2343 [CAMSS_CCI_CCI_AHB_CLK] = &camss_cci_cci_ahb_clk.clkr,
2344 [CAMSS_CCI_CCI_CLK] = &camss_cci_cci_clk.clkr,
2345 [CAMSS_VFE_CPP_AHB_CLK] = &camss_vfe_cpp_ahb_clk.clkr,
2346 [CAMSS_VFE_CPP_AXI_CLK] = &camss_vfe_cpp_axi_clk.clkr,
2347 [CAMSS_VFE_CPP_CLK] = &camss_vfe_cpp_clk.clkr,
2348 [CAMSS_CSI0_AHB_CLK] = &camss_csi0_ahb_clk.clkr,
2349 [CAMSS_CSI0_CLK] = &camss_csi0_clk.clkr,
2350 [CAMSS_CSI0PHY_CLK] = &camss_csi0phy_clk.clkr,
2351 [CAMSS_CSI0PIX_CLK] = &camss_csi0pix_clk.clkr,
2352 [CAMSS_CSI0RDI_CLK] = &camss_csi0rdi_clk.clkr,
2353 [CAMSS_CSI1_AHB_CLK] = &camss_csi1_ahb_clk.clkr,
2354 [CAMSS_CSI1_CLK] = &camss_csi1_clk.clkr,
2355 [CAMSS_CSI1PHY_CLK] = &camss_csi1phy_clk.clkr,
2356 [CAMSS_CSI1PIX_CLK] = &camss_csi1pix_clk.clkr,
2357 [CAMSS_CSI1RDI_CLK] = &camss_csi1rdi_clk.clkr,
2358 [CAMSS_CSI2_AHB_CLK] = &camss_csi2_ahb_clk.clkr,
2359 [CAMSS_CSI2_CLK] = &camss_csi2_clk.clkr,
2360 [CAMSS_CSI2PHY_CLK] = &camss_csi2phy_clk.clkr,
2361 [CAMSS_CSI2PIX_CLK] = &camss_csi2pix_clk.clkr,
2362 [CAMSS_CSI2RDI_CLK] = &camss_csi2rdi_clk.clkr,
2363 [CAMSS_CSI3_AHB_CLK] = &camss_csi3_ahb_clk.clkr,
2364 [CAMSS_CSI3_CLK] = &camss_csi3_clk.clkr,
2365 [CAMSS_CSI3PHY_CLK] = &camss_csi3phy_clk.clkr,
2366 [CAMSS_CSI3PIX_CLK] = &camss_csi3pix_clk.clkr,
2367 [CAMSS_CSI3RDI_CLK] = &camss_csi3rdi_clk.clkr,
2368 [CAMSS_CSI_VFE0_CLK] = &camss_csi_vfe0_clk.clkr,
2369 [CAMSS_CSI_VFE1_CLK] = &camss_csi_vfe1_clk.clkr,
2370 [CAMSS_GP0_CLK] = &camss_gp0_clk.clkr,
2371 [CAMSS_GP1_CLK] = &camss_gp1_clk.clkr,
2372 [CAMSS_ISPIF_AHB_CLK] = &camss_ispif_ahb_clk.clkr,
2373 [CAMSS_JPEG_DMA_CLK] = &camss_jpeg_dma_clk.clkr,
2374 [CAMSS_JPEG_JPEG0_CLK] = &camss_jpeg_jpeg0_clk.clkr,
2375 [CAMSS_JPEG_JPEG1_CLK] = &camss_jpeg_jpeg1_clk.clkr,
2376 [CAMSS_JPEG_JPEG2_CLK] = &camss_jpeg_jpeg2_clk.clkr,
2377 [CAMSS_JPEG_JPEG_AHB_CLK] = &camss_jpeg_jpeg_ahb_clk.clkr,
2378 [CAMSS_JPEG_JPEG_AXI_CLK] = &camss_jpeg_jpeg_axi_clk.clkr,
2379 [CAMSS_MCLK0_CLK] = &camss_mclk0_clk.clkr,
2380 [CAMSS_MCLK1_CLK] = &camss_mclk1_clk.clkr,
2381 [CAMSS_MCLK2_CLK] = &camss_mclk2_clk.clkr,
2382 [CAMSS_MCLK3_CLK] = &camss_mclk3_clk.clkr,
2383 [CAMSS_MICRO_AHB_CLK] = &camss_micro_ahb_clk.clkr,
2384 [CAMSS_PHY0_CSI0PHYTIMER_CLK] = &camss_phy0_csi0phytimer_clk.clkr,
2385 [CAMSS_PHY1_CSI1PHYTIMER_CLK] = &camss_phy1_csi1phytimer_clk.clkr,
2386 [CAMSS_PHY2_CSI2PHYTIMER_CLK] = &camss_phy2_csi2phytimer_clk.clkr,
2387 [CAMSS_TOP_AHB_CLK] = &camss_top_ahb_clk.clkr,
2388 [CAMSS_VFE_VFE0_CLK] = &camss_vfe_vfe0_clk.clkr,
2389 [CAMSS_VFE_VFE1_CLK] = &camss_vfe_vfe1_clk.clkr,
2390 [CAMSS_VFE_VFE_AHB_CLK] = &camss_vfe_vfe_ahb_clk.clkr,
2391 [CAMSS_VFE_VFE_AXI_CLK] = &camss_vfe_vfe_axi_clk.clkr,
2392 [FD_AHB_CLK] = &fd_ahb_clk.clkr,
2393 [FD_AXI_CLK] = &fd_axi_clk.clkr,
2394 [FD_CORE_CLK] = &fd_core_clk.clkr,
2395 [FD_CORE_UAR_CLK] = &fd_core_uar_clk.clkr,
2396 [MDSS_AHB_CLK] = &mdss_ahb_clk.clkr,
2397 [MDSS_AXI_CLK] = &mdss_axi_clk.clkr,
2398 [MDSS_BYTE0_CLK] = &mdss_byte0_clk.clkr,
2399 [MDSS_BYTE1_CLK] = &mdss_byte1_clk.clkr,
2400 [ESC0_CLK_SRC] = &esc0_clk_src.clkr,
2401 [ESC1_CLK_SRC] = &esc1_clk_src.clkr,
2402 [MDSS_EXTPCLK_CLK] = &mdss_extpclk_clk.clkr,
2403 [MDSS_HDMI_AHB_CLK] = &mdss_hdmi_ahb_clk.clkr,
2404 [MDSS_HDMI_CLK] = &mdss_hdmi_clk.clkr,
2405 [MDSS_MDP_CLK] = &mdss_mdp_clk.clkr,
2406 [MDSS_PCLK0_CLK] = &mdss_pclk0_clk.clkr,
2407 [MDSS_PCLK1_CLK] = &mdss_pclk1_clk.clkr,
2408 [MDSS_VSYNC_CLK] = &mdss_vsync_clk.clkr,
2409 [MMSS_MISC_AHB_CLK] = &mmss_misc_ahb_clk.clkr,
2410 [MMSS_MMSSNOC_AXI_CLK] = &mmss_mmssnoc_axi_clk.clkr,
2411 [MMSS_S0_AXI_CLK] = &mmss_s0_axi_clk.clkr,
2412 [OCMEMCX_OCMEMNOC_CLK] = &ocmemcx_ocmemnoc_clk.clkr,
2413 [OXILI_GFX3D_CLK] = &oxili_gfx3d_clk.clkr,
2414 [OXILI_RBBMTIMER_CLK] = &oxili_rbbmtimer_clk.clkr,
2415 [OXILICX_AHB_CLK] = &oxilicx_ahb_clk.clkr,
2416 [VENUS0_AHB_CLK] = &venus0_ahb_clk.clkr,
2417 [VENUS0_AXI_CLK] = &venus0_axi_clk.clkr,
2418 [VENUS0_OCMEMNOC_CLK] = &venus0_ocmemnoc_clk.clkr,
2419 [VENUS0_VCODEC0_CLK] = &venus0_vcodec0_clk.clkr,
2420 [VENUS0_CORE0_VCODEC_CLK] = &venus0_core0_vcodec_clk.clkr,
2421 [VENUS0_CORE1_VCODEC_CLK] = &venus0_core1_vcodec_clk.clkr,
2422 [VENUS0_CORE2_VCODEC_CLK] = &venus0_core2_vcodec_clk.clkr,
2423 };
2424
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months