Re: [PATCH 1/2] rbtree: Expose a test tree to userspace
by kernel test robot
Hi Mete,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.15-rc6 next-20211021]
[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/Mete-Polat/rbtree-Test-against-a...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 519d81956ee277b4419c723adfb154603c2565ba
config: nds32-randconfig-r032-20211019 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/d73723d42ad47ca335de00e899a9e94b0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mete-Polat/rbtree-Test-against-a-verified-oracle/20211019-171711
git checkout d73723d42ad47ca335de00e899a9e94b03d8b57d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
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 >>):
>> lib/test_rbtree_interface.c:91:9: warning: no previous prototype for 'cmd_exec' [-Wmissing-prototypes]
91 | ssize_t cmd_exec(struct file *file, const char __user *ubuf, size_t len, loff_t *offp)
| ^~~~~~~~
>> lib/test_rbtree_interface.c:138:12: warning: no previous prototype for 'rbt_if_init' [-Wmissing-prototypes]
138 | int __init rbt_if_init(void)
| ^~~~~~~~~~~
>> lib/test_rbtree_interface.c:149:13: warning: no previous prototype for 'rbt_if_exit' [-Wmissing-prototypes]
149 | void __exit rbt_if_exit(void)
| ^~~~~~~~~~~
vim +/cmd_exec +91 lib/test_rbtree_interface.c
90
> 91 ssize_t cmd_exec(struct file *file, const char __user *ubuf, size_t len, loff_t *offp)
92 {
93 int cmd;
94 struct data *data, *_n;
95 struct rb_node *node;
96 int ret = kstrtoint_from_user(ubuf, len, 10, &cmd);
97 if (ret)
98 return ret;
99
100 switch (cmd) {
101 case RESET:
102 rbtree_postorder_for_each_entry_safe(data, _n, &rbt, node)
103 kfree(data);
104 rbt = RB_ROOT;
105 break;
106 case INSERT:
107 data = kzalloc(sizeof(*data), GFP_KERNEL);
108 data->key = input_key;
109 rb_find_add(&data->node, &rbt, node_cmp);
110 break;
111 case DELETE:
112 node = rb_find(&input_key, &rbt, key_cmp);
113 if (!node)
114 break;
115 rb_erase(node, &rbt);
116 kfree(data_from_node(node));
117 break;
118 default:
119 return -EINVAL;
120 }
121 return len;
122 }
123
124 static int cmd_open(struct inode *inode, struct file *file)
125 {
126 return single_open(file, cmd_show, inode->i_private);
127 }
128
129 static const struct file_operations cmd_fops = {
130 .owner = THIS_MODULE,
131 .open = cmd_open,
132 .read = seq_read,
133 .write = cmd_exec,
134 .llseek = seq_lseek,
135 .release = single_release,
136 };
137
> 138 int __init rbt_if_init(void)
139 {
140 rbt_if_root = debugfs_create_dir("rbt_if", NULL);
141 if (IS_ERR(rbt_if_root))
142 return PTR_ERR(rbt_if_root);
143
144 debugfs_create_file("cmd", 0644, rbt_if_root, NULL, &cmd_fops);
145 debugfs_create_u64("key", 0644, rbt_if_root, &input_key);
146 return 0;
147 }
148
> 149 void __exit rbt_if_exit(void)
150 {
151 struct data *_n, *pos;
152 debugfs_remove_recursive(rbt_if_root);
153 rbtree_postorder_for_each_entry_safe(pos, _n, &rbt, node)
154 kfree(pos);
155
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH 2/2] scsi: target: iblock: Report space allocation errors
by kernel test robot
Hi Konstantin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on v5.15-rc6 next-20211021]
[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/Konstantin-Shelekhin/scsi-target...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: i386-randconfig-s001-20211021 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/15d4d8f9601b04ee21f8f6042481828c4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Konstantin-Shelekhin/scsi-target-iblock-Report-space-allocation-errors/20211021-024526
git checkout 15d4d8f9601b04ee21f8f6042481828c4c34f6b7
# 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 >>)
>> drivers/target/target_core_iblock.c:329:57: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted blk_status_t [usertype] status @@ got int @@
drivers/target/target_core_iblock.c:329:57: sparse: expected restricted blk_status_t [usertype] status
drivers/target/target_core_iblock.c:329:57: sparse: got int
>> drivers/target/target_core_iblock.c:351:61: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int new @@ got restricted blk_status_t [usertype] bi_status @@
drivers/target/target_core_iblock.c:351:61: sparse: expected int new
drivers/target/target_core_iblock.c:351:61: sparse: got restricted blk_status_t [usertype] bi_status
vim +329 drivers/target/target_core_iblock.c
319
320 static void iblock_complete_cmd(struct se_cmd *cmd)
321 {
322 struct iblock_req *ibr = cmd->priv;
323 u8 status;
324 sense_reason_t reason;
325
326 if (!refcount_dec_and_test(&ibr->pending))
327 return;
328
> 329 reason = iblock_blk_status_to_reason(atomic_read(&ibr->status));
330
331 if (reason != TCM_NO_SENSE)
332 status = SAM_STAT_CHECK_CONDITION;
333 else
334 status = SAM_STAT_GOOD;
335
336 target_complete_cmd_with_sense(cmd, status, reason);
337 kfree(ibr);
338 }
339
340 static void iblock_bio_done(struct bio *bio)
341 {
342 struct se_cmd *cmd = bio->bi_private;
343 struct iblock_req *ibr = cmd->priv;
344
345 if (bio->bi_status) {
346 pr_err("bio error: %p, err: %d\n", bio, bio->bi_status);
347 /*
348 * Set the error status of the iblock request to the error
349 * status of the first failed bio.
350 */
> 351 atomic_cmpxchg(&ibr->status, BLK_STS_OK, bio->bi_status);
352 smp_mb__after_atomic();
353 }
354
355 bio_put(bio);
356
357 iblock_complete_cmd(cmd);
358 }
359
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH 2/3] bus: mhi: Add inbound buffers allocation flag
by kernel test robot
Hi Manivannan,
I love your patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
[also build test ERROR on linux/master linus/master v5.15-rc6]
[cannot apply to char-misc/char-misc-testing next-20211021]
[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/Manivannan-Sadhasivam/MHI-patche...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 502408a61f4b7eb4713f44bd77f4a48e6cb1b59a
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f0be8fa21fa4e6ddc6998710bf912a648...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Manivannan-Sadhasivam/MHI-patches-for-v5-16/20211016-145939
git checkout f0be8fa21fa4e6ddc6998710bf912a6483a3c09d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/net/wwan/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/wwan/mhi_wwan_mbim.c: In function 'mhi_mbim_probe':
>> drivers/net/wwan/mhi_wwan_mbim.c:612:15: error: too few arguments to function 'mhi_prepare_for_transfer'
612 | err = mhi_prepare_for_transfer(mhi_dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wwan/mhi_wwan_mbim.c:18:
include/linux/mhi.h:728:5: note: declared here
728 | int mhi_prepare_for_transfer(struct mhi_device *mhi_dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/mhi_prepare_for_transfer +612 drivers/net/wwan/mhi_wwan_mbim.c
aa730a9905b7b0 Loic Poulain 2021-08-03 593
aa730a9905b7b0 Loic Poulain 2021-08-03 594 static int mhi_mbim_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id)
aa730a9905b7b0 Loic Poulain 2021-08-03 595 {
aa730a9905b7b0 Loic Poulain 2021-08-03 596 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl;
aa730a9905b7b0 Loic Poulain 2021-08-03 597 struct mhi_mbim_context *mbim;
aa730a9905b7b0 Loic Poulain 2021-08-03 598 int err;
aa730a9905b7b0 Loic Poulain 2021-08-03 599
aa730a9905b7b0 Loic Poulain 2021-08-03 600 mbim = devm_kzalloc(&mhi_dev->dev, sizeof(*mbim), GFP_KERNEL);
aa730a9905b7b0 Loic Poulain 2021-08-03 601 if (!mbim)
aa730a9905b7b0 Loic Poulain 2021-08-03 602 return -ENOMEM;
aa730a9905b7b0 Loic Poulain 2021-08-03 603
94c0a6fbd5cfc3 Wei Yongjun 2021-08-08 604 spin_lock_init(&mbim->tx_lock);
aa730a9905b7b0 Loic Poulain 2021-08-03 605 dev_set_drvdata(&mhi_dev->dev, mbim);
aa730a9905b7b0 Loic Poulain 2021-08-03 606 mbim->mdev = mhi_dev;
aa730a9905b7b0 Loic Poulain 2021-08-03 607 mbim->mru = mhi_dev->mhi_cntrl->mru ? mhi_dev->mhi_cntrl->mru : MHI_DEFAULT_MRU;
aa730a9905b7b0 Loic Poulain 2021-08-03 608
aa730a9905b7b0 Loic Poulain 2021-08-03 609 INIT_DELAYED_WORK(&mbim->rx_refill, mhi_net_rx_refill_work);
aa730a9905b7b0 Loic Poulain 2021-08-03 610
aa730a9905b7b0 Loic Poulain 2021-08-03 611 /* Start MHI channels */
97c78d0af55fff Jakub Kicinski 2021-08-26 @612 err = mhi_prepare_for_transfer(mhi_dev);
aa730a9905b7b0 Loic Poulain 2021-08-03 613 if (err)
aa730a9905b7b0 Loic Poulain 2021-08-03 614 return err;
aa730a9905b7b0 Loic Poulain 2021-08-03 615
aa730a9905b7b0 Loic Poulain 2021-08-03 616 /* Number of transfer descriptors determines size of the queue */
aa730a9905b7b0 Loic Poulain 2021-08-03 617 mbim->rx_queue_sz = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE);
aa730a9905b7b0 Loic Poulain 2021-08-03 618
aa730a9905b7b0 Loic Poulain 2021-08-03 619 /* Register wwan link ops with MHI controller representing WWAN instance */
aa730a9905b7b0 Loic Poulain 2021-08-03 620 return wwan_register_ops(&cntrl->mhi_dev->dev, &mhi_mbim_wwan_ops, mbim, 0);
aa730a9905b7b0 Loic Poulain 2021-08-03 621 }
aa730a9905b7b0 Loic Poulain 2021-08-03 622
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[android-common:android11-kiwi-5.4 1/1] drivers/virtio/virtio_pvclock.c:48:6: warning: no previous prototype for 'update_suspend_time'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android11-kiwi-5.4
head: 04f660d6724f5df1b07f8cf9e1c55f70fb43d1d2
commit: 04f660d6724f5df1b07f8cf9e1c55f70fb43d1d2 [1/1] ANDROID: virtio: virtio_pvclock: initial driver impl
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android11-kiwi-5.4
git checkout 04f660d6724f5df1b07f8cf9e1c55f70fb43d1d2
# 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 warnings (new ones prefixed by >>):
>> drivers/virtio/virtio_pvclock.c:48:6: warning: no previous prototype for 'update_suspend_time' [-Wmissing-prototypes]
48 | void update_suspend_time(struct work_struct *work)
| ^~~~~~~~~~~~~~~~~~~
drivers/virtio/virtio_pvclock.c: In function 'virtpvclock_validate':
>> drivers/virtio/virtio_pvclock.c:294:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
294 | uint32_t rating =
| ^~~~~~~~
vim +/update_suspend_time +48 drivers/virtio/virtio_pvclock.c
47
> 48 void update_suspend_time(struct work_struct *work)
49 {
50 u64 suspend_ns, suspend_time_delta = 0;
51 struct timespec64 inject_time;
52 struct virtio_pvclock *vp;
53
54 vp = container_of(work, struct virtio_pvclock,
55 update_suspend_time_work);
56
57 virtio_cread(vp->vdev, struct virtio_pvclock_config, suspend_time_ns,
58 &suspend_ns);
59
60 mutex_lock(&vp->inject_suspend_lock);
61 if (suspend_ns > vp->injected_suspend_ns) {
62 suspend_time_delta = suspend_ns - vp->injected_suspend_ns;
63 vp->injected_suspend_ns = suspend_ns;
64 }
65 mutex_unlock(&vp->inject_suspend_lock);
66
67 if (suspend_time_delta == 0) {
68 dev_err(&vp->vdev->dev,
69 "%s: suspend_time_ns is less than injected_suspend_ns\n",
70 __func__);
71 return;
72 }
73
74 inject_time = ns_to_timespec64(suspend_time_delta);
75
76 timekeeping_inject_sleeptime64(&inject_time);
77
78 dev_info(&vp->vdev->dev, "injected sleeptime: %llu ns\n",
79 suspend_time_delta);
80 }
81
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[intel-lts:5.4/preempt-rt 9719/19036] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: 646a89c49751509d6493602ca6df16e229574d24
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [9719/19036] crypto: keembay: Add Keem Bay OCS HCU
config: x86_64-randconfig-s021-20211001 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd7...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.4/preempt-rt
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/crypto/keembay/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[hch-block:remove-blk_get_request 13/18] block/blk-mq.c:2464:14: error: no previous prototype for function 'blk_mq_request_issue_directly'
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git remove-blk_get_request
head: 466175155bbbc600d2493d2e69518cd0fe84bce0
commit: d6c17b39384f838a79faff786e94da3b693ed0dc [13/18] block: move request based cloning helpers to blk-mq.c
config: i386-buildonly-randconfig-r005-20211021 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 3cea2505fd8d99a9ba0cb625aecfe28a47c4e3f8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block remove-blk_get_request
git checkout d6c17b39384f838a79faff786e94da3b693ed0dc
# 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 errors (new ones prefixed by >>):
>> block/blk-mq.c:2464:14: error: no previous prototype for function 'blk_mq_request_issue_directly' [-Werror,-Wmissing-prototypes]
blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last)
^
block/blk-mq.c:2464:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last)
^
static
1 error generated.
vim +/blk_mq_request_issue_directly +2464 block/blk-mq.c
0f95549c0ea1e8 Mike Snitzer 2018-01-17 2463
fd9c40f64c514b Bart Van Assche 2019-04-04 @2464 blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last)
fd9c40f64c514b Bart Van Assche 2019-04-04 2465 {
fd9c40f64c514b Bart Van Assche 2019-04-04 2466 blk_status_t ret;
fd9c40f64c514b Bart Van Assche 2019-04-04 2467 int srcu_idx;
fd9c40f64c514b Bart Van Assche 2019-04-04 2468 struct blk_mq_hw_ctx *hctx = rq->mq_hctx;
fd9c40f64c514b Bart Van Assche 2019-04-04 2469
fd9c40f64c514b Bart Van Assche 2019-04-04 2470 hctx_lock(hctx, &srcu_idx);
3e08773c3841e9 Christoph Hellwig 2021-10-12 2471 ret = __blk_mq_try_issue_directly(hctx, rq, true, last);
fd9c40f64c514b Bart Van Assche 2019-04-04 2472 hctx_unlock(hctx, srcu_idx);
fd9c40f64c514b Bart Van Assche 2019-04-04 2473
7f556a44e61d0b Jianchao Wang 2018-12-14 2474 return ret;
07068d5b8ed8fa Jens Axboe 2014-05-22 2475 }
07068d5b8ed8fa Jens Axboe 2014-05-22 2476
:::::: The code at line 2464 was first introduced by commit
:::::: fd9c40f64c514bdc585a21e2e33fa5f83ca8811b block: Revert v5.0 blk_mq_request_issue_directly() changes
:::::: TO: Bart Van Assche <bvanassche(a)acm.org>
:::::: 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
11 months
[hch-block:remove-blk_get_request 13/18] block/blk-mq.c:2464:14: warning: no previous prototype for function 'blk_mq_request_issue_directly'
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git remove-blk_get_request
head: 466175155bbbc600d2493d2e69518cd0fe84bce0
commit: d6c17b39384f838a79faff786e94da3b693ed0dc [13/18] block: move request based cloning helpers to blk-mq.c
config: hexagon-randconfig-r045-20211021 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 3cea2505fd8d99a9ba0cb625aecfe28a47c4e3f8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block remove-blk_get_request
git checkout d6c17b39384f838a79faff786e94da3b693ed0dc
# 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 warnings (new ones prefixed by >>):
>> block/blk-mq.c:2464:14: warning: no previous prototype for function 'blk_mq_request_issue_directly' [-Wmissing-prototypes]
blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last)
^
block/blk-mq.c:2464:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last)
^
static
1 warning generated.
vim +/blk_mq_request_issue_directly +2464 block/blk-mq.c
0f95549c0ea1e8 Mike Snitzer 2018-01-17 2463
fd9c40f64c514b Bart Van Assche 2019-04-04 @2464 blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last)
fd9c40f64c514b Bart Van Assche 2019-04-04 2465 {
fd9c40f64c514b Bart Van Assche 2019-04-04 2466 blk_status_t ret;
fd9c40f64c514b Bart Van Assche 2019-04-04 2467 int srcu_idx;
fd9c40f64c514b Bart Van Assche 2019-04-04 2468 struct blk_mq_hw_ctx *hctx = rq->mq_hctx;
fd9c40f64c514b Bart Van Assche 2019-04-04 2469
fd9c40f64c514b Bart Van Assche 2019-04-04 2470 hctx_lock(hctx, &srcu_idx);
3e08773c3841e9 Christoph Hellwig 2021-10-12 2471 ret = __blk_mq_try_issue_directly(hctx, rq, true, last);
fd9c40f64c514b Bart Van Assche 2019-04-04 2472 hctx_unlock(hctx, srcu_idx);
fd9c40f64c514b Bart Van Assche 2019-04-04 2473
7f556a44e61d0b Jianchao Wang 2018-12-14 2474 return ret;
07068d5b8ed8fa Jens Axboe 2014-05-22 2475 }
07068d5b8ed8fa Jens Axboe 2014-05-22 2476
:::::: The code at line 2464 was first introduced by commit
:::::: fd9c40f64c514bdc585a21e2e33fa5f83ca8811b block: Revert v5.0 blk_mq_request_issue_directly() changes
:::::: TO: Bart Van Assche <bvanassche(a)acm.org>
:::::: 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
11 months