drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:61:17: error: implicit declaration of function 'enable_kernel_altivec'; did you mean 'enable_kernel_vsx'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ab774587903771821b59471cc723bba6d893942
commit: 96ee63730fa30614e943ac352ef772be49a712d9 drm/amd/display: Add control mechanism for FPU
date: 3 months ago
config: powerpc64-buildonly-randconfig-r005-20211113 (attached as .config)
compiler: powerpc64-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 96ee63730fa30614e943ac352ef772be49a712d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c: In function 'dc_fpu_begin':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:61:17: error: implicit declaration of function 'enable_kernel_altivec'; did you mean 'enable_kernel_vsx'? [-Werror=implicit-function-declaration]
61 | enable_kernel_altivec();
| ^~~~~~~~~~~~~~~~~~~~~
| enable_kernel_vsx
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c: In function 'dc_fpu_end':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:89:17: error: implicit declaration of function 'disable_kernel_altivec'; did you mean 'disable_kernel_vsx'? [-Werror=implicit-function-declaration]
89 | disable_kernel_altivec();
| ^~~~~~~~~~~~~~~~~~~~~~
| disable_kernel_vsx
cc1: some warnings being treated as errors
vim +61 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c
35
36 /**
37 * dc_fpu_begin - Enables FPU protection
38 * @function_name: A string containing the function name for debug purposes
39 * (usually __func__)
40 *
41 * @line: A line number where DC_FP_START was invoked for debug purpose
42 * (usually __LINE__)
43 *
44 * This function is responsible for managing the use of kernel_fpu_begin() with
45 * the advantage of providing an event trace for debugging.
46 *
47 * Note: Do not call this function directly; always use DC_FP_START().
48 */
49 void dc_fpu_begin(const char *function_name, const int line)
50 {
51 TRACE_DCN_FPU(true, function_name, line);
52
53 #if defined(CONFIG_X86)
54 kernel_fpu_begin();
55 #elif defined(CONFIG_PPC64)
56 if (cpu_has_feature(CPU_FTR_VSX_COMP)) {
57 preempt_disable();
58 enable_kernel_vsx();
59 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) {
60 preempt_disable();
> 61 enable_kernel_altivec();
62 } else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) {
63 preempt_disable();
64 enable_kernel_fp();
65 }
66 #endif
67 }
68
69 /**
70 * dc_fpu_end - Disable FPU protection
71 * @function_name: A string containing the function name for debug purposes
72 * @line: A-line number where DC_FP_END was invoked for debug purpose
73 *
74 * This function is responsible for managing the use of kernel_fpu_end() with
75 * the advantage of providing an event trace for debugging.
76 *
77 * Note: Do not call this function directly; always use DC_FP_END().
78 */
79 void dc_fpu_end(const char *function_name, const int line)
80 {
81 TRACE_DCN_FPU(false, function_name, line);
82 #if defined(CONFIG_X86)
83 kernel_fpu_end();
84 #elif defined(CONFIG_PPC64)
85 if (cpu_has_feature(CPU_FTR_VSX_COMP)) {
86 disable_kernel_vsx();
87 preempt_enable();
88 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) {
> 89 disable_kernel_altivec();
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/md/bcache/util.c:280:16: warning: comparison of distinct pointer types ('typeof (size) *' (aka 'unsigned int *') and 'typeof (((1UL) << 12) - offset) *' (aka 'unsigned long *'))
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20211105-042601/Coly-Li/b...
head: d9060ab757bd509ac3746469f23bf3e22a53f8ea
commit: d9060ab757bd509ac3746469f23bf3e22a53f8ea bcache: Revert "bcache: use bvec_virt"
date: 11 days ago
config: i386-randconfig-a005-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
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/d9060ab757bd509ac3746469f23bf3e22...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20211105-042601/Coly-Li/bcache-Revert-bcache-use-bvec_virt/20211103-231427
git checkout d9060ab757bd509ac3746469f23bf3e22a53f8ea
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
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/md/bcache/util.c:280:16: warning: comparison of distinct pointer types ('typeof (size) *' (aka 'unsigned int *') and 'typeof (((1UL) << 12) - offset) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]
size_t len = min(size, PAGE_SIZE - offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:45:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^~~~~~~~~~~~~~~~
include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/minmax.h:20:28: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
1 warning generated.
vim +280 drivers/md/bcache/util.c
257
258 /**
259 * bch_bio_alloc_pages - allocates a single page for each bvec in a bio
260 * @bio: bio to allocate pages for
261 * @data: if non-NULL copy data from here into the newly allocate pages
262 * @size: size to allocate
263 * @gfp_mask: flags for allocation
264 *
265 * Allocates pages up to @bio->bi_vcnt.
266 *
267 * Returns 0 on success, -ENOMEM on failure. On failure, any allocated pages are
268 * freed.
269 */
270 int bch_bio_alloc_pages(struct bio *bio, void *data, size_t size, gfp_t gfp)
271 {
272 struct bvec_iter iter;
273 struct bio_vec bv;
274
275 BUG_ON(bio->bi_vcnt);
276
277 while (size) {
278 struct page *page = alloc_page(gfp);
279 unsigned int offset = offset_in_page(page);
> 280 size_t len = min(size, PAGE_SIZE - offset);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v3] mm/migrate.c: Rework migration_entry_wait() to not take a pageref
by kernel test robot
Hi Alistair,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.16-rc1 next-20211115]
[cannot apply to hnaz-mm/master]
[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/Alistair-Popple/mm-migrate-c-Rew...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git debe436e77c72fcee804fb867f275e6d31aa999c
config: i386-randconfig-r015-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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/91a437ddc7606450e331059d80babe2d4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alistair-Popple/mm-migrate-c-Rework-migration_entry_wait-to-not-take-a-pageref/20211115-185444
git checkout 91a437ddc7606450e331059d80babe2d4c1163e0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
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 >>):
>> mm/filemap.c:1447:6: warning: no previous prototype for function 'migration_entry_wait_on_locked' [-Wmissing-prototypes]
void migration_entry_wait_on_locked(struct folio *folio, pte_t *ptep,
^
mm/filemap.c:1447:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void migration_entry_wait_on_locked(struct folio *folio, pte_t *ptep,
^
static
1 warning generated.
vim +/migration_entry_wait_on_locked +1447 mm/filemap.c
1428
1429 #ifdef CONFIG_MIGRATION
1430 /**
1431 * migration_entry_wait_on_locked - Wait for a migration entry to be removed
1432 * @page: page referenced by the migration entry.
1433 * @ptep: mapped pte pointer. This function will return with the ptep unmapped.
1434 * @ptl: already locked ptl. This function will drop the lock.
1435 *
1436 * Wait for a migration entry referencing the given page to be removed. This is
1437 * equivalent to put_and_wait_on_page_locked(page, TASK_UNINTERRUPTIBLE) except
1438 * this can be called without taking a reference on the page. Instead this
1439 * should be called while holding the ptl for the migration entry referencing
1440 * the page.
1441 *
1442 * Returns after unmapping and unlocking the pte/ptl with pte_unmap_unlock().
1443 *
1444 * This follows the same logic as wait_on_page_bit_common() so see the comments
1445 * there.
1446 */
> 1447 void migration_entry_wait_on_locked(struct folio *folio, pte_t *ptep,
1448 spinlock_t *ptl)
1449 {
1450 struct wait_page_queue wait_page;
1451 wait_queue_entry_t *wait = &wait_page.wait;
1452 bool thrashing = false;
1453 bool delayacct = false;
1454 unsigned long pflags;
1455 wait_queue_head_t *q;
1456
1457 q = folio_waitqueue(folio);
1458 if (!folio_test_uptodate(folio) && folio_test_workingset(folio)) {
1459 if (!folio_test_swapbacked(folio)) {
1460 delayacct_thrashing_start();
1461 delayacct = true;
1462 }
1463 psi_memstall_enter(&pflags);
1464 thrashing = true;
1465 }
1466
1467 init_wait(wait);
1468 wait->func = wake_page_function;
1469 wait_page.folio = folio;
1470 wait_page.bit_nr = PG_locked;
1471 wait->flags = 0;
1472
1473 spin_lock_irq(&q->lock);
1474 folio_set_waiters(folio);
1475 if (!folio_trylock_flag(folio, PG_locked, wait))
1476 __add_wait_queue_entry_tail(q, wait);
1477 spin_unlock_irq(&q->lock);
1478
1479 /*
1480 * If a migration entry exists for the page the migration path must hold
1481 * a valid reference to the page, and it must take the ptl to remove the
1482 * migration entry. So the page is valid until the ptl is dropped.
1483 */
1484 if (ptep)
1485 pte_unmap_unlock(ptep, ptl);
1486 else
1487 spin_unlock(ptl);
1488
1489 for (;;) {
1490 unsigned int flags;
1491
1492 set_current_state(TASK_UNINTERRUPTIBLE);
1493
1494 /* Loop until we've been woken or interrupted */
1495 flags = smp_load_acquire(&wait->flags);
1496 if (!(flags & WQ_FLAG_WOKEN)) {
1497 if (signal_pending_state(TASK_UNINTERRUPTIBLE, current))
1498 break;
1499
1500 io_schedule();
1501 continue;
1502 }
1503 break;
1504 }
1505
1506 finish_wait(q, wait);
1507
1508 if (thrashing) {
1509 if (delayacct)
1510 delayacct_thrashing_end();
1511 psi_memstall_leave(&pflags);
1512 }
1513 }
1514 #endif
1515
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH] fs:cifs: convert from atomic_t to refcount_t on tlink->tl_count
by kernel test robot
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on cifs/for-next]
[also build test ERROR on v5.16-rc1 next-20211115]
[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/cgel-zte-gmail-com/fs-cifs-conve...
base: git://git.samba.org/sfrench/cifs-2.6.git for-next
config: hexagon-randconfig-r041-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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/8d0f81fa94784bab585209f6cea84ea63...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review cgel-zte-gmail-com/fs-cifs-convert-from-atomic_t-to-refcount_t-on-tlink-tl_count/20211112-173127
git checkout 8d0f81fa94784bab585209f6cea84ea63a4a37ba
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
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 fs/cifs/cifsacl.c:18:
>> fs/cifs/cifsglob.h:1156:14: error: incompatible pointer types passing 'refcount_t *' (aka 'struct refcount_struct *') to parameter of type 'atomic_t *' [-Werror,-Wincompatible-pointer-types]
atomic_inc(&tlink->tl_count);
^~~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:179:22: note: passing argument to parameter 'v' here
atomic_inc(atomic_t *v)
^
1 error generated.
--
In file included from fs/cifs/ioctl.c:17:
>> fs/cifs/cifsglob.h:1156:14: error: incompatible pointer types passing 'refcount_t *' (aka 'struct refcount_struct *') to parameter of type 'atomic_t *' [-Werror,-Wincompatible-pointer-types]
atomic_inc(&tlink->tl_count);
^~~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:179:22: note: passing argument to parameter 'v' here
atomic_inc(atomic_t *v)
^
fs/cifs/ioctl.c:324:10: warning: variable 'caps' set but not used [-Wunused-but-set-variable]
__u64 caps;
^
1 warning and 1 error generated.
--
In file included from fs/cifs/connect.c:36:
>> fs/cifs/cifsglob.h:1156:14: error: incompatible pointer types passing 'refcount_t *' (aka 'struct refcount_struct *') to parameter of type 'atomic_t *' [-Werror,-Wincompatible-pointer-types]
atomic_inc(&tlink->tl_count);
^~~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:179:22: note: passing argument to parameter 'v' here
atomic_inc(atomic_t *v)
^
fs/cifs/connect.c:3008:14: error: no member named 'fscache' in 'struct cifs_tcon'
if (!tcon->fscache)
~~~~ ^
>> fs/cifs/connect.c:4053:19: error: incompatible pointer types passing 'refcount_t *' (aka 'struct refcount_struct *') to parameter of type 'const atomic_t *' [-Werror,-Wincompatible-pointer-types]
atomic_read(&tlink->tl_count) != 0 ||
^~~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:25:29: note: passing argument to parameter 'v' here
atomic_read(const atomic_t *v)
^
3 errors generated.
vim +1156 fs/cifs/cifsglob.h
7ffec372458d16 Jeff Layton 2010-09-29 1151
13cfb7334eb6fd Jeff Layton 2010-09-29 1152 static inline struct tcon_link *
13cfb7334eb6fd Jeff Layton 2010-09-29 1153 cifs_get_tlink(struct tcon_link *tlink)
13cfb7334eb6fd Jeff Layton 2010-09-29 1154 {
9d002df492b14c Jeff Layton 2010-10-06 1155 if (tlink && !IS_ERR(tlink))
9d002df492b14c Jeff Layton 2010-10-06 @1156 atomic_inc(&tlink->tl_count);
13cfb7334eb6fd Jeff Layton 2010-09-29 1157 return tlink;
13cfb7334eb6fd Jeff Layton 2010-09-29 1158 }
13cfb7334eb6fd Jeff Layton 2010-09-29 1159
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH] fs:cifs: convert from atomic_t to refcount_t on tlink->tl_count
by kernel test robot
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on cifs/for-next]
[also build test ERROR on v5.16-rc1 next-20211115]
[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/cgel-zte-gmail-com/fs-cifs-conve...
base: git://git.samba.org/sfrench/cifs-2.6.git for-next
config: i386-debian-10.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/8d0f81fa94784bab585209f6cea84ea63...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review cgel-zte-gmail-com/fs-cifs-convert-from-atomic_t-to-refcount_t-on-tlink-tl_count/20211112-173127
git checkout 8d0f81fa94784bab585209f6cea84ea63a4a37ba
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 fs/cifs/cifsfs.c:33:
fs/cifs/cifsglob.h: In function 'cifs_get_tlink':
>> fs/cifs/cifsglob.h:1156:14: error: passing argument 1 of 'atomic_inc' from incompatible pointer type [-Werror=incompatible-pointer-types]
1156 | atomic_inc(&tlink->tl_count);
| ^~~~~~~~~~~~~~~~
| |
| refcount_t * {aka struct refcount_struct *}
In file included from include/linux/atomic.h:82,
from include/linux/cpumask.h:13,
from arch/x86/include/asm/cpumask.h:5,
from arch/x86/include/asm/msr.h:11,
from arch/x86/include/asm/processor.h:22,
from arch/x86/include/asm/timex.h:5,
from include/linux/timex.h:65,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from fs/cifs/cifsfs.c:13:
include/linux/atomic/atomic-instrumented.h:179:22: note: expected 'atomic_t *' {aka 'struct <anonymous> *'} but argument is of type 'refcount_t *' {aka 'struct refcount_struct *'}
179 | atomic_inc(atomic_t *v)
| ~~~~~~~~~~^
cc1: some warnings being treated as errors
--
In file included from fs/cifs/connect.c:36:
fs/cifs/cifsglob.h: In function 'cifs_get_tlink':
>> fs/cifs/cifsglob.h:1156:14: error: passing argument 1 of 'atomic_inc' from incompatible pointer type [-Werror=incompatible-pointer-types]
1156 | atomic_inc(&tlink->tl_count);
| ^~~~~~~~~~~~~~~~
| |
| refcount_t * {aka struct refcount_struct *}
In file included from include/linux/atomic.h:82,
from include/linux/cpumask.h:13,
from arch/x86/include/asm/cpumask.h:5,
from arch/x86/include/asm/msr.h:11,
from arch/x86/include/asm/processor.h:22,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:60,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:55,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/cifs/connect.c:8:
include/linux/atomic/atomic-instrumented.h:179:22: note: expected 'atomic_t *' {aka 'struct <anonymous> *'} but argument is of type 'refcount_t *' {aka 'struct refcount_struct *'}
179 | atomic_inc(atomic_t *v)
| ~~~~~~~~~~^
fs/cifs/connect.c: In function 'cifs_prune_tlinks':
>> fs/cifs/connect.c:4053:19: error: passing argument 1 of 'atomic_read' from incompatible pointer type [-Werror=incompatible-pointer-types]
4053 | atomic_read(&tlink->tl_count) != 0 ||
| ^~~~~~~~~~~~~~~~
| |
| refcount_t * {aka struct refcount_struct *}
In file included from include/linux/atomic.h:82,
from include/linux/cpumask.h:13,
from arch/x86/include/asm/cpumask.h:5,
from arch/x86/include/asm/msr.h:11,
from arch/x86/include/asm/processor.h:22,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:60,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:55,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/cifs/connect.c:8:
include/linux/atomic/atomic-instrumented.h:25:29: note: expected 'const atomic_t *' {aka 'const struct <anonymous> *'} but argument is of type 'refcount_t *' {aka 'struct refcount_struct *'}
25 | atomic_read(const atomic_t *v)
| ~~~~~~~~~~~~~~~~^
cc1: some warnings being treated as errors
vim +/atomic_inc +1156 fs/cifs/cifsglob.h
7ffec372458d16 Jeff Layton 2010-09-29 1151
13cfb7334eb6fd Jeff Layton 2010-09-29 1152 static inline struct tcon_link *
13cfb7334eb6fd Jeff Layton 2010-09-29 1153 cifs_get_tlink(struct tcon_link *tlink)
13cfb7334eb6fd Jeff Layton 2010-09-29 1154 {
9d002df492b14c Jeff Layton 2010-10-06 1155 if (tlink && !IS_ERR(tlink))
9d002df492b14c Jeff Layton 2010-10-06 @1156 atomic_inc(&tlink->tl_count);
13cfb7334eb6fd Jeff Layton 2010-09-29 1157 return tlink;
13cfb7334eb6fd Jeff Layton 2010-09-29 1158 }
13cfb7334eb6fd Jeff Layton 2010-09-29 1159
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v5 8/8] device-dax: compound devmap support
by kernel test robot
In-Reply-To: <20211112150824.11028-9-joao.m.martins(a)oracle.com>
References: <20211112150824.11028-9-joao.m.martins(a)oracle.com>
TO: Joao Martins <joao.m.martins(a)oracle.com>
TO: linux-mm(a)kvack.org
CC: Dan Williams <dan.j.williams(a)intel.com>
CC: Vishal Verma <vishal.l.verma(a)intel.com>
CC: Dave Jiang <dave.jiang(a)intel.com>
CC: Naoya Horiguchi <naoya.horiguchi(a)nec.com>
CC: Matthew Wilcox <willy(a)infradead.org>
CC: Jason Gunthorpe <jgg(a)ziepe.ca>
CC: John Hubbard <jhubbard(a)nvidia.com>
CC: Jane Chu <jane.chu(a)oracle.com>
CC: Muchun Song <songmuchun(a)bytedance.com>
Hi Joao,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on hnaz-mm/master]
url: https://github.com/0day-ci/linux/commits/Joao-Martins/mm-dax-Introduce-co...
base: https://github.com/hnaz/linux-mm master
config: x86_64-randconfig-a013-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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/c9e6e4bec537287b0e2cf8544276f77d0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Joao-Martins/mm-dax-Introduce-compound-pages-in-devmap/20211112-231110
git checkout c9e6e4bec537287b0e2cf8544276f77d02f1d00c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/
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/dax/device.c:419:5: warning: no previous prototype for function 'dev_dax_probe' [-Wmissing-prototypes]
int dev_dax_probe(struct dev_dax *dev_dax)
^
drivers/dax/device.c:419:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dev_dax_probe(struct dev_dax *dev_dax)
^
static
1 warning generated.
>> drivers/dax/device.o: warning: objtool: dev_dax_probe()+0x43c: unreachable instruction
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v3 10/13] Bluetooth: Handle MSFT avdtp open event
by kernel test robot
Hi Kiran,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on v5.16-rc1 next-20211115]
[cannot apply to bluetooth/master]
[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/Kiran-K/Bluetooth-Refactor-code-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: h8300-randconfig-s031-20211115 (attached as .config)
compiler: h8300-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/0a4eb6e6849d95c7565face4fc18ef652...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kiran-K/Bluetooth-Refactor-code-to-read-supported-codecs-in-getsockopt/20211115-144640
git checkout 0a4eb6e6849d95c7565face4fc18ef652bacad11
# 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__' ARCH=h8300
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 >>)
>> net/bluetooth/hci_event.c:1470:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] dcid @@ got restricted __le16 [usertype] dcid @@
net/bluetooth/hci_event.c:1470:38: sparse: expected unsigned short [usertype] dcid
net/bluetooth/hci_event.c:1470:38: sparse: got restricted __le16 [usertype] dcid
vim +1470 net/bluetooth/hci_event.c
1447
1448 static void hci_cc_msft_avdtp_open(struct hci_dev *hdev, struct sk_buff *skb)
1449 {
1450 struct msft_rp_avdtp_open *rp;
1451 struct msft_cp_avdtp_open *sent;
1452 struct hci_conn *hconn;
1453 struct l2cap_conn *conn;
1454
1455 if (skb->len < sizeof(*rp))
1456 return;
1457
1458 rp = (void *)skb->data;
1459
1460 sent = hci_sent_cmd_data(hdev, HCI_MSFT_AVDTP_CMD);
1461
1462 hconn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(sent->handle));
1463
1464 if (!hconn)
1465 return;
1466
1467 conn = hconn->l2cap_data;
1468
1469 /* wake up the task waiting on avdtp handle */
> 1470 l2cap_avdtp_wakeup(conn, sent->dcid, rp->status,
1471 rp->status ? 0 : __le16_to_cpu(rp->avdtp_handle));
1472 }
1473
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week