From: kbuild test robot <lkp@intel.com>
To: Heloise <os@iscas.ac.cn>
Cc: kbuild-all@01.org, axboe@fb.com, hare@suse.com,
jthumshirn@suse.de, keith.busch@intel.com, ming.lei@redhat.com,
bianpan2016@163.com, dan.j.williams@intel.com,
sachin.s5@samsung.com, baoyou.xie@linaro.org,
linux-kernel@vger.kernel.org, Heloise <os@iscas.ac.cn>
Subject: Re: [PATCH] drivers:block:mtip32xx:mtip32xx:change the order of null-pointer dereference validation
Date: Thu, 27 Apr 2017 01:08:33 +0800 [thread overview]
Message-ID: <201704270129.1gsQ1dNK%fengguang.wu@intel.com> (raw)
In-Reply-To: <1493170216-9035-1-git-send-email-os@iscas.ac.cn>
[-- Attachment #1: Type: text/plain, Size: 2920 bytes --]
Hi Heloise,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.11-rc8 next-20170426]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Heloise/drivers-block-mtip32xx-mtip32xx-change-the-order-of-null-pointer-dereference-validation/20170426-235410
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/block/mtip32xx/mtip32xx.c: In function 'mtip_async_complete':
>> drivers/block/mtip32xx/mtip32xx.c:234:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
struct driver_data *dd = port->dd;
^~~~~~
vim +234 drivers/block/mtip32xx/mtip32xx.c
8f8b8995 Asai Thambi S P 2013-09-11 218 * clears the allocated bit associated with the completed command.
8f8b8995 Asai Thambi S P 2013-09-11 219 *
8f8b8995 Asai Thambi S P 2013-09-11 220 * @port Pointer to the port data structure.
8f8b8995 Asai Thambi S P 2013-09-11 221 * @tag Tag of the command.
8f8b8995 Asai Thambi S P 2013-09-11 222 * @data Pointer to driver_data.
8f8b8995 Asai Thambi S P 2013-09-11 223 * @status Completion status.
8f8b8995 Asai Thambi S P 2013-09-11 224 *
8f8b8995 Asai Thambi S P 2013-09-11 225 * return value
8f8b8995 Asai Thambi S P 2013-09-11 226 * None
8f8b8995 Asai Thambi S P 2013-09-11 227 */
8f8b8995 Asai Thambi S P 2013-09-11 228 static void mtip_async_complete(struct mtip_port *port,
ffc771b3 Jens Axboe 2014-05-09 229 int tag, struct mtip_cmd *cmd, int status)
8f8b8995 Asai Thambi S P 2013-09-11 230 {
6a63892e Heloise 2017-04-25 231 if (unlikely(!port))
6a63892e Heloise 2017-04-25 232 return;
6a63892e Heloise 2017-04-25 233
ffc771b3 Jens Axboe 2014-05-09 @234 struct driver_data *dd = port->dd;
ffc771b3 Jens Axboe 2014-05-09 235 struct request *rq;
8f8b8995 Asai Thambi S P 2013-09-11 236
6a63892e Heloise 2017-04-25 237 if (unlikely(!dd))
8f8b8995 Asai Thambi S P 2013-09-11 238 return;
8f8b8995 Asai Thambi S P 2013-09-11 239
8f8b8995 Asai Thambi S P 2013-09-11 240 if (unlikely(status == PORT_IRQ_TF_ERR)) {
8f8b8995 Asai Thambi S P 2013-09-11 241 dev_warn(&port->dd->pdev->dev,
8f8b8995 Asai Thambi S P 2013-09-11 242 "Command tag %d failed due to TFE\n", tag);
:::::: The code at line 234 was first introduced by commit
:::::: ffc771b3ca8b2c03e5e9faa6335b4862108f111f mtip32xx: convert to use blk-mq
:::::: TO: Jens Axboe <axboe@fb.com>
:::::: CC: Jens Axboe <axboe@fb.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31324 bytes --]
prev parent reply other threads:[~2017-04-26 17:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 1:30 Heloise
2017-04-26 6:13 ` Jens Axboe
2017-04-26 17:08 ` kbuild test robot [this message]
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=201704270129.1gsQ1dNK%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=axboe@fb.com \
--cc=baoyou.xie@linaro.org \
--cc=bianpan2016@163.com \
--cc=dan.j.williams@intel.com \
--cc=hare@suse.com \
--cc=jthumshirn@suse.de \
--cc=kbuild-all@01.org \
--cc=keith.busch@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=os@iscas.ac.cn \
--cc=sachin.s5@samsung.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®