From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: Mailbox: Add support for Platform Communication Channel
Date: Wed, 17 Dec 2014 18:56:53 +0000 [thread overview]
Message-ID: <20141217185653.GR4911@mwanda> (raw)
In-Reply-To: <20141215215643.GA2882@mwanda>
On Wed, Dec 17, 2014 at 11:46:09AM -0500, Ashwin Chaugule wrote:
> > Also this file has some Sparse warnings:
>
> I've looked at these previously too and I believe they're false
> positives. Will send a follow up patch at the earliest.
>
They're not bugs, it just means that there are some __iomem annotations
missing and some functions should be made static or declared in a .h
file or whatever.
Something like this:
diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c
index 6dbf6fc..ccf0b18 100644
--- a/drivers/mailbox/pcc.c
+++ b/drivers/mailbox/pcc.c
@@ -171,8 +171,8 @@ EXPORT_SYMBOL_GPL(pcc_mbox_free_channel);
static bool pcc_tx_done(struct mbox_chan *chan)
{
struct acpi_pcct_hw_reduced *pcct_ss = chan->con_priv;
- struct acpi_pcct_shared_memory *generic_comm_base - (struct acpi_pcct_shared_memory *) pcct_ss->base_address;
+ struct acpi_pcct_shared_memory __iomem *generic_comm_base + (struct acpi_pcct_shared_memory __iomem *) pcct_ss->base_address;
u16 cmd_delay = pcct_ss->latency;
unsigned int retries = 0;
@@ -206,8 +206,8 @@ static bool pcc_tx_done(struct mbox_chan *chan)
static int pcc_send_data(struct mbox_chan *chan, void *data)
{
struct acpi_pcct_hw_reduced *pcct_ss = chan->con_priv;
- struct acpi_pcct_shared_memory *generic_comm_base - (struct acpi_pcct_shared_memory *) pcct_ss->base_address;
+ struct acpi_pcct_shared_memory __iomem *generic_comm_base + (struct acpi_pcct_shared_memory __iomem *) pcct_ss->base_address;
struct acpi_generic_address doorbell;
u64 doorbell_preserve;
u64 doorbell_val;
next prev parent reply other threads:[~2014-12-17 18:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 21:56 Mailbox: Add support for Platform Communication Channel Dan Carpenter
2014-12-17 16:46 ` Ashwin Chaugule
2014-12-17 18:56 ` Dan Carpenter [this message]
2014-12-20 14:56 ` Ashwin Chaugule
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=20141217185653.GR4911@mwanda \
--to=dan.carpenter@oracle.com \
--cc=kernel-janitors@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