From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: hemantk@codeaurora.org, bbhatt@codeaurora.org,
linux-arm-msm@vger.kernel.org, jhugo@codeaurora.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/5] bus: mhi: core: debugfs: Use correct format specifiers for addresses
Date: Mon, 28 Sep 2020 09:18:25 +0530 [thread overview]
Message-ID: <20200928034825.GC3605@Mani-XPS-13-9360> (raw)
In-Reply-To: <20200927102310.GB87283@kroah.com>
On Sun, Sep 27, 2020 at 12:23:10PM +0200, Greg KH wrote:
> On Sun, Sep 27, 2020 at 09:06:48AM +0530, Manivannan Sadhasivam wrote:
> > For exposing the addresses of read/write pointers and doorbell register,
> > let's use the correct format specifiers. This fixes the following issues
> > generated using W=1 build in ARM32 and reported by Kbuild bot:
> >
> > All warnings (new ones prefixed by >>):
> >
> > >> drivers/bus/mhi/core/debugfs.c:75:7: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int') [-Wformat]
> > mhi_event->db_cfg.db_val);
> > ^~~~~~~~~~~~~~~~~~~~~~~~
> > drivers/bus/mhi/core/debugfs.c:123:7: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int') [-Wformat]
> > mhi_chan->db_cfg.db_val);
> > ^~~~~~~~~~~~~~~~~~~~~~~
> > 2 warnings generated.
> >
> > drivers/bus/mhi/core/debugfs.c: In function ‘mhi_debugfs_events_show’:
> > drivers/bus/mhi/core/debugfs.c:74:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> > seq_printf(m, " local rp: 0x%llx db: 0x%pad\n", (u64)ring->rp,
> > ^
> > drivers/bus/mhi/core/debugfs.c: In function ‘mhi_debugfs_channels_show’:
> > drivers/bus/mhi/core/debugfs.c:122:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> > (u64)ring->rp, (u64)ring->wp,
> > ^
> > drivers/bus/mhi/core/debugfs.c:122:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> > (u64)ring->rp, (u64)ring->wp,
> > ^
> > drivers/bus/mhi/core/debugfs.c:121:62: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘dma_addr_t {aka unsigned int}’ [-Wformat=]
> > seq_printf(m, " local rp: 0x%llx local wp: 0x%llx db: 0x%llx\n",
> > ~~~^
> > %x
> > drivers/bus/mhi/core/debugfs.c:123:7:
> > mhi_chan->db_cfg.db_val);
> >
> > Reported-by: kernel test robot <lkp@intel.com>
> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> > ---
> > drivers/bus/mhi/core/debugfs.c | 10 +++++-----
> > 1 file changed, 5 insertions(+), 5 deletions(-)
>
> Ah, this is against your first set of patches, that's the confusion on
> my part.
>
> Please just fix them all up and resend 1 series of patches, that isn't
> broken, and I will be glad to review and take that.
>
Sure, will merge this patch with debugfs one. I submitted this patch as I got
error report from Kbuild bot and I thought you applied the series to
char-misc-testing branch.
Thanks,
Mani
> thanks,
>
> greg k-h
next prev parent reply other threads:[~2020-09-28 3:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-27 3:36 [PATCH 0/5] MHI changes for v5.10 - Take two Manivannan Sadhasivam
2020-09-27 3:36 ` [PATCH 1/5] bus: mhi: core: debugfs: Use correct format specifiers for addresses Manivannan Sadhasivam
2020-09-27 10:20 ` Greg KH
2020-09-27 10:23 ` Greg KH
2020-09-28 3:48 ` Manivannan Sadhasivam [this message]
2020-09-27 3:36 ` [PATCH 2/5] bus: mhi: debugfs: Print channel context read-pointer Manivannan Sadhasivam
2020-09-27 3:36 ` [PATCH 3/5] bus: mhi: Remove auto-start option Manivannan Sadhasivam
2020-09-27 3:36 ` [PATCH 4/5] net: qrtr: Start MHI channels during init Manivannan Sadhasivam
2020-09-27 3:36 ` [PATCH 5/5] bus: mhi: core: Move MHI_MAX_MTU to external header file Manivannan Sadhasivam
2020-09-27 10:17 ` Greg KH
2020-09-28 3:48 ` Manivannan Sadhasivam
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=20200928034825.GC3605@Mani-XPS-13-9360 \
--to=manivannan.sadhasivam@linaro.org \
--cc=bbhatt@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=hemantk@codeaurora.org \
--cc=jhugo@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).