From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org, Pavel Begunkov <asml.silence@gmail.com>
Cc: lkp@intel.com, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [isilence:zc_v3 18/28] io_uring/notif.c:54 io_uring_tx_zerocopy_callback() warn: if statement not indented
Date: Mon, 4 Jul 2022 16:01:24 +0300 [thread overview]
Message-ID: <202207030820.61aWmZmk-lkp@intel.com> (raw)
tree: https://github.com/isilence/linux zc_v3
head: cd0bc816ae8dbc546df5c09cee92459ad759c4d1
commit: 591b24351034d95bc4f39a3d1cbbb7132109218d [18/28] io_uring: complete notifiers in tw
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220703/202207030820.61aWmZmk-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
io_uring/notif.c:54 io_uring_tx_zerocopy_callback() warn: if statement not indented
vim +54 io_uring/notif.c
2239fd796a3a31 Pavel Begunkov 2022-05-05 43 static void io_uring_tx_zerocopy_callback(struct sk_buff *skb,
2239fd796a3a31 Pavel Begunkov 2022-05-05 44 struct ubuf_info *uarg,
2239fd796a3a31 Pavel Begunkov 2022-05-05 45 bool success)
2239fd796a3a31 Pavel Begunkov 2022-05-05 46 {
2239fd796a3a31 Pavel Begunkov 2022-05-05 47 struct io_notif *notif = container_of(uarg, struct io_notif, uarg);
2239fd796a3a31 Pavel Begunkov 2022-05-05 48
2239fd796a3a31 Pavel Begunkov 2022-05-05 49 if (!refcount_dec_and_test(&uarg->refcnt))
2239fd796a3a31 Pavel Begunkov 2022-05-05 50 return;
591b24351034d9 Pavel Begunkov 2022-05-05 51
591b24351034d9 Pavel Begunkov 2022-05-05 52 if (likely(notif->task)) {
591b24351034d9 Pavel Begunkov 2022-05-05 53 init_task_work(¬if->task_work, __io_notif_complete_tw);
591b24351034d9 Pavel Begunkov 2022-05-05 @54 if (likely(!task_work_add(notif->task, ¬if->task_work,
591b24351034d9 Pavel Begunkov 2022-05-05 55 TWA_SIGNAL)))
591b24351034d9 Pavel Begunkov 2022-05-05 56 return;
missing tab.
591b24351034d9 Pavel Begunkov 2022-05-05 57 }
591b24351034d9 Pavel Begunkov 2022-05-05 58
2239fd796a3a31 Pavel Begunkov 2022-05-05 59 INIT_WORK(¬if->commit_work, io_notif_complete_wq);
2239fd796a3a31 Pavel Begunkov 2022-05-05 60 queue_work(system_unbound_wq, ¬if->commit_work);
2239fd796a3a31 Pavel Begunkov 2022-05-05 61 }
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-07-04 13:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202207030820.61aWmZmk-lkp@intel.com \
--to=dan.carpenter@oracle.com \
--cc=asml.silence@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=kbuild@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®