From: Tejun Heo <tj@kernel.org>
To: "dongbo (E)" <dongbo4@huawei.com>
Cc: linux-ide@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Linuxarm <linuxarm@huawei.com>
Subject: Re: [PATCH] Fix compile warning with ATA_DEBUG enabled
Date: Mon, 12 Feb 2018 09:00:46 -0800 [thread overview]
Message-ID: <20180212170046.GV695913@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <5be87d13-f9a0-5b12-ced4-cec5d6394da1@huawei.com>
On Fri, Jan 26, 2018 at 11:21:49AM +0800, dongbo (E) wrote:
> From: Dong Bo <dongbo4@huawei.com>
>
> This fixs the following comile warnings with ATA_DEBUG enabled,
> which detected by Linaro GCC 5.2-2015.11:
>
> In file included from ./include/linux/printk.h:7:0,
> from ./include/linux/kernel.h:14,
> from ./include/asm-generic/bug.h:16,
> from ./arch/arm64/include/asm/bug.h:37,
> from ./include/linux/bug.h:5,
> from ./include/linux/mmdebug.h:5,
> from ./include/linux/gfp.h:5,
> from ./include/linux/slab.h:15,
> from drivers/ata/libata-scsi.c:36:
> drivers/ata/libata-scsi.c: In function 'ata_scsi_dump_cdb':
> ./include/linux/kern_levels.h:5:18: warning: format '%d' expects
> argument of type 'int', but argument 6 has type 'u64 {aka long
> long unsigned int}' [-Wformat=]
> #define KERN_SOH "\001" /* ASCII Start Of Header */
> ^
> ./include/linux/kern_levels.h:11:18: note: in expansion of macro
> 'KERN_SOH'
> #define KERN_ERR KERN_SOH "3" /* error conditions */
> ^
> ./include/linux/libata.h:65:38: note: in expansion of macro 'KERN_ERR'
> #define DPRINTK(fmt, args...) printk(KERN_ERR "%s: " fmt,
> __func__, ## args)
> ^
> drivers/ata/libata-scsi.c:4284:2: note: in expansion of macro 'DPRINTK'
> DPRINTK("CDB (%u:%d,%d,%d) %9ph\n",
> ^
>
> Signed-off-by: Dong Bo <dongbo4@huawei.com>
Path didn't apply, probalby because of the tailing part. Hand-applied
to libata/for-4.16-fixes and trimmed the description a bit.
Thanks.
--
tejun
prev parent reply other threads:[~2018-02-12 17:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1516936551-20986-1-git-send-email-zhangshaokun@hisilicon.com>
2018-01-26 3:21 ` dongbo (E)
2018-02-12 17:00 ` Tejun Heo [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=20180212170046.GV695913@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=dongbo4@huawei.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.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®