[efi:next 3/6] arch/x86/boot/compressed/acpi.c:58:41: sparse: sparse: cast truncates bits from constant value (eb9d2d30 becomes 30)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
head: 3cfafc4b8f12ebf4b9b6bd85f41353012c5441f3
commit: 31bc510eb86b1a10c12281ce823d22aeb3c6275f [3/6] efi: use 32-bit alignment for efi_guid_t literals
config: i386-randconfig-s002-20210318 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-277-gc089cd2d-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/commit/?id=31...
git remote add efi https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git
git fetch --no-tags efi next
git checkout 31bc510eb86b1a10c12281ce823d22aeb3c6275f
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
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/x86/boot/compressed/acpi.c:58:41: sparse: sparse: cast truncates bits from constant value (eb9d2d30 becomes 30)
>> arch/x86/boot/compressed/acpi.c:58:41: sparse: sparse: cast truncates bits from constant value (eb9d2d becomes 2d)
>> arch/x86/boot/compressed/acpi.c:58:41: sparse: sparse: cast truncates bits from constant value (eb9d becomes 9d)
>> arch/x86/boot/compressed/acpi.c:58:41: sparse: sparse: cast truncates bits from constant value (2d88 becomes 88)
>> arch/x86/boot/compressed/acpi.c:58:41: sparse: sparse: cast truncates bits from constant value (11d3 becomes d3)
>> arch/x86/boot/compressed/acpi.c:60:46: sparse: sparse: cast truncates bits from constant value (8868e871 becomes 71)
>> arch/x86/boot/compressed/acpi.c:60:46: sparse: sparse: cast truncates bits from constant value (8868e8 becomes e8)
>> arch/x86/boot/compressed/acpi.c:60:46: sparse: sparse: cast truncates bits from constant value (8868 becomes 68)
>> arch/x86/boot/compressed/acpi.c:60:46: sparse: sparse: cast truncates bits from constant value (e4f1 becomes f1)
arch/x86/boot/compressed/acpi.c:60:46: sparse: sparse: cast truncates bits from constant value (11d3 becomes d3)
vim +58 arch/x86/boot/compressed/acpi.c
02a3e3cdb7f12f Chao Fan 2019-01-23 16
02a3e3cdb7f12f Chao Fan 2019-01-23 17 /*
02a3e3cdb7f12f Chao Fan 2019-01-23 18 * Immovable memory regions representation. Max amount of memory regions is
02a3e3cdb7f12f Chao Fan 2019-01-23 19 * MAX_NUMNODES*2.
02a3e3cdb7f12f Chao Fan 2019-01-23 20 */
02a3e3cdb7f12f Chao Fan 2019-01-23 @21 struct mem_vector immovable_mem[MAX_NUMNODES*2];
02a3e3cdb7f12f Chao Fan 2019-01-23 22
0a23ebc66a4678 Junichi Nomura 2019-04-11 23 /*
0a23ebc66a4678 Junichi Nomura 2019-04-11 24 * Search EFI system tables for RSDP. If both ACPI_20_TABLE_GUID and
0a23ebc66a4678 Junichi Nomura 2019-04-11 25 * ACPI_TABLE_GUID are found, take the former, which has more features.
0a23ebc66a4678 Junichi Nomura 2019-04-11 26 */
0a23ebc66a4678 Junichi Nomura 2019-04-11 27 static acpi_physical_address
0a23ebc66a4678 Junichi Nomura 2019-04-11 28 __efi_get_rsdp_addr(unsigned long config_tables, unsigned int nr_tables,
0a23ebc66a4678 Junichi Nomura 2019-04-11 29 bool efi_64)
33f0df8d843deb Chao Fan 2019-01-23 30 {
33f0df8d843deb Chao Fan 2019-01-23 31 acpi_physical_address rsdp_addr = 0;
33f0df8d843deb Chao Fan 2019-01-23 32
33f0df8d843deb Chao Fan 2019-01-23 33 #ifdef CONFIG_EFI
0a23ebc66a4678 Junichi Nomura 2019-04-11 34 int i;
0a23ebc66a4678 Junichi Nomura 2019-04-11 35
0a23ebc66a4678 Junichi Nomura 2019-04-11 36 /* Get EFI tables from systab. */
0a23ebc66a4678 Junichi Nomura 2019-04-11 37 for (i = 0; i < nr_tables; i++) {
0a23ebc66a4678 Junichi Nomura 2019-04-11 38 acpi_physical_address table;
0a23ebc66a4678 Junichi Nomura 2019-04-11 39 efi_guid_t guid;
0a23ebc66a4678 Junichi Nomura 2019-04-11 40
0a23ebc66a4678 Junichi Nomura 2019-04-11 41 if (efi_64) {
0a23ebc66a4678 Junichi Nomura 2019-04-11 42 efi_config_table_64_t *tbl = (efi_config_table_64_t *)config_tables + i;
0a23ebc66a4678 Junichi Nomura 2019-04-11 43
0a23ebc66a4678 Junichi Nomura 2019-04-11 44 guid = tbl->guid;
0a23ebc66a4678 Junichi Nomura 2019-04-11 45 table = tbl->table;
0a23ebc66a4678 Junichi Nomura 2019-04-11 46
0a23ebc66a4678 Junichi Nomura 2019-04-11 47 if (!IS_ENABLED(CONFIG_X86_64) && table >> 32) {
0a23ebc66a4678 Junichi Nomura 2019-04-11 48 debug_putstr("Error getting RSDP address: EFI config table located above 4GB.\n");
0a23ebc66a4678 Junichi Nomura 2019-04-11 49 return 0;
0a23ebc66a4678 Junichi Nomura 2019-04-11 50 }
0a23ebc66a4678 Junichi Nomura 2019-04-11 51 } else {
0a23ebc66a4678 Junichi Nomura 2019-04-11 52 efi_config_table_32_t *tbl = (efi_config_table_32_t *)config_tables + i;
0a23ebc66a4678 Junichi Nomura 2019-04-11 53
0a23ebc66a4678 Junichi Nomura 2019-04-11 54 guid = tbl->guid;
0a23ebc66a4678 Junichi Nomura 2019-04-11 55 table = tbl->table;
0a23ebc66a4678 Junichi Nomura 2019-04-11 56 }
0a23ebc66a4678 Junichi Nomura 2019-04-11 57
0a23ebc66a4678 Junichi Nomura 2019-04-11 @58 if (!(efi_guidcmp(guid, ACPI_TABLE_GUID)))
0a23ebc66a4678 Junichi Nomura 2019-04-11 59 rsdp_addr = table;
0a23ebc66a4678 Junichi Nomura 2019-04-11 @60 else if (!(efi_guidcmp(guid, ACPI_20_TABLE_GUID)))
0a23ebc66a4678 Junichi Nomura 2019-04-11 61 return table;
0a23ebc66a4678 Junichi Nomura 2019-04-11 62 }
0a23ebc66a4678 Junichi Nomura 2019-04-11 63 #endif
0a23ebc66a4678 Junichi Nomura 2019-04-11 64 return rsdp_addr;
0a23ebc66a4678 Junichi Nomura 2019-04-11 65 }
0a23ebc66a4678 Junichi Nomura 2019-04-11 66
:::::: The code at line 58 was first introduced by commit
:::::: 0a23ebc66a46786769dd68bfdaa3102345819b9c x86/boot: Use efi_setup_data for searching RSDP on kexec-ed kernels
:::::: TO: Junichi Nomura <j-nomura(a)ce.jp.nec.com>
:::::: CC: Borislav Petkov <bp(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.10 56/74] mm/page_alloc.c:3275:2: error: implicit declaration of function 'split_page_memcg'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.10
head: 9ced6633127bd25a94939777d9ecda54800859fc
commit: ce4ba942d630e0361a9272fc065ee6530bc1bdd7 [56/74] mm/memcg: set memcg when splitting page
config: parisc-randconfig-r004-20210318 (attached as .config)
compiler: hppa-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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.10
git checkout ce4ba942d630e0361a9272fc065ee6530bc1bdd7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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 >>):
mm/page_alloc.c: In function 'split_page':
>> mm/page_alloc.c:3275:2: error: implicit declaration of function 'split_page_memcg'; did you mean 'split_page_owner'? [-Werror=implicit-function-declaration]
3275 | split_page_memcg(page, 1 << order);
| ^~~~~~~~~~~~~~~~
| split_page_owner
mm/page_alloc.c: At top level:
mm/page_alloc.c:3563:15: warning: no previous prototype for 'should_fail_alloc_page' [-Wmissing-prototypes]
3563 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c:6244:23: warning: no previous prototype for 'memmap_init' [-Wmissing-prototypes]
6244 | void __meminit __weak memmap_init(unsigned long size, int nid,
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +3275 mm/page_alloc.c
3256
3257 /*
3258 * split_page takes a non-compound higher-order page, and splits it into
3259 * n (1<<order) sub-pages: page[0..n]
3260 * Each sub-page must be freed individually.
3261 *
3262 * Note: this is probably too low level an operation for use in drivers.
3263 * Please consult with lkml before using this in your driver.
3264 */
3265 void split_page(struct page *page, unsigned int order)
3266 {
3267 int i;
3268
3269 VM_BUG_ON_PAGE(PageCompound(page), page);
3270 VM_BUG_ON_PAGE(!page_count(page), page);
3271
3272 for (i = 1; i < (1 << order); i++)
3273 set_page_refcounted(page + i);
3274 split_page_owner(page, 1 << order);
> 3275 split_page_memcg(page, 1 << order);
3276 }
3277 EXPORT_SYMBOL_GPL(split_page);
3278
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.11 12/22] fs/io_uring.c:3552:8: error: use of undeclared label 'out_free'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.11
head: 8c3b9b9eb43a7ddb91a2a4c84f0bfa5f118894ae
commit: 20082229e8da2090ab40b5f7d72f9a567fe3812e [12/22] io_uring: inline io_read()'s iovec freeing
config: powerpc64-randconfig-r036-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6db3ab2903f42712f44000afb5aa467efbd25f35)
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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.11
git checkout 20082229e8da2090ab40b5f7d72f9a567fe3812e
# 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 >>):
>> fs/io_uring.c:3552:8: error: use of undeclared label 'out_free'
goto out_free;
^
fs/io_uring.c:3517:8: error: use of undeclared label 'copy_iov'
goto copy_iov;
^
2 errors generated.
vim +/out_free +3552 fs/io_uring.c
f67676d160c6ee Jens Axboe 2019-12-02 3485
a1d7c393c4711a Jens Axboe 2020-06-22 3486 static int io_read(struct io_kiocb *req, bool force_nonblock,
a1d7c393c4711a Jens Axboe 2020-06-22 3487 struct io_comp_state *cs)
2b188cc1bb857a Jens Axboe 2019-01-07 3488 {
2b188cc1bb857a Jens Axboe 2019-01-07 3489 struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs;
9adbd45d6d32ff Jens Axboe 2019-12-20 3490 struct kiocb *kiocb = &req->rw.kiocb;
ff6165b2d7f66f Jens Axboe 2020-08-13 3491 struct iov_iter __iter, *iter = &__iter;
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3492 struct io_async_rw *rw = req->async_data;
227c0c9673d867 Jens Axboe 2020-08-13 3493 ssize_t io_size, ret, ret2;
f5cac8b156e8b7 Jens Axboe 2020-09-14 3494 bool no_async;
ff6165b2d7f66f Jens Axboe 2020-08-13 3495
2846c481c9dd1f Pavel Begunkov 2020-11-07 3496 if (rw) {
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3497 iter = &rw->iter;
2846c481c9dd1f Pavel Begunkov 2020-11-07 3498 iovec = NULL;
2846c481c9dd1f Pavel Begunkov 2020-11-07 3499 } else {
ff6165b2d7f66f Jens Axboe 2020-08-13 3500 ret = io_import_iovec(READ, req, &iovec, iter, !force_nonblock);
f67676d160c6ee Jens Axboe 2019-12-02 3501 if (ret < 0)
2b188cc1bb857a Jens Axboe 2019-01-07 3502 return ret;
2846c481c9dd1f Pavel Begunkov 2020-11-07 3503 }
632546c4b5a4da Pavel Begunkov 2020-11-07 3504 io_size = iov_iter_count(iter);
fa15bafb71fd7a Pavel Begunkov 2020-08-01 3505 req->result = io_size;
227c0c9673d867 Jens Axboe 2020-08-13 3506 ret = 0;
2b188cc1bb857a Jens Axboe 2019-01-07 3507
fd6c2e4c063d64 Jens Axboe 2019-12-18 3508 /* Ensure we clear previously set non-block flag */
fd6c2e4c063d64 Jens Axboe 2019-12-18 3509 if (!force_nonblock)
29de5f6a350778 Jens Axboe 2020-02-20 3510 kiocb->ki_flags &= ~IOCB_NOWAIT;
a88fc400212fc1 Pavel Begunkov 2020-09-30 3511 else
a88fc400212fc1 Pavel Begunkov 2020-09-30 3512 kiocb->ki_flags |= IOCB_NOWAIT;
a88fc400212fc1 Pavel Begunkov 2020-09-30 3513
24c74678634b3c Pavel Begunkov 2020-06-21 3514 /* If the file doesn't support async, just async punt */
f5cac8b156e8b7 Jens Axboe 2020-09-14 3515 no_async = force_nonblock && !io_file_supports_async(req->file, READ);
f5cac8b156e8b7 Jens Axboe 2020-09-14 3516 if (no_async)
f67676d160c6ee Jens Axboe 2019-12-02 3517 goto copy_iov;
9e645e1105ca60 Jens Axboe 2019-05-10 3518
632546c4b5a4da Pavel Begunkov 2020-11-07 3519 ret = rw_verify_area(READ, req->file, io_kiocb_ppos(kiocb), io_size);
20082229e8da20 Pavel Begunkov 2021-02-04 3520 if (unlikely(ret)) {
20082229e8da20 Pavel Begunkov 2021-02-04 3521 kfree(iovec);
20082229e8da20 Pavel Begunkov 2021-02-04 3522 return ret;
20082229e8da20 Pavel Begunkov 2021-02-04 3523 }
2b188cc1bb857a Jens Axboe 2019-01-07 3524
227c0c9673d867 Jens Axboe 2020-08-13 3525 ret = io_iter_do_read(req, iter);
32960613b7c335 Jens Axboe 2019-09-23 3526
447313db13e52f Pavel Begunkov 2021-02-01 3527 if (ret == -EIOCBQUEUED) {
20082229e8da20 Pavel Begunkov 2021-02-04 3528 /* it's faster to check here then delegate to kfree */
20082229e8da20 Pavel Begunkov 2021-02-04 3529 if (iovec)
20082229e8da20 Pavel Begunkov 2021-02-04 3530 kfree(iovec);
20082229e8da20 Pavel Begunkov 2021-02-04 3531 return 0;
227c0c9673d867 Jens Axboe 2020-08-13 3532 } else if (ret == -EAGAIN) {
eefdf30f3dcb5c Jens Axboe 2020-08-27 3533 /* IOPOLL retry should happen for io-wq threads */
eefdf30f3dcb5c Jens Axboe 2020-08-27 3534 if (!force_nonblock && !(req->ctx->flags & IORING_SETUP_IOPOLL))
f91daf565b0e27 Jens Axboe 2020-08-15 3535 goto done;
355afaeb578aba Jens Axboe 2020-09-02 3536 /* no retry on NONBLOCK marked file */
355afaeb578aba Jens Axboe 2020-09-02 3537 if (req->file->f_flags & O_NONBLOCK)
355afaeb578aba Jens Axboe 2020-09-02 3538 goto done;
842163154b87b0 Jens Axboe 2020-08-24 3539 /* some cases will consume bytes even on error returns */
632546c4b5a4da Pavel Begunkov 2020-11-07 3540 iov_iter_revert(iter, io_size - iov_iter_count(iter));
f38c7e3abfba9a Jens Axboe 2020-09-25 3541 ret = 0;
4866e0c1cb8970 Pavel Begunkov 2021-02-04 3542 } else if (ret <= 0 || ret == io_size || !force_nonblock ||
4866e0c1cb8970 Pavel Begunkov 2021-02-04 3543 (req->file->f_flags & O_NONBLOCK) ||
4866e0c1cb8970 Pavel Begunkov 2021-02-04 3544 !(req->flags & REQ_F_ISREG)) {
4866e0c1cb8970 Pavel Begunkov 2021-02-04 3545 /* read all, failed, already did sync or don't want to retry */
00d23d516e2e79 Jens Axboe 2020-08-25 3546 goto done;
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3547 }
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3548
227c0c9673d867 Jens Axboe 2020-08-13 3549 ret2 = io_setup_async_rw(req, iovec, inline_vecs, iter, true);
227c0c9673d867 Jens Axboe 2020-08-13 3550 if (ret2) {
227c0c9673d867 Jens Axboe 2020-08-13 3551 ret = ret2;
227c0c9673d867 Jens Axboe 2020-08-13 @3552 goto out_free;
f67676d160c6ee Jens Axboe 2019-12-02 3553 }
f5cac8b156e8b7 Jens Axboe 2020-09-14 3554 if (no_async)
f5cac8b156e8b7 Jens Axboe 2020-09-14 3555 return -EAGAIN;
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3556 rw = req->async_data;
227c0c9673d867 Jens Axboe 2020-08-13 3557 /* now use our persistent iterator, if we aren't already */
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3558 iter = &rw->iter;
227c0c9673d867 Jens Axboe 2020-08-13 3559 retry:
4866e0c1cb8970 Pavel Begunkov 2021-02-04 3560 io_size -= ret;
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3561 rw->bytes_done += ret;
227c0c9673d867 Jens Axboe 2020-08-13 3562 /* if we can retry, do so with the callbacks armed */
227c0c9673d867 Jens Axboe 2020-08-13 3563 if (!io_rw_should_retry(req)) {
bcf5a06304d69a Jens Axboe 2020-05-22 3564 kiocb->ki_flags &= ~IOCB_WAITQ;
f67676d160c6ee Jens Axboe 2019-12-02 3565 return -EAGAIN;
2b188cc1bb857a Jens Axboe 2019-01-07 3566 }
227c0c9673d867 Jens Axboe 2020-08-13 3567
227c0c9673d867 Jens Axboe 2020-08-13 3568 /*
227c0c9673d867 Jens Axboe 2020-08-13 3569 * Now retry read with the IOCB_WAITQ parts set in the iocb. If we
227c0c9673d867 Jens Axboe 2020-08-13 3570 * get -EIOCBQUEUED, then we'll get a notification when the desired
227c0c9673d867 Jens Axboe 2020-08-13 3571 * page gets unlocked. We can also get a partial read here, and if we
227c0c9673d867 Jens Axboe 2020-08-13 3572 * do, then just retry at the new offset.
227c0c9673d867 Jens Axboe 2020-08-13 3573 */
227c0c9673d867 Jens Axboe 2020-08-13 3574 ret = io_iter_do_read(req, iter);
20082229e8da20 Pavel Begunkov 2021-02-04 3575 if (ret == -EIOCBQUEUED)
20082229e8da20 Pavel Begunkov 2021-02-04 3576 return 0;
227c0c9673d867 Jens Axboe 2020-08-13 3577 /* we got some bytes, but not all. retry. */
20082229e8da20 Pavel Begunkov 2021-02-04 3578 if (ret > 0 && ret < io_size)
227c0c9673d867 Jens Axboe 2020-08-13 3579 goto retry;
227c0c9673d867 Jens Axboe 2020-08-13 3580 done:
227c0c9673d867 Jens Axboe 2020-08-13 3581 kiocb_done(kiocb, ret, cs);
20082229e8da20 Pavel Begunkov 2021-02-04 3582 return 0;
2b188cc1bb857a Jens Axboe 2019-01-07 3583 }
2b188cc1bb857a Jens Axboe 2019-01-07 3584
:::::: The code at line 3552 was first introduced by commit
:::::: 227c0c9673d86732995474d277f84e08ee763e46 io_uring: internally retry short reads
:::::: TO: Jens Axboe <axboe(a)kernel.dk>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.10 37/74] drivers/misc/mei/bus.c:62:6: error: 'vtag' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.10
head: 9ced6633127bd25a94939777d9ecda54800859fc
commit: 9af81b257c01533da218d79bbacf0b82febf4b26 [37/74] mei: bus: block send with vtag on non-conformat FW
config: i386-randconfig-r032-20210318 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.10
git checkout 9af81b257c01533da218d79bbacf0b82febf4b26
# 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 >>):
drivers/misc/mei/bus.c: In function '__mei_cl_send':
>> drivers/misc/mei/bus.c:62:6: error: 'vtag' undeclared (first use in this function)
62 | if (vtag) {
| ^~~~
drivers/misc/mei/bus.c:62:6: note: each undeclared identifier is reported only once for each function it appears in
vim +/vtag +62 drivers/misc/mei/bus.c
22
23 /**
24 * __mei_cl_send - internal client send (write)
25 *
26 * @cl: host client
27 * @buf: buffer to send
28 * @length: buffer length
29 * @mode: sending mode
30 *
31 * Return: written size bytes or < 0 on error
32 */
33 ssize_t __mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length,
34 unsigned int mode)
35 {
36 struct mei_device *bus;
37 struct mei_cl_cb *cb;
38 ssize_t rets;
39
40 if (WARN_ON(!cl || !cl->dev))
41 return -ENODEV;
42
43 bus = cl->dev;
44
45 mutex_lock(&bus->device_lock);
46 if (bus->dev_state != MEI_DEV_ENABLED) {
47 rets = -ENODEV;
48 goto out;
49 }
50
51 if (!mei_cl_is_connected(cl)) {
52 rets = -ENODEV;
53 goto out;
54 }
55
56 /* Check if we have an ME client device */
57 if (!mei_me_cl_is_active(cl->me_cl)) {
58 rets = -ENOTTY;
59 goto out;
60 }
61
> 62 if (vtag) {
63 /* Check if vtag is supported by client */
64 rets = mei_cl_vt_support_check(cl);
65 if (rets)
66 goto out;
67 }
68
69 if (length > mei_cl_mtu(cl)) {
70 rets = -EFBIG;
71 goto out;
72 }
73
74 while (cl->tx_cb_queued >= bus->tx_queue_limit) {
75 mutex_unlock(&bus->device_lock);
76 rets = wait_event_interruptible(cl->tx_wait,
77 cl->writing_state == MEI_WRITE_COMPLETE ||
78 (!mei_cl_is_connected(cl)));
79 mutex_lock(&bus->device_lock);
80 if (rets) {
81 if (signal_pending(current))
82 rets = -EINTR;
83 goto out;
84 }
85 if (!mei_cl_is_connected(cl)) {
86 rets = -ENODEV;
87 goto out;
88 }
89 }
90
91 cb = mei_cl_alloc_cb(cl, length, MEI_FOP_WRITE, NULL);
92 if (!cb) {
93 rets = -ENOMEM;
94 goto out;
95 }
96
97 cb->internal = !!(mode & MEI_CL_IO_TX_INTERNAL);
98 cb->blocking = !!(mode & MEI_CL_IO_TX_BLOCKING);
99 memcpy(cb->buf.data, buf, length);
100
101 rets = mei_cl_write(cl, cb);
102
103 out:
104 mutex_unlock(&bus->device_lock);
105
106 return rets;
107 }
108
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-4.19 2/2] arch/powerpc/lib/sstep.c:2554:4: error: 'fallthrough' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.19
head: e19f9c9b9d08b80587c0b922a18a383acaee5133
commit: e19f9c9b9d08b80587c0b922a18a383acaee5133 [2/2] powerpc/sstep: Fix load-store and update emulation
config: powerpc64-randconfig-p001-20210318 (attached as .config)
compiler: powerpc-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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.19
git checkout e19f9c9b9d08b80587c0b922a18a383acaee5133
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 >>):
arch/powerpc/lib/sstep.c: In function 'analyse_instr':
>> arch/powerpc/lib/sstep.c:2554:4: error: 'fallthrough' undeclared (first use in this function)
2554 | fallthrough;
| ^~~~~~~~~~~
arch/powerpc/lib/sstep.c:2554:4: note: each undeclared identifier is reported only once for each function it appears in
arch/powerpc/lib/sstep.c:2559:5: error: label 'unknown_opcode' used but not defined
2559 | goto unknown_opcode;
| ^~~~
>> arch/powerpc/lib/sstep.c:2552:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
2552 | if (ra == rd)
| ^
arch/powerpc/lib/sstep.c:2555:3: note: here
2555 | case STORE:
| ^~~~
cc1: all warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
WARNING: unmet direct dependencies detected for FSL_EMB_PERFMON
Depends on E500 || PPC_83xx
Selected by
- PPC_FSL_BOOK3E
vim +/fallthrough +2554 arch/powerpc/lib/sstep.c
2546
2547 }
2548
2549 if (OP_IS_LOAD_STORE(op->type) && (op->type & UPDATE)) {
2550 switch (GETTYPE(op->type)) {
2551 case LOAD:
> 2552 if (ra == rd)
2553 goto unknown_opcode;
> 2554 fallthrough;
2555 case STORE:
2556 case LOAD_FP:
2557 case STORE_FP:
2558 if (ra == 0)
2559 goto unknown_opcode;
2560 }
2561 }
2562
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.10 43/74] net/mptcp/options.c:492:6: error: 'snd_data_fin_enable' redeclared as different kind of symbol
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.10
head: 9ced6633127bd25a94939777d9ecda54800859fc
commit: 63fcde65bfac0ab04869d34b5a646c4ff769c258 [43/74] mptcp: fix DATA_FIN generation on early shutdown
config: parisc-randconfig-r004-20210318 (attached as .config)
compiler: hppa-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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.10
git checkout 63fcde65bfac0ab04869d34b5a646c4ff769c258
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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 >>):
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:266:13: note: in definition of macro '__unqual_scalar_typeof'
266 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
In file included from ./arch/parisc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from include/linux/kernel.h:11,
from net/mptcp/options.c:9:
net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
net/mptcp/options.c: In function 'mptcp_established_options_dss':
>> net/mptcp/options.c:492:6: error: 'snd_data_fin_enable' redeclared as different kind of symbol
492 | u64 snd_data_fin_enable;
| ^~~~~~~~~~~~~~~~~~~
net/mptcp/options.c:484:13: note: previous definition of 'snd_data_fin_enable' was here
484 | bool snd_data_fin_enable,
| ~~~~~^~~~~~~~~~~~~~~~~~~
net/mptcp/options.c:496:6: warning: unused variable 'ack_seq' [-Wunused-variable]
496 | u64 ack_seq;
| ^~~~~~~
In file included from net/mptcp/options.c:13:
net/mptcp/protocol.h: In function 'mptcp_data_fin_enabled':
net/mptcp/protocol.h:418:1: error: control reaches end of non-void function [-Werror=return-type]
418 | }
| ^
cc1: some warnings being treated as errors
vim +/snd_data_fin_enable +492 net/mptcp/options.c
6d0060f600adfd Mat Martineau 2020-01-21 482
6d0060f600adfd Mat Martineau 2020-01-21 483 static bool mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb,
63fcde65bfac0a Paolo Abeni 2021-02-19 484 bool snd_data_fin_enable,
6d0060f600adfd Mat Martineau 2020-01-21 485 unsigned int *size,
6d0060f600adfd Mat Martineau 2020-01-21 486 unsigned int remaining,
6d0060f600adfd Mat Martineau 2020-01-21 487 struct mptcp_out_options *opts)
6d0060f600adfd Mat Martineau 2020-01-21 488 {
6d0060f600adfd Mat Martineau 2020-01-21 489 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk);
7279da6145bbb2 Mat Martineau 2020-07-28 490 struct mptcp_sock *msk = mptcp_sk(subflow->conn);
6d0060f600adfd Mat Martineau 2020-01-21 491 unsigned int dss_size = 0;
7279da6145bbb2 Mat Martineau 2020-07-28 @492 u64 snd_data_fin_enable;
6d0060f600adfd Mat Martineau 2020-01-21 493 struct mptcp_ext *mpext;
6d0060f600adfd Mat Martineau 2020-01-21 494 unsigned int ack_size;
d22f4988ffecbe Christoph Paasch 2020-01-21 495 bool ret = false;
63fcde65bfac0a Paolo Abeni 2021-02-19 496 u64 ack_seq;
6d0060f600adfd Mat Martineau 2020-01-21 497
0bac966a1f2ae0 Mat Martineau 2020-07-28 498 mpext = skb ? mptcp_get_ext(skb) : NULL;
6d0060f600adfd Mat Martineau 2020-01-21 499
7279da6145bbb2 Mat Martineau 2020-07-28 500 if (!skb || (mpext && mpext->use_map) || snd_data_fin_enable) {
6d0060f600adfd Mat Martineau 2020-01-21 501 unsigned int map_size;
6d0060f600adfd Mat Martineau 2020-01-21 502
6d0060f600adfd Mat Martineau 2020-01-21 503 map_size = TCPOLEN_MPTCP_DSS_BASE + TCPOLEN_MPTCP_DSS_MAP64;
6d0060f600adfd Mat Martineau 2020-01-21 504
6d0060f600adfd Mat Martineau 2020-01-21 505 remaining -= map_size;
6d0060f600adfd Mat Martineau 2020-01-21 506 dss_size = map_size;
6d0060f600adfd Mat Martineau 2020-01-21 507 if (mpext)
6d0060f600adfd Mat Martineau 2020-01-21 508 opts->ext_copy = *mpext;
6d0060f600adfd Mat Martineau 2020-01-21 509
7279da6145bbb2 Mat Martineau 2020-07-28 510 if (skb && snd_data_fin_enable)
9c29e36152748f Paolo Abeni 2020-07-03 511 mptcp_write_data_fin(subflow, skb, &opts->ext_copy);
d22f4988ffecbe Christoph Paasch 2020-01-21 512 ret = true;
d22f4988ffecbe Christoph Paasch 2020-01-21 513 }
d22f4988ffecbe Christoph Paasch 2020-01-21 514
2398e3991bda7c Paolo Abeni 2020-03-04 515 /* passive sockets msk will set the 'can_ack' after accept(), even
2398e3991bda7c Paolo Abeni 2020-03-04 516 * if the first subflow may have the already the remote key handy
2398e3991bda7c Paolo Abeni 2020-03-04 517 */
d22f4988ffecbe Christoph Paasch 2020-01-21 518 opts->ext_copy.use_ack = 0;
dc093db5cc052b Paolo Abeni 2020-03-13 519 if (!READ_ONCE(msk->can_ack)) {
d22f4988ffecbe Christoph Paasch 2020-01-21 520 *size = ALIGN(dss_size, 4);
d22f4988ffecbe Christoph Paasch 2020-01-21 521 return ret;
6d0060f600adfd Mat Martineau 2020-01-21 522 }
6d0060f600adfd Mat Martineau 2020-01-21 523
37198e93ced707 Davide Caratti 2020-10-06 524 if (READ_ONCE(msk->use_64bit_ack)) {
6d0060f600adfd Mat Martineau 2020-01-21 525 ack_size = TCPOLEN_MPTCP_DSS_ACK64;
917944da3bfc7c Mat Martineau 2020-09-29 526 opts->ext_copy.data_ack = READ_ONCE(msk->ack_seq);
a0c1d0eafd1ef1 Christoph Paasch 2020-05-14 527 opts->ext_copy.ack64 = 1;
a0c1d0eafd1ef1 Christoph Paasch 2020-05-14 528 } else {
a0c1d0eafd1ef1 Christoph Paasch 2020-05-14 529 ack_size = TCPOLEN_MPTCP_DSS_ACK32;
917944da3bfc7c Mat Martineau 2020-09-29 530 opts->ext_copy.data_ack32 = (uint32_t)READ_ONCE(msk->ack_seq);
a0c1d0eafd1ef1 Christoph Paasch 2020-05-14 531 opts->ext_copy.ack64 = 0;
a0c1d0eafd1ef1 Christoph Paasch 2020-05-14 532 }
a0c1d0eafd1ef1 Christoph Paasch 2020-05-14 533 opts->ext_copy.use_ack = 1;
6d0060f600adfd Mat Martineau 2020-01-21 534
6d0060f600adfd Mat Martineau 2020-01-21 535 /* Add kind/length/subtype/flag overhead if mapping is not populated */
6d0060f600adfd Mat Martineau 2020-01-21 536 if (dss_size == 0)
6d0060f600adfd Mat Martineau 2020-01-21 537 ack_size += TCPOLEN_MPTCP_DSS_BASE;
6d0060f600adfd Mat Martineau 2020-01-21 538
6d0060f600adfd Mat Martineau 2020-01-21 539 dss_size += ack_size;
6d0060f600adfd Mat Martineau 2020-01-21 540
6d0060f600adfd Mat Martineau 2020-01-21 541 *size = ALIGN(dss_size, 4);
6d0060f600adfd Mat Martineau 2020-01-21 542 return true;
6d0060f600adfd Mat Martineau 2020-01-21 543 }
6d0060f600adfd Mat Martineau 2020-01-21 544
:::::: The code at line 492 was first introduced by commit
:::::: 7279da6145bbb2e41a61def5d9bca5b65f12de9d mptcp: Use MPTCP-level flag for sending DATA_FIN
:::::: TO: Mat Martineau <mathew.j.martineau(a)linux.intel.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.11 10/22] fs/io_uring.c:3517:8: error: use of undeclared label 'copy_iov'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.11
head: 8c3b9b9eb43a7ddb91a2a4c84f0bfa5f118894ae
commit: 93096a0f2ab1b1b801642d7fcd99eb71d98b9e3c [10/22] io_uring: further simplify do_read error parsing
config: powerpc64-randconfig-r036-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6db3ab2903f42712f44000afb5aa467efbd25f35)
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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.11
git checkout 93096a0f2ab1b1b801642d7fcd99eb71d98b9e3c
# 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 >>):
>> fs/io_uring.c:3517:8: error: use of undeclared label 'copy_iov'
goto copy_iov;
^
1 error generated.
vim +/copy_iov +3517 fs/io_uring.c
f67676d160c6ee Jens Axboe 2019-12-02 3485
a1d7c393c4711a Jens Axboe 2020-06-22 3486 static int io_read(struct io_kiocb *req, bool force_nonblock,
a1d7c393c4711a Jens Axboe 2020-06-22 3487 struct io_comp_state *cs)
2b188cc1bb857a Jens Axboe 2019-01-07 3488 {
2b188cc1bb857a Jens Axboe 2019-01-07 3489 struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs;
9adbd45d6d32ff Jens Axboe 2019-12-20 3490 struct kiocb *kiocb = &req->rw.kiocb;
ff6165b2d7f66f Jens Axboe 2020-08-13 3491 struct iov_iter __iter, *iter = &__iter;
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3492 struct io_async_rw *rw = req->async_data;
227c0c9673d867 Jens Axboe 2020-08-13 3493 ssize_t io_size, ret, ret2;
f5cac8b156e8b7 Jens Axboe 2020-09-14 3494 bool no_async;
ff6165b2d7f66f Jens Axboe 2020-08-13 3495
2846c481c9dd1f Pavel Begunkov 2020-11-07 3496 if (rw) {
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3497 iter = &rw->iter;
2846c481c9dd1f Pavel Begunkov 2020-11-07 3498 iovec = NULL;
2846c481c9dd1f Pavel Begunkov 2020-11-07 3499 } else {
ff6165b2d7f66f Jens Axboe 2020-08-13 3500 ret = io_import_iovec(READ, req, &iovec, iter, !force_nonblock);
f67676d160c6ee Jens Axboe 2019-12-02 3501 if (ret < 0)
2b188cc1bb857a Jens Axboe 2019-01-07 3502 return ret;
2846c481c9dd1f Pavel Begunkov 2020-11-07 3503 }
632546c4b5a4da Pavel Begunkov 2020-11-07 3504 io_size = iov_iter_count(iter);
fa15bafb71fd7a Pavel Begunkov 2020-08-01 3505 req->result = io_size;
227c0c9673d867 Jens Axboe 2020-08-13 3506 ret = 0;
2b188cc1bb857a Jens Axboe 2019-01-07 3507
fd6c2e4c063d64 Jens Axboe 2019-12-18 3508 /* Ensure we clear previously set non-block flag */
fd6c2e4c063d64 Jens Axboe 2019-12-18 3509 if (!force_nonblock)
29de5f6a350778 Jens Axboe 2020-02-20 3510 kiocb->ki_flags &= ~IOCB_NOWAIT;
a88fc400212fc1 Pavel Begunkov 2020-09-30 3511 else
a88fc400212fc1 Pavel Begunkov 2020-09-30 3512 kiocb->ki_flags |= IOCB_NOWAIT;
a88fc400212fc1 Pavel Begunkov 2020-09-30 3513
24c74678634b3c Pavel Begunkov 2020-06-21 3514 /* If the file doesn't support async, just async punt */
f5cac8b156e8b7 Jens Axboe 2020-09-14 3515 no_async = force_nonblock && !io_file_supports_async(req->file, READ);
f5cac8b156e8b7 Jens Axboe 2020-09-14 3516 if (no_async)
f67676d160c6ee Jens Axboe 2019-12-02 @3517 goto copy_iov;
9e645e1105ca60 Jens Axboe 2019-05-10 3518
632546c4b5a4da Pavel Begunkov 2020-11-07 3519 ret = rw_verify_area(READ, req->file, io_kiocb_ppos(kiocb), io_size);
fa15bafb71fd7a Pavel Begunkov 2020-08-01 3520 if (unlikely(ret))
fa15bafb71fd7a Pavel Begunkov 2020-08-01 3521 goto out_free;
2b188cc1bb857a Jens Axboe 2019-01-07 3522
227c0c9673d867 Jens Axboe 2020-08-13 3523 ret = io_iter_do_read(req, iter);
32960613b7c335 Jens Axboe 2019-09-23 3524
447313db13e52f Pavel Begunkov 2021-02-01 3525 if (ret == -EIOCBQUEUED) {
227c0c9673d867 Jens Axboe 2020-08-13 3526 ret = 0;
f67676d160c6ee Jens Axboe 2019-12-02 3527 goto out_free;
227c0c9673d867 Jens Axboe 2020-08-13 3528 } else if (ret == -EAGAIN) {
eefdf30f3dcb5c Jens Axboe 2020-08-27 3529 /* IOPOLL retry should happen for io-wq threads */
eefdf30f3dcb5c Jens Axboe 2020-08-27 3530 if (!force_nonblock && !(req->ctx->flags & IORING_SETUP_IOPOLL))
f91daf565b0e27 Jens Axboe 2020-08-15 3531 goto done;
355afaeb578aba Jens Axboe 2020-09-02 3532 /* no retry on NONBLOCK marked file */
355afaeb578aba Jens Axboe 2020-09-02 3533 if (req->file->f_flags & O_NONBLOCK)
355afaeb578aba Jens Axboe 2020-09-02 3534 goto done;
842163154b87b0 Jens Axboe 2020-08-24 3535 /* some cases will consume bytes even on error returns */
632546c4b5a4da Pavel Begunkov 2020-11-07 3536 iov_iter_revert(iter, io_size - iov_iter_count(iter));
f38c7e3abfba9a Jens Axboe 2020-09-25 3537 ret = 0;
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3538 } else if (ret <= 0 || ret == io_size) {
00d23d516e2e79 Jens Axboe 2020-08-25 3539 /* make sure -ERESTARTSYS -> -EINTR is done */
00d23d516e2e79 Jens Axboe 2020-08-25 3540 goto done;
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3541 } else {
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3542 /* we did blocking attempt. no retry. */
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3543 if (!force_nonblock || (req->file->f_flags & O_NONBLOCK) ||
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3544 !(req->flags & REQ_F_ISREG))
227c0c9673d867 Jens Axboe 2020-08-13 3545 goto done;
227c0c9673d867 Jens Axboe 2020-08-13 3546
227c0c9673d867 Jens Axboe 2020-08-13 3547 io_size -= ret;
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3548 }
93096a0f2ab1b1 Pavel Begunkov 2021-02-04 3549
227c0c9673d867 Jens Axboe 2020-08-13 3550 ret2 = io_setup_async_rw(req, iovec, inline_vecs, iter, true);
227c0c9673d867 Jens Axboe 2020-08-13 3551 if (ret2) {
227c0c9673d867 Jens Axboe 2020-08-13 3552 ret = ret2;
227c0c9673d867 Jens Axboe 2020-08-13 3553 goto out_free;
f67676d160c6ee Jens Axboe 2019-12-02 3554 }
f5cac8b156e8b7 Jens Axboe 2020-09-14 3555 if (no_async)
f5cac8b156e8b7 Jens Axboe 2020-09-14 3556 return -EAGAIN;
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3557 rw = req->async_data;
227c0c9673d867 Jens Axboe 2020-08-13 3558 /* it's copied and will be cleaned with ->io */
227c0c9673d867 Jens Axboe 2020-08-13 3559 iovec = NULL;
227c0c9673d867 Jens Axboe 2020-08-13 3560 /* now use our persistent iterator, if we aren't already */
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3561 iter = &rw->iter;
227c0c9673d867 Jens Axboe 2020-08-13 3562 retry:
e8c2bc1fb6c949 Jens Axboe 2020-08-15 3563 rw->bytes_done += ret;
227c0c9673d867 Jens Axboe 2020-08-13 3564 /* if we can retry, do so with the callbacks armed */
227c0c9673d867 Jens Axboe 2020-08-13 3565 if (!io_rw_should_retry(req)) {
bcf5a06304d69a Jens Axboe 2020-05-22 3566 kiocb->ki_flags &= ~IOCB_WAITQ;
f67676d160c6ee Jens Axboe 2019-12-02 3567 return -EAGAIN;
2b188cc1bb857a Jens Axboe 2019-01-07 3568 }
227c0c9673d867 Jens Axboe 2020-08-13 3569
227c0c9673d867 Jens Axboe 2020-08-13 3570 /*
227c0c9673d867 Jens Axboe 2020-08-13 3571 * Now retry read with the IOCB_WAITQ parts set in the iocb. If we
227c0c9673d867 Jens Axboe 2020-08-13 3572 * get -EIOCBQUEUED, then we'll get a notification when the desired
227c0c9673d867 Jens Axboe 2020-08-13 3573 * page gets unlocked. We can also get a partial read here, and if we
227c0c9673d867 Jens Axboe 2020-08-13 3574 * do, then just retry at the new offset.
227c0c9673d867 Jens Axboe 2020-08-13 3575 */
227c0c9673d867 Jens Axboe 2020-08-13 3576 ret = io_iter_do_read(req, iter);
227c0c9673d867 Jens Axboe 2020-08-13 3577 if (ret == -EIOCBQUEUED) {
227c0c9673d867 Jens Axboe 2020-08-13 3578 ret = 0;
227c0c9673d867 Jens Axboe 2020-08-13 3579 goto out_free;
227c0c9673d867 Jens Axboe 2020-08-13 3580 } else if (ret > 0 && ret < io_size) {
227c0c9673d867 Jens Axboe 2020-08-13 3581 /* we got some bytes, but not all. retry. */
227c0c9673d867 Jens Axboe 2020-08-13 3582 goto retry;
227c0c9673d867 Jens Axboe 2020-08-13 3583 }
227c0c9673d867 Jens Axboe 2020-08-13 3584 done:
227c0c9673d867 Jens Axboe 2020-08-13 3585 kiocb_done(kiocb, ret, cs);
227c0c9673d867 Jens Axboe 2020-08-13 3586 ret = 0;
f67676d160c6ee Jens Axboe 2019-12-02 3587 out_free:
f261c16861b829 Pavel Begunkov 2020-08-20 3588 /* it's reportedly faster than delegating the null check to kfree() */
252917c30f551e Pavel Begunkov 2020-07-13 3589 if (iovec)
2b188cc1bb857a Jens Axboe 2019-01-07 3590 kfree(iovec);
2b188cc1bb857a Jens Axboe 2019-01-07 3591 return ret;
2b188cc1bb857a Jens Axboe 2019-01-07 3592 }
2b188cc1bb857a Jens Axboe 2019-01-07 3593
:::::: The code at line 3517 was first introduced by commit
:::::: f67676d160c6ee2ed82917fadfed6d29cab8237c io_uring: ensure async punted read/write requests copy iovec
:::::: TO: Jens Axboe <axboe(a)kernel.dk>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.10 42/74] net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.10
head: 9ced6633127bd25a94939777d9ecda54800859fc
commit: 5dafb6beb289db849750d4a6f390e1a2bc2a85f6 [42/74] mptcp: refactor shutdown and close
config: parisc-randconfig-r004-20210318 (attached as .config)
compiler: hppa-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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.10
git checkout 5dafb6beb289db849750d4a6f390e1a2bc2a85f6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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 <command-line>:
net/mptcp/protocol.h: In function 'mptcp_data_fin_enabled':
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:266:13: note: in definition of macro '__unqual_scalar_typeof'
266 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
In file included from ./arch/parisc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from include/linux/kernel.h:11,
from net/mptcp/mptcp_diag.c:9:
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
--
In file included from <command-line>:
net/mptcp/protocol.h: In function 'mptcp_data_fin_enabled':
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/linux/compiler_types.h:266:13: note: in definition of macro '__unqual_scalar_typeof'
266 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
In file included from ./arch/parisc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from include/linux/kernel.h:11,
from net/mptcp/protocol.c:9:
>> net/mptcp/protocol.h:417:51: error: 'const struct mptcp_sock' has no member named 'snd_nxt'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
net/mptcp/protocol.h:417:38: note: in expansion of macro 'READ_ONCE'
417 | READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
| ^~~~~~~~~
net/mptcp/protocol.c: In function 'mptcp_timeout_timer':
>> net/mptcp/protocol.c:1667:2: error: implicit declaration of function 'mptcp_schedule_work'; did you mean 'kblockd_schedule_work'? [-Werror=implicit-function-declaration]
1667 | mptcp_schedule_work(sk);
| ^~~~~~~~~~~~~~~~~~~
| kblockd_schedule_work
net/mptcp/protocol.c: In function '__mptcp_close_ssk':
>> net/mptcp/protocol.c:1746:3: error: implicit declaration of function '__tcp_close'; did you mean 'tcp_close'? [-Werror=implicit-function-declaration]
1746 | __tcp_close(ssk, 0);
| ^~~~~~~~~~~
| tcp_close
In file included from include/linux/kernel.h:16,
from net/mptcp/protocol.c:9:
net/mptcp/protocol.c: In function '__mptcp_check_send_data_fin':
>> net/mptcp/protocol.c:2058:37: error: implicit declaration of function 'mptcp_send_head'; did you mean 'tcp_send_head'? [-Werror=implicit-function-declaration]
2058 | msk, msk->snd_data_fin_enable, !!mptcp_send_head(sk),
| ^~~~~~~~~~~~~~~
include/linux/printk.h:140:17: note: in definition of macro 'no_printk'
140 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
net/mptcp/protocol.c:2057:2: note: in expansion of macro 'pr_debug'
2057 | pr_debug("msk=%p snd_data_fin_enable=%d pending=%d snd_nxt=%llu write_seq=%llu",
| ^~~~~~~~
>> net/mptcp/protocol.c:2059:7: error: 'struct mptcp_sock' has no member named 'snd_nxt'
2059 | msk->snd_nxt, msk->write_seq);
| ^~
include/linux/printk.h:140:17: note: in definition of macro 'no_printk'
140 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
net/mptcp/protocol.c:2057:2: note: in expansion of macro 'pr_debug'
2057 | pr_debug("msk=%p snd_data_fin_enable=%d pending=%d snd_nxt=%llu write_seq=%llu",
| ^~~~~~~~
net/mptcp/protocol.c:2064:38: error: 'struct mptcp_sock' has no member named 'snd_nxt'
2064 | if (!msk->snd_data_fin_enable || msk->snd_nxt + 1 != msk->write_seq ||
| ^~
In file included from <command-line>:
net/mptcp/protocol.c:2068:16: error: 'struct mptcp_sock' has no member named 'snd_nxt'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
60 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.c:2068:2: note: in expansion of macro 'WRITE_ONCE'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~~~~~~~~~
net/mptcp/protocol.c:2068:16: error: 'struct mptcp_sock' has no member named 'snd_nxt'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
60 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.c:2068:2: note: in expansion of macro 'WRITE_ONCE'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~~~~~~~~~
net/mptcp/protocol.c:2068:16: error: 'struct mptcp_sock' has no member named 'snd_nxt'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
60 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.c:2068:2: note: in expansion of macro 'WRITE_ONCE'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~~~~~~~~~
net/mptcp/protocol.c:2068:16: error: 'struct mptcp_sock' has no member named 'snd_nxt'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
295 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
60 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/mptcp/protocol.c:2068:2: note: in expansion of macro 'WRITE_ONCE'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~~~~~~~~~
net/mptcp/protocol.c:2068:16: error: 'struct mptcp_sock' has no member named 'snd_nxt'
2068 | WRITE_ONCE(msk->snd_nxt, msk->write_seq);
| ^~
include/linux/compiler_types.h:295:9: note: in definition of macro '__compiletime_assert'
..
vim +417 net/mptcp/protocol.h
395
396 struct sock *mptcp_sk_clone(const struct sock *sk,
397 const struct mptcp_options_received *mp_opt,
398 struct request_sock *req);
399 void mptcp_get_options(const struct sk_buff *skb,
400 struct mptcp_options_received *mp_opt);
401
402 void mptcp_finish_connect(struct sock *sk);
403 static inline bool mptcp_is_fully_established(struct sock *sk)
404 {
405 return inet_sk_state_load(sk) == TCP_ESTABLISHED &&
406 READ_ONCE(mptcp_sk(sk)->fully_established);
407 }
408 void mptcp_rcv_space_init(struct mptcp_sock *msk, const struct sock *ssk);
409 void mptcp_data_ready(struct sock *sk, struct sock *ssk);
410 bool mptcp_finish_join(struct sock *sk);
411 void mptcp_data_acked(struct sock *sk);
412 void mptcp_subflow_eof(struct sock *sk);
413 bool mptcp_update_rcv_data_fin(struct mptcp_sock *msk, u64 data_fin_seq, bool use_64bit);
414 static inline bool mptcp_data_fin_enabled(const struct mptcp_sock *msk)
415 {
416 return READ_ONCE(msk->snd_data_fin_enable) &&
> 417 READ_ONCE(msk->write_seq) == READ_ONCE(msk->snd_nxt);
418 }
419
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months