From: Li Yang <leoyang.li@nxp.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Hannes Reinecke <hare@suse.de>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
Li Yang <leoyang.li@nxp.com>
Subject: [linux-next PATCH] ata: sata_fsl: fix a compile error
Date: Wed, 25 Mar 2020 18:59:21 -0500 [thread overview]
Message-ID: <20200325235921.22431-1-leoyang.li@nxp.com> (raw)
drivers/ata/sata_fsl.c: In function 'sata_fsl_init_controller':
drivers/ata/sata_fsl.c:1365:15: error: 'ap' undeclared (first use in this function)
ata_port_dbg(ap, "icc = 0x%x\n", ioread32(hcr_base + ICC));
^
Fixes: b3f06231 ("sata_fsl: move DPRINTK to ata debugging")
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
---
drivers/ata/sata_fsl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
index 45c15c4e9f8a..c43a97d63e6c 100644
--- a/drivers/ata/sata_fsl.c
+++ b/drivers/ata/sata_fsl.c
@@ -1340,6 +1340,7 @@ static int sata_fsl_init_controller(struct ata_host *host)
{
struct sata_fsl_host_priv *host_priv = host->private_data;
void __iomem *hcr_base = host_priv->hcr_base;
+ struct ata_port *ap = host->ports[0];
u32 temp;
/*
--
2.17.1
next reply other threads:[~2020-03-25 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 23:59 Li Yang [this message]
2020-03-26 9:06 ` [linux-next PATCH] ata: sata_fsl: fix a compile error Sergei Shtylyov
2020-03-26 15:17 ` Jens Axboe
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=20200325235921.22431-1-leoyang.li@nxp.com \
--to=leoyang.li@nxp.com \
--cc=axboe@kernel.dk \
--cc=hare@suse.de \
--cc=linux-ide@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