From patchwork Wed Mar 25 23:59:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Li X-Patchwork-Id: 1261705 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-ide-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 48nlTb6WkLz9sPR for ; Thu, 26 Mar 2020 10:59:31 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727420AbgCYX7a (ORCPT ); Wed, 25 Mar 2020 19:59:30 -0400 Received: from inva020.nxp.com ([92.121.34.13]:51254 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727402AbgCYX73 (ORCPT ); Wed, 25 Mar 2020 19:59:29 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 25A7A1A0725; Thu, 26 Mar 2020 00:59:28 +0100 (CET) Received: from smtp.na-rdc02.nxp.com (usphx01srsp001v.us-phx01.nxp.com [134.27.49.11]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E33671A0705; Thu, 26 Mar 2020 00:59:27 +0100 (CET) Received: from right.am.freescale.net (right.am.freescale.net [10.81.116.70]) by usphx01srsp001v.us-phx01.nxp.com (Postfix) with ESMTP id 2898F4040F; Wed, 25 Mar 2020 16:59:27 -0700 (MST) From: Li Yang To: Jens Axboe Cc: Hannes Reinecke , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Li Yang Subject: [linux-next PATCH] ata: sata_fsl: fix a compile error Date: Wed, 25 Mar 2020 18:59:21 -0500 Message-Id: <20200325235921.22431-1-leoyang.li@nxp.com> X-Mailer: git-send-email 2.25.1.377.g2d2118b MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org 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 Signed-off-by: Li Yang --- 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; /*